@@ -31,9 +31,6 @@ static llvm::StringLiteral kProtocolVersion = "2024-11-05";
3131using Id = std::variant<int64_t , std::string>;
3232
3333// / A request that expects a response.
34- // /
35- // / See
36- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#jsonrpcrequest
3734struct Request {
3835 // / The request id.
3936 Id id = 0 ;
@@ -60,8 +57,6 @@ enum ErrorCode : signed {
6057 eErrorCodeInternalError = -32603 ,
6158};
6259
63- // / See
64- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#jsonrpcerror
6560struct Error {
6661 // / The error type that occurred.
6762 int64_t code = 0 ;
@@ -78,9 +73,6 @@ bool fromJSON(const llvm::json::Value &, Error &, llvm::json::Path);
7873bool operator ==(const Error &, const Error &);
7974
8075// / A response to a request, either an error or a result.
81- // /
82- // / See
83- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#jsonrpcrequest
8476struct Response {
8577 // / The request id.
8678 Id id = 0 ;
@@ -93,8 +85,6 @@ bool fromJSON(const llvm::json::Value &, Response &, llvm::json::Path);
9385bool operator ==(const Response &, const Response &);
9486
9587// / A notification which does not expect a response.
96- // / See
97- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#jsonrpcnotification
9888struct Notification {
9989 // / The method to be invoked.
10090 std::string method;
@@ -115,8 +105,6 @@ bool fromJSON(const llvm::json::Value &, Message &, llvm::json::Path);
115105llvm::json::Value toJSON (const Message &);
116106
117107// / A known resource that the server is capable of reading.
118- // /
119- // / See https://modelcontextprotocol.io/specification/2025-06-18/schema#resource
120108struct Resource {
121109 // / The URI of this resource.
122110 std::string uri;
@@ -135,9 +123,6 @@ llvm::json::Value toJSON(const Resource &);
135123bool fromJSON (const llvm::json::Value &, Resource &, llvm::json::Path);
136124
137125// / The server’s response to a resources/list request from the client.
138- // /
139- // / See
140- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#listresourcesresult
141126struct ListResourcesResult {
142127 std::vector<Resource> resources;
143128};
@@ -163,9 +148,6 @@ bool fromJSON(const llvm::json::Value &, TextResourceContents &,
163148 llvm::json::Path);
164149
165150// / Sent from the client to the server, to read a specific resource URI.
166- // /
167- // / See
168- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#readresourcerequest
169151struct ReadResourceParams {
170152 // / The URI of the resource to read. The URI can use any protocol; it is up to
171153 // / the server how to interpret it.
@@ -184,9 +166,6 @@ bool fromJSON(const llvm::json::Value &, ReadResourceResult &,
184166 llvm::json::Path);
185167
186168// / Text provided to or from an LLM.
187- // /
188- // / See
189- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#textcontent
190169struct TextContent {
191170 // / The text content of the message.
192171 std::string text;
@@ -195,8 +174,6 @@ llvm::json::Value toJSON(const TextContent &);
195174bool fromJSON (const llvm::json::Value &, TextContent &, llvm::json::Path);
196175
197176// / Definition for a tool the client can call.
198- // /
199- // / See https://modelcontextprotocol.io/specification/2025-06-18/schema#tool
200177struct ToolDefinition {
201178 // / Unique identifier for the tool.
202179 std::string name;
@@ -214,9 +191,6 @@ using ToolArguments = std::variant<std::monostate, llvm::json::Value>;
214191
215192// / Describes the name and version of an MCP implementation, with an optional
216193// / title for UI representation.
217- // /
218- // / see
219- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#implementation
220194struct Implementation {
221195 // / Intended for programmatic or logical use, but used as a display name in
222196 // / past specs or fallback (if title isn’t present).
@@ -239,9 +213,6 @@ bool fromJSON(const llvm::json::Value &, Implementation &, llvm::json::Path);
239213// / Capabilities a client may support. Known capabilities are defined here, in
240214// / this schema, but this is not a closed set: any client can define its own,
241215// / additional capabilities.
242- // /
243- // / See
244- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#clientcapabilities
245216struct ClientCapabilities {};
246217llvm::json::Value toJSON (const ClientCapabilities &);
247218bool fromJSON (const llvm::json::Value &, ClientCapabilities &,
@@ -250,9 +221,6 @@ bool fromJSON(const llvm::json::Value &, ClientCapabilities &,
250221// / Capabilities that a server may support. Known capabilities are defined here,
251222// / in this schema, but this is not a closed set: any server can define its own,
252223// / additional capabilities.
253- // /
254- // / See
255- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#servercapabilities
256224struct ServerCapabilities {
257225 bool supportsToolsList = false ;
258226 bool supportsResourcesList = false ;
@@ -270,9 +238,6 @@ bool fromJSON(const llvm::json::Value &, ServerCapabilities &,
270238
271239// / This request is sent from the client to the server when it first connects,
272240// / asking it to begin initialization.
273- // /
274- // / See
275- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#initializerequest
276241struct InitializeParams {
277242 // / The latest version of the Model Context Protocol that the client supports.
278243 // / The client MAY decide to support older versions as well.
@@ -287,9 +252,6 @@ bool fromJSON(const llvm::json::Value &, InitializeParams &, llvm::json::Path);
287252
288253// / After receiving an initialize request from the client, the server sends this
289254// / response.
290- // /
291- // / See
292- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#initializeresult
293255struct InitializeResult {
294256 // / The version of the Model Context Protocol that the server wants to use.
295257 // / This may not match the version that the client requested. If the client
@@ -315,9 +277,6 @@ llvm::json::Value toJSON(const Void &);
315277bool fromJSON (const llvm::json::Value &, Void &, llvm::json::Path);
316278
317279// / The server's response to a `tools/list` request from the client.
318- // /
319- // / See
320- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#listtoolsresult
321280struct ListToolsResult {
322281 std::vector<ToolDefinition> tools;
323282};
@@ -337,9 +296,6 @@ llvm::json::Value toJSON(const CallToolParams &);
337296bool fromJSON (const llvm::json::Value &, CallToolParams &, llvm::json::Path);
338297
339298// / The server’s response to a tool call.
340- // /
341- // / See
342- // / https://modelcontextprotocol.io/specification/2025-06-18/schema#calltoolresult
343299struct CallToolResult {
344300 // / A list of content objects that represent the unstructured result of the
345301 // / tool call.
0 commit comments