Class: LinearToonMcp::Tools::ListIssueStatuses

Inherits:
List
  • Object
show all
Defined in:
lib/linear_toon_mcp/tools/list_issue_statuses.rb

Overview

List available workflow states for a Linear team. Returns TOON-encoded array of statuses with id, type, and name.

Constant Summary collapse

QUERY =
<<~GRAPHQL
  query($filter: WorkflowStateFilter) {
    workflowStates(filter: $filter) { nodes { id type name } }
  }
GRAPHQL

Instance Method Summary collapse

Methods inherited from List

connection, connection_name, #perform, query_string

Methods inherited from Base

call, #call, error_response, #perform, success_response

Instance Method Details

#variables(team:) ⇒ Object

Parameters:

  • team (String)

    team name or UUID



33
34
35
36
# File 'lib/linear_toon_mcp/tools/list_issue_statuses.rb', line 33

def variables(team:)
  team_id = Resolvers::Team.call(value: team)
  {filter: {team: {id: {eq: team_id}}}}
end