Skip to content

MCP Server not receiving input arguments #622

Open
@patmicha

Description

@patmicha

Consider

export function registerCreateIssue(server: McpServer) {
  server.tool(
    'create_issue',
    'Creates a new Jira issue based on the provided data. IMPORTANT: Run the load_context_data tool ONCE before using this tool.',
    {
      type: 'object',
      properties: {
        projectKey: {
          type: 'string',
          description: 'The key of the project where the issue will be created',
        },
        issueTypeId: {
          type: 'string',
          description: 'The ID of the issue type',
        },
        summary: {
          type: 'string',
          description: 'The summary (title) of the issue',
        },
        description: {
          type: 'object',
          description: 'The description of the issue in Atlassian Document Format',
        },
        additionalFields: {
          type: 'object',
          description: 'Optional additional fields for the issue',
        },
      },
      required: ['projectKey', 'issueTypeId', 'summary', 'description'],
      additionalProperties: false,
    },
    async (input, _ctx): Promise<CallToolResult> => {

Cline for VS Code is sending:

Cline wants to use a tool on the atlassian-mcp-server MCP server:

create_issue

Auto-approve

Creates a new Jira issue based on the provided data. IMPORTANT: Run the load_context_data tool ONCE before using this tool.

Arguments

{
  "projectKey": "O11YAI",
  "issueTypeId": "3",
  "summary": "Sample Task",
  "description": {
    "type": "doc",
    "version": 1,
    "content": [
      {
        "type": "paragraph",
        "content": [
          {
            "type": "text",
            "text": "test"
          }
        ]
      }
    ]
  }
}

However input has no properties projectKey etc when debugging the server.

This issue is occurring with all tools in my project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions