Support Schema Cycles

オープン
#749 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go

調査の方向性

報告された「ForType(jira.Issue) cycle-detected」エラーの周辺にあるスキーマ生成パスを追跡することから始めてください。再現には go-jira jira.Issue 構造体を使用し、自己参照するスキーマをサイクルエラーなしで生成できることを示すカバレッジを追加してください。完了の条件は、issue type が受け入れられ、既存のスキーマ動作が維持されることです。

索引モデルが issue の本文から書いたものです。

説明

blocked

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.

主要言語
Go
スター
5.4k
フォーク
623
平均マージ
22時間 10分
マージ済み PR(30日)
30

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelcontextprotocol/go-sdk のほかの issue

modelcontextprotocol/go-sdk の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。