Upgrade to Pro — share decks privately, control downloads, hide ads and more …

API の仕様から紐解く「MCP 入門」 ~MCP の「コンテキスト」って何だ?~

API の仕様から紐解く「MCP 入門」 ~MCP の「コンテキスト」って何だ?~

MCP というキーワードを聞いたことがあっても、その裏側の仕組み、LLM とどのように組み合わせて提供されているのか? 具体的にイメージが沸かない、実装内容がよくわからないという方はまだまだ多いのではないでしょうか。本セッションではMCP そのものに焦点を当てて、MCP Server・MCP ClientそしてLLM、それぞれの仕様やメカニズム、API がどのようにやり取りしているのか? を徹底解説します。

CData MCP Server ローンチセミナー資料
https://www.cdata.com/jp/solutions/mcp/

Avatar for CData Software Japan

CData Software Japan

June 17, 2025
Tweet

More Decks by CData Software Japan

Other Decks in Technology

Transcript

  1. 2

  2. © 2025 CData Software Japan, LLC | www.cdata.com/jp { "model":

    "{{model}}", "max_tokens": {{max_tokens}}, "messages": [ { "role": "user", "content": "MCP " } ], "tools": [ { "name": "list_directory", “description”: “Get a detailed { } directories.", "input_schema": { "type": "object", "properties": { "path": { "type": "string" } }, "required": [ "path" ], "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" } } ] }
  3. © 2025 CData Software Japan, LLC | www.cdata.com/jp { "id":

    "msg_01QbKPV3YetJwhXVZ5WEgkAr", "type": "message", "role": "assistant", "model": "claude-3-7-sonnet-20250219", "content": [ { "type": "text", "text": " MCP list_directory MCP Master Control Program " }, { "type": "tool_use", "id": "toolu_01NmULx1GoJUX3NYu7RMTMPa", "name": "list_directory", "input": { "path": "MCP" } } ], "stop_reason": "tool_use", "stop_sequence": null, "usage": { "input_tokens": 468, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "output_tokens": 128, "service_tier": "standard" } }
  4. © 2025 CData Software Japan, LLC | www.cdata.com/jp { "model":

    "{{model}}", "max_tokens": {{max_tokens}}, "messages": [ { "role": "user", "content": "MCP " }, { "role": "assistant", "content": [ { "type": "text", "text": "MCP list_directory MCP Master Control Program " }, { "type": "tool_use", "id": "toolu_ 01NmULx1GoJUX3NYu7RMTMPa ", "name": "list_directory", "input": { "path": "MCP" } } ] } { "role": "user", "content": [ { "type": "tool_result", "tool_use_id": "toolu_ 01NmULx1GoJUX3NYu7RMTMPa ", "content": "[FILE] Sample1.txt¥n[FILE] Sample2.txt¥n[DIR] SampleFolder" } ] }
  5. © 2025 CData Software Japan, LLC | www.cdata.com/jp { "id":

    "msg_017SnG1zEkT6SgSoVY5AEHMf", "type": "message", "role": "assistant", "model": "claude-3-7-sonnet-20250219", "content": [ { "type": "text", "text": "MCP ¥n¥n ¥n- Sample1.txt¥n- Sample2.txt¥n¥n ¥n- SampleFolder¥n¥nMCP SampleFolder " } ], "stop_reason": "end_turn", "stop_sequence": null, "usage": { "input_tokens": 633, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "output_tokens": 100, "service_tier": "standard" } }
  6. © 2025 CData Software Japan, LLC | www.cdata.com/jp • •

    • • • • • • • • • • • •