Model Context Protocol (MCP)
LLM に外部コンテキストを与えるためのプロトコル
https://github.com/modelcontextprotocol/specification
https://modelcontextprotocol.io/introduction
中身は JSON-RPC 2.0
通信プロトコル
stdio
Server-Sent Events
ビルトインは上記二つ、他も実装すれば使えるらしい
https://modelcontextprotocol.io/docs/concepts/transports
MCP Server を作る
TypeScript で MCP サーバーを実装し、Claude Desktop から利用する
Deno で RooCode 用にローカルMCPサーバーをさっと作る
TypeScriptでMCPサーバーのtool呼び出しをする