Migrate to MCP v2 - #232
Merged
Merged
Conversation
Contributor
Dependency ReviewThe following issues were found:
License Issuespackage/package.json
OpenSSF Scorecard
Scanned Files
|
poad
force-pushed
the
feat/mcp-v2
branch
12 times, most recently
from
August 1, 2026 05:22
90b9bcc to
d665515
Compare
poad
marked this pull request as ready for review
August 1, 2026 05:33
poad
enabled auto-merge (squash)
August 1, 2026 05:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
MCP v1系 (
@modelcontextprotocol/sdk) からMCP v2系 (@modelcontextprotocol/server) へのマイグレーションを行いました。@hono/mcpの代わりに@modelcontextprotocol/honoを使用するように変更し、ライブラリのコア実装をv2 APIに対応させました。変更点
MCP v2エコシステムへの移行とCI/CDワークフローの整理を行いました。
修正ファイル一覧
.github/workflows/create-release-pr.ymlactions/setup-node+pnpm/action-setupをpnpm/setupに統合.github/workflows/deploy.ymldeploy-bexample→deploy-example修正、pnpmセットアップをpnpm/setupに変更、esbuildグローバルインストールを分離.github/workflows/scorecard.ymlgithub/codeql-action/upload-sarifを v4.37.4 にアップデートexample/eslint.config.tsprojectServiceをallowDefaultProject形式に変更、project参照を削除example/lambda/index.ts@modelcontextprotocol/sdk→@modelcontextprotocol/serverに変更、inputSchemaをz.object()形式に変更、createHonoAppにhost: '0.0.0.0'を追加example/lib/example-stack.tsnodeModulesを@modelcontextprotocol/sdk→@modelcontextprotocol/serverに変更、bundlingターゲットnode22→node24、ステージv1→v2example/package.json@modelcontextprotocol/sdk→@modelcontextprotocol/serverに変更、@hono/mcp削除example/tsconfig-eslint.jsonpackage.json^11.17.0→^11.19.0package/README.md@modelcontextprotocol/sdk→@modelcontextprotocol/serverに更新package/package.json@hono/mcp+@modelcontextprotocol/sdkから@modelcontextprotocol/core+@modelcontextprotocol/hono+@modelcontextprotocol/serverに変更package/src/index.ts@hono/mcpのStreamableHTTPTransportを@modelcontextprotocol/serverのWebStandardStreamableHTTPServerTransportに置き換え、createMcpHonoAppでアプリ作成、HTTPメソッドハンドラーをapp.allに統合、methodNotAllowedHandler削除、createHonoAppにoptionsパラメータ追加package/tsconfig-eslint.jsonpnpm-workspace.yamlminimumReleaseAgeExcludeをpnpm 11.19.0とMCP v2パッケージ群に更新関連Issue
なし
確認事項
pnpm audit --fixで脆弱性を修正済みか?pnpm lint-fixでコードスタイルは修正済みか?pnx markdownlint-cli2@latest . --fixで Markdown の lint は修正済みか?特記事項
@modelcontextprotocol/sdkが@modelcontextprotocol/serverに変更になりました。APIも大幅に変更されているため、ライブラリのコア実装をリファクタリングしました。@hono/mcpの代わりに@modelcontextprotocol/honoのcreateMcpHonoAppを使用し、v2のWeb標準ストリームトランスポートをネイティブにサポートします。