Skip to content

MCP認証後のアクション検出失敗を修正 - #24

Merged
nakasyou merged 1 commit into
mainfrom
codex/fix-bundled-mcp-routing
Oct 21, 2026
Merged

nakasyou merged 1 commit into
mainfrom
codex/fix-bundled-mcp-routing

Conversation

@nakasyou

Copy link
Copy Markdown
Member

ChatGPTの接続先を /mcp にすると、OAuth認証後に「Authentication succeeded, action discovery failed」で接続できませんでした。配布アプリのHTTP振り分けが /mcp をAPIへ渡さず、UIのHTMLを返していたためです。

配布アプリとVite開発プロキシの両方で /mcp をMCPサーバーへ転送します。サーバー内部だけでなく配布アプリの実エントリーポイントを子プロセスで起動する回帰テストを追加し、発行したAPIキーで公式MCP SDKから両パスの初期化・ツール検出・呼び出しを確認しました。

検証:

  • 本番で /mcp が 200 text/html、/api/mcp が 401 application/json を返すことを確認。
  • 修正前に配布アプリの回帰テストが失敗し、修正後に成功。
  • MCP・OAuth・配布アプリの関連テスト8件成功。
  • bun fmt・bun typecheck 成功。

Copilot AI balanced review requested due to automatic review settings October 21, 2026 12:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nakasyou
nakasyou merged commit d503e31 into main Oct 21, 2026
2 checks passed
@nakasyou
nakasyou deleted the codex/fix-bundled-mcp-routing branch October 21, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants