Skip to main content
Glama

MCPサーバー統合 — ビルド演習

CCA-F準備演習のためのスキャフォールドです。2.4 MCPサーバー統合 から。 ここには解決済みのものはありません。以下の各タスクには、あなたが埋めるためのTODOがあります。

タスクチェックリスト

  • 1. プロジェクトレベルの設定 — .mcp.json には github サーバーエントリ(command/args)があります。GitHubでない場合は、任意のコミュニティサーバーに置き換えてください。

  • 2. 環境変数の展開 — github エントリは、ハードコードされた資格情報の代わりに ${GITHUB_TOKEN} を参照しています。.env.example を .env にコピーし、実際のトークンを入力してください。

  • 3. ユーザーレベルの設定 — ここでは意図的に作成していません。~/.claude.json はプロジェクトの外にあり、あなたのマシンに固有のものだからです。テンプレートと手順: docs/user-level-config.md。

  • 4. MCPリソースを公開する — src/server.ts にはスタブの catalogue://TODO リソースがあります。それを、適切なURI、名前、説明、mimeTypeを持つ実際のコンテンツカタログ(例: DBスキーマやドキュメント階層)に置き換えてください。

  • 5. ツールの説明を強化する — 同じファイルの example_tool にはプレースホルダーの説明があります。機能、出力、使用例、および組み込みの代替手段との比較をカバーする3〜5文を書いてください。

Related MCP server: MCP Inspector Server

セットアップ

npm install
npm run dev        # starts the stdio server directly
npm run inspect     # opens MCP Inspector against the server for manual testing

レイアウト

.mcp.json                   Task 1 & 2 — project-level server config
.env.example                Task 2 — template for the secret .mcp.json expands
docs/user-level-config.md   Task 3 — template + steps for ~/.claude.json
src/server.ts                Task 4 & 5 — custom MCP server with resource/tool stubs

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    A production-ready development scaffold for MCP servers, optimized for Cursor IDE with built-in tools, resources, and prompts that enables quick development of Model Context Protocol servers with 5-minute startup and 10-minute development capabilities.
    26
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A basic MCP server template that provides a foundation for building custom tools, resources, and prompts. Serves as a starting point for developers to create their own MCP server functionality.
    -