Skip to content

Support Schema Cycles #749

@RPGillespie6

Description

@RPGillespie6

Is your feature request related to a problem? Please describe.
I am writing a custom MCP server that integrates with JIRA. The go-jira go project contains nice JIRA API data structures, such as jira.Issue. However, I cannot use jira.Issue with this library because cycles are not allowed for some reason:

output schema: ForType(jira.Issue): computing element schema: cycle detected for type jira.Issue

This is because JIRA Issues can reference other issues, hence the data structure can have references (pointers) to other Issues.

Describe the solution you'd like
Unless this is a fundamental constraint of MCP, I don't see why cycles are disallowed seeing as both golang and JSON support cyclic (self-referencing) schemas.

Describe alternatives you've considered
For now I've had to create a custom struct that replicates much of jira.Issue but without the cycles

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedBlocked on external dependency.proposalA proposal for an a new API or behavior. See CONTRIBUTING.md.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions