本文へスキップ
Skillpedia
コネクタ(MCP)8.2k · #12535

mcp-builder

できること

このスキルは、Model Context Protocolを通じて、AIアシスタントが外部のツールやデータを使えるようにする接続を作るとき、AIを導きます。自分のMCPサーバーやクライアントを作る開発者向けです。

使う場面

  • ✓会社のツールやデータへのアクセスをAIに与えるMCPサーバーを作りたいとき。
  • ✓MCPクライアントとサーバーが正しく連携するか確認する必要があるとき。
  • ✓古いMCPの実装を、現在の仕様にアップグレードしているとき。

スキルのリンク

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/mcp-builder/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/vudovn/ag-kit/blob/main/.agents/skills/mcp-builder/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“社内データベースのレコードを、AIが読めるMCPサーバーを作るのを手伝ってください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

スキルは、バージョンやオプション機能を両者の間でどのように合意するかなど、プロトコルのルールを説明します。AIはコードを書く間、そのルールに従います。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

MCP Builder

Build interoperable MCP implementations against the stable 2026-07-28 specification. Treat extensions as negotiated, opt-in capabilities rather than core protocol guarantees.


1. Stable baseline and compatibility

  • The authoritative stable baseline is MCP 2026-07-28.
  • Core requests are stateless and self-contained. Do not infer protocol version, client capabilities, identity, conversation, or task state from a transport connection or process lifetime.
  • Put cross-request state behind explicit identifiers supplied on every relevant request.
  • Negotiate the protocol version and capabilities; do not assume that a client or server implements every optional feature.
  • Preserve compatibility with earlier peers where the specification requires it, including accepting legacy resource-not-found error code -32002 while emitting -32602 for invalid parameters in the current protocol.

Core versus extensions

Layer Status Engineering rule
Base protocol, versioning, message patterns Stable core Required for every implementation
Resources, prompts, tools, elicitation Optional core features Advertise and check capabilities before use
Tasks, Skills over MCP, MCP Apps Extensions Opt-in; require explicit support from both peers
Draft or vendor extensions Experimental/vendor-specific Isolate behind adapters and feature flags

Never label an extension as stable merely because one SDK or host supports it. Check the extension's own official status and version.


2. Architecture

MCP uses JSON-RPC 2.0 between hosts, clients, and servers.

host application
  └─ MCP client / runtime adapter
       ├─ stdio transport
       └─ Streamable HTTP transport
            └─ MCP server
                 ├─ resources
                 ├─ prompts
                 └─ tools

Stateless request model

Every request must carry the protocol metadata required by the negotiated version. For 2026-07-28 this includes per-request protocol version and client capability metadata under reserved _meta keys.

Servers must implement server/discover for protocol-version and capability discovery. Clients may call it before normal requests or use it as a backward-compatibility probe for stdio peers.

Do not:

  • use a stdio process as a conversation or session boundary;
  • depend on request ordering to establish capabilities or identity;
  • keep hidden mutable state without an explicit handle;
  • use self-reported client/server information for authorization decisions.

Do:

  • make task, thread, workspace, or subscription handles explicit;
  • validate every request independently;
  • tolerate interleaved requests from unrelated tasks;
  • document lifecycle, expiry, and cleanup for durable handles.

3. Transports and authentication

Transport Typical use Security baseline
stdio Local process integration Read credentials from the environment; constrain process and filesystem access
Streamable HTTP Remote or shared service Use the MCP HTTP authorization framework, validate origins where applicable, and enforce network boundaries

WebSocket is not a standard MCP transport unless defined by a separately negotiated extension or vendor adapter.

Transport concerns must not leak into protocol semantics. Reconnection or process replacement must not destroy logical state that is represented by an explicit durable handle.


4. Schema design and validation

MCP defaults to JSON Schema 2020-12 when $schema is absent. Implementations must support that dialect and should document any additional dialects.

Tool input schemas

  • Use an object root for tool arguments.
  • Give every property a clear, action-oriented description.
  • Declare required fields explicitly.
  • Prefer narrow enums, bounds, formats, and additionalProperties: false where forward compatibility does not require open objects.
  • Validate both the schema and each invocation payload.

Tool output schemas

Use structured content and outputSchema when consumers need typed, predictable results. Keep human-readable text concise and ensure structured output remains the source of truth for automation.

$ref and validator safety

  • Never dereference network $ref values automatically.
  • If remote dereferencing is explicitly enabled, use a host allowlist; reject loopback, link-local, and private addresses; apply timeouts and response
よくある質問

どのプロトコルのバージョンを対象にしていますか?

安定版の2026-07-28のMCP仕様を対象とし、古い相手との互換性にも触れています。

拡張機能は必須ですか?

いいえ。拡張機能は任意で、使う前に両者が合意しておく必要があります。

セキュリティも扱いますか?

はい。MCPの実装のためのセキュリティに関する指針が含まれています。

詳細

作者による元の説明

MCP (Model Context Protocol) server and client engineering. Protocol design, schemas, transports, extensions, security, and migration.

repo: vudovn/ag-kit

人気

GitHubのスター
8.2k
ランキング
#12535
ライセンス
MIT
更新日
2026/10/18

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル