initialize request containing:{ "jsonrpc":"2.0", "id":1, "method":"initialize", "params": { "protocolVersion":"2024-11-05", "capabilities": { "roots": { "listChanged":true }, "sampling": {}, "elicitation": { "form": {}, "url": {} }, "tasks": { "requests": { "elicitation": { "create": {} }, "sampling": { "createMessage": {} } } } }, "clientInfo": { "name":"ExampleClient", "title":"Example Client Display Name", "version":"1.0.0", "description":"An example MCP client application", "icons": [ { "src":"https://example.com/icon.png", "mimeType":"image/png", "sizes": ["48x48"] } ], "websiteUrl":"https://example.com" } }}{ "jsonrpc":"2.0", "id":1, "result": { "protocolVersion":"2024-11-05", "capabilities": { "logging": {}, "prompts": { "listChanged":true }, "resources": { "subscribe":true, "listChanged":true }, "tools": { "listChanged":true }, "tasks": { "list": {}, "cancel": {}, "requests": { "tools": { "call": {} } } } }, "serverInfo": { "name":"ExampleServer", "title":"Example Server Display Name", "version":"1.0.0", "description":"An example MCP server providing tools and resources", "icons": [ { "src":"https://example.com/server-icon.svg", "mimeType":"image/svg+xml", "sizes": ["any"] } ], "websiteUrl":"https://example.com/server" }, "instructions":"Optional instructions for the client" }}initialized notificationto indicate it is ready to begin normal operations:{ "jsonrpc":"2.0", "method":"notifications/initialized"}initialize request.initializednotification.initialize request, the clientMUST send a protocol version it supports.ThisSHOULD be thelatest version supported by the client.If the server supports the requested protocol version, itMUST respond with the sameversion. Otherwise, the serverMUST respond with another protocol version itsupports. ThisSHOULD be thelatest version supported by the server.If the client does not support the version in the server’s response, itSHOULDdisconnect.MCP-Protocol-Version: <protocol-version> HTTP header on all subsequent requests to the MCPserver.For details, seethe Protocol Version Header section in Transports.| Category | Capability | Description |
|---|---|---|
| Client | roots | Ability to provide filesystemroots |
| Client | sampling | Support for LLMsampling requests |
| Client | elicitation | Support for serverelicitation requests |
| Client | tasks | Support fortask-augmented client requests |
| Client | experimental | Describes support for non-standard experimental features |
| Server | prompts | Offersprompt templates |
| Server | resources | Provides readableresources |
| Server | tools | Exposes callabletools |
| Server | logging | Emits structuredlog messages |
| Server | completions | Supports argumentautocompletion |
| Server | tasks | Support fortask-augmented server requests |
| Server | experimental | Describes support for non-standard experimental features |
listChanged: Support for list change notifications (for prompts, resources, andtools)subscribe: Support for subscribing to individual items’ changes (resources only)SIGTERM if the server does not exitwithin a reasonable timeSIGKILL if the server does not exit within a reasonable time afterSIGTERM{ "jsonrpc":"2.0", "id":1, "error": { "code":-32602, "message":"Unsupported protocol version", "data": { "supported": ["2024-11-05"], "requested":"1.0.0" } }}Was this page helpful?