Infrastructure
MCP protocol message
POST
/mcpReceives a JSON-RPC 2.0 message for the MCP protocol server. Returns a JSON-RPC 2.0 response, or null for notifications.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "http://localhost:8080/mcp" \ -H "Content-Type: application/json" \ -d '{}'{
"jsonrpc": "2.0",
"result": {},
"error": {
"code": 0,
"message": "string"
},
"id": "string"
}