openapi2mcp: generated config.tools entries omit the responses field from the OpenAPI spec

オープン
#2,129 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
go, openapi
領域
api

調査の方向性

deck ファイルの openapi2mcp エントリポイントから開始し、openapi2mcp.Convert の呼び出しを追って、operation.Parameters と operation.RequestBody がどのように変換されるかを比較します。operation.Responses のデータを追跡し、ステータスコードとメディアタイプのコンテンツスキーマを含む、生成される Responses の構造を定義します。完了の条件は、存在する場合に config.tools エントリがそのレスポンス情報を保持することです。

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

説明

Summary
When converting an OpenAPI spec to MCP configuration (via deck file openapi2mcp, which calls openapi2mcp.Convert), each generated tool under config.tools includes the operation's request contract but not the operation's responses. The OpenAPI responses object is never read during conversion.

Current behavior
operation.Parameters and operation.RequestBody are consumed, but operation.Responses is never accessed anywhere in the package. There is no responses (or equivalent) key in the tool map and no builder function for it.

Expected / desired behavior

Generated tool entries should optionally include response schema information derived from the OpenAPI responses object (e.g. a responses field keyed by status code, each with its media-type content schemas, mirroring the shape of request_body).

主要言語
Go
スター
507
フォーク
142
平均マージ
1日 15時間
マージ済み PR(30日)
9

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

Kong/deck のほかの issue

Kong/deck の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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