{"type":"api","title":"Handle Model Context Protocol requests","meta":{"id":"/apps/pubhub/media/crosswork-workflow-manager-api-document/b344c6ce6ef774411bd08699614d744684ff7f05/262737b2-b3c2-32cd-b07b-fdbdcd23918f","info":{"description":"Cisco Crosswork Workflow Manager (CWM) 2.1 offers RESTful APIs that enable automation engineers and developers to create, deploy, and manage workflows, adapters, jobs, resources, events, and workers within the Cisco CWM platform.","title":"Cisco Crosswork Workflow Manager API","termsOfService":"www.cisco.com","contact":{"name":"API Support","url":"https://www.cisco.com/support"},"version":"2.1.0"},"x-parser-conf":{"overview":{"markdownPath":"reference/overview.md"}},"swagger":"2.0","basePath":"/crosswork/cwm/v2","securityDefinitions":{"Bearer":{"type":"apiKey","name":"Authorization","in":"header","description":"JWT Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\""}}},"spec":{"description":"Handles MCP (Model Context Protocol) requests via JSON-RPC 2.0. Supports methods: initialize, tools/list, tools/call, ping, notifications/initialized, logging/setLevel","consumes":["application/json"],"produces":["application/json"],"tags":["mcp"],"summary":"Handle Model Context Protocol requests","parameters":[{"description":"JSON-RPC 2.0 Request","name":"request","in":"body","required":true,"schema":{"description":"JSON-RPC 2.0 request structure for MCP","type":"object","properties":{"id":{"description":"Request identifier (string or number)","type":"string","example":"1"},"jsonrpc":{"description":"JSON-RPC version, must be \"2.0\"","type":"string","example":"2.0"},"method":{"description":"Method name to invoke: initialize, tools/list, tools/call, ping, notifications/initialized, logging/setLevel","type":"string","example":"tools/list"},"params":{"description":"Optional parameters for the method"}},"$$ref":"#/definitions/mcp.MCPRequest"}}],"responses":{"200":{"description":"JSON-RPC 2.0 Response","schema":{"description":"JSON-RPC 2.0 response structure for MCP","type":"object","properties":{"error":{"description":"Error object (present on failure)","type":"object","properties":{"code":{"description":"Error code (-32700: Parse error, -32600: Invalid Request, -32601: Method not found, -32602: Invalid params, -32603: Internal error)","type":"integer","example":-32600},"data":{"description":"Additional error data (optional)"},"message":{"description":"Human-readable error message","type":"string","example":"Invalid Request"}},"$$ref":"#/definitions/mcp.MCPError"},"id":{"description":"Request identifier matching the request","type":"string","example":"1"},"jsonrpc":{"description":"JSON-RPC version, always \"2.0\"","type":"string","example":"2.0"},"result":{"description":"Result of the method call (present on success)"}},"$$ref":"#/definitions/mcp.MCPResponse"}},"400":{"description":"Parse error or invalid request","schema":{"description":"JSON-RPC 2.0 error response structure","type":"object","properties":{"error":{"description":"Error object with code and message","type":"object","properties":{"code":{"description":"Error code (-32700: Parse error, -32600: Invalid Request, -32601: Method not found, -32602: Invalid params, -32603: Internal error)","type":"integer","example":-32600},"data":{"description":"Additional error data (optional)"},"message":{"description":"Human-readable error message","type":"string","example":"Invalid Request"}},"$$ref":"#/definitions/mcp.MCPError"},"id":{"description":"Request identifier (may be null on parse errors)","type":"string","example":""},"jsonrpc":{"description":"JSON-RPC version, always \"2.0\"","type":"string","example":"2.0"}},"$$ref":"#/definitions/mcp.MCPErrorResponse"}}},"method":"post","path":"/mcp"}}