FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Standardize input and output schema · Issue #886 · modelcontextprotocol/java-sdk · GitHub

Standardize input and output schema #886

Description

Currently (1.1.0) a MCP-Tool has different types for input schema and output schema.

The inputSchema is a JsonSchema,
whereas the outputScheem is a Map<String, Object>

I don't quite understand, why there should be a difference.

Activity

  1. Kehrlann commented on Apr 2, 2026

    Contributor

    Hey @tim-schneider-elo - good point. We're feeling some pains related to this in #697 .

    We'll investigate what we can do about this.

  2. self-assigned this
    on Apr 2, 2026
  3. tzolov commented on Apr 2, 2026

    Contributor

    The right approach is to remove the JsonSchema in favor of Map<String, Object>. The reason is that the JSON Schema can not be mapped to a proper type without loosing json schema functionality.

    There are related PRs like this: #749

  4. added 2 commits that reference this issue on Apr 10, 2026
    9520323
    e8bd7e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Moderate issues affecting some users, edge cases, potentially valuable featurearea/mcp-schemaenhancementNew feature or requestwaiting for triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL