test-mcp-server-on-ic-canister

test-mcp-server-on-ic-canister

2

The project is a Model Context Protocol server supporting Streamable HTTP and tools capabilities, designed to be stateless and non-verified for responses currently. It focuses on deploying and serving requests on a specified URL.

1. Note

This MCP server only support Streamable HTTP.

This MCP server only support tools capability.

Stateless, non-response-verification at the moment!

2. Usage

dfx deploy --playground

Serve at https://{DEPLOYED_CANISTER_ID}.icp0.io/mcp

Example request:

curl --request POST \
  --url https://${DEPLOYED_CANISTER_ID}.icp0.io/mcp \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "tools/list"
}'