Dekbot MCP - How agents can read docs

MCP endpoint: /mcp (also available at /).

Use POST only, with these headers:

1) Initialize session

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {
    "protocolVersion": "2025-11-25",
    "capabilities": {},
    "clientInfo": {
      "name": "my-agent",
      "version": "1.0.0"
    }
  }
}

Read the response header MCP-Protocol-Version and send it in all next requests.

2) List available docs resources

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "resources/list"
}

Resources use the URI format docs://<collection>/<file>. Example: docs://schedly/prd.md.

3) Read one doc file

{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "resources/read",
  "params": {
    "uri": "docs://schedly/prd.md"
  }
}

Quick curl example

curl -i http://127.0.0.1:3011/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  --data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"my-agent","version":"1.0.0"}}}'

Discover docs with resources/list and read them using returned docs://... URIs.