Class: Mcp::Tools::WorkItems::CreateWorkItemNoteTool
- Inherits:
-
BaseTool
- Object
- GraphqlTool
- BaseTool
- Mcp::Tools::WorkItems::CreateWorkItemNoteTool
- Defined in:
- app/services/mcp/tools/work_items/create_work_item_note_tool.rb
Constant Summary
Constants included from Concerns::Constants
Concerns::Constants::ALL_TYPES, Concerns::Constants::GROUP_ONLY_TYPES, Concerns::Constants::PROJECT_AND_GROUP_TYPES, Concerns::Constants::URL_PATTERNS, Concerns::Constants::VERSIONS
Constants included from Concerns::Versionable
Concerns::Versionable::VERSION_FORMAT
Instance Attribute Summary
Attributes inherited from GraphqlTool
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from GraphqlTool
#execute, #graphql_operation, #initialize, #operation_name
Methods included from Concerns::Versionable
#description, #graphql_operation, #initialize_version, #input_schema, #operation_name, #version
Constructor Details
This class inherits a constructor from Mcp::Tools::GraphqlTool
Class Method Details
.build_mutation ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/services/mcp/tools/work_items/create_work_item_note_tool.rb', line 8 def build_mutation " mutation CreateNote($input: CreateNoteInput!) {\n createNote(input: $input) {\n note {\n id\n body\n internal\n createdAt\n updatedAt\n author {\n id\n name\n username\n avatarUrl\n webUrl\n }\n discussion {\n id\n }\n }\n errors\n }\n }\n GRAPHQL\nend\n" |
Instance Method Details
#build_variables ⇒ Object
41 42 43 44 45 46 47 |
# File 'app/services/mcp/tools/work_items/create_work_item_note_tool.rb', line 41 def build_variables validate_no_quick_actions!(params[:body], field_name: 'note body') work_item_id = resolve_work_item_id { input: build_note_input(work_item_id) } end |