Skip to content

Arguments type is too much strict #104

@jcooky

Description

@jcooky

I believe that for smoother MCP calls, we should change the type of Params.Arguments to interface{}.

Currently, Params.Arguments in mcp.CallToolRequest is defined as a map type, which I assume was intended to let MCP server developers own the argument type. However, using a map is too restrictive.

I propose changing it to any (or interface{}). Although this type is less strict, it would make it easier to convert the struct to JSON using reflection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: sdkSDK improvements unrelated to MCP specificationtype: enhancementNew feature or enhancement request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions