mcp-requests.jsonā¢2.92 kB
{
"initialize": {
"request": {
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": {
"name": "test-client",
"version": "1.0.0"
}
}
},
"response": {
"jsonrpc": "2.0",
"id": 1,
"result": {
"protocolVersion": "2024-11-05",
"capabilities": {
"tools": {
"listChanged": true
}
},
"serverInfo": {
"name": "ContextEngine",
"version": "1.0.13"
},
"instructions": "Use this server to check health status and send greetings."
}
}
},
"toolsList": {
"request": {
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list",
"params": {}
},
"response": {
"jsonrpc": "2.0",
"id": 2,
"result": {
"tools": [
{
"name": "check-health",
"title": "Check Health Status",
"description": "Checks the health status of the ContextEngine API and returns connectivity information.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}
},
{
"name": "greet",
"title": "Send Greeting",
"description": "Sends a personalized greeting message to test API connectivity.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Optional name to include in the greeting message."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}
}
]
}
}
},
"checkHealth": {
"request": {
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "check-health",
"arguments": {}
}
},
"response": {
"jsonrpc": "2.0",
"id": 3,
"result": {
"content": [
{
"type": "text",
"text": "Health Status: healthy\nTimestamp: 2024-01-01T00:00:00Z\nVersion: 1.0.0"
}
]
}
}
},
"greet": {
"request": {
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "greet",
"arguments": {
"name": "Alice"
}
}
},
"response": {
"jsonrpc": "2.0",
"id": 4,
"result": {
"content": [
{
"type": "text",
"text": "Hello, Alice! API is working correctly."
}
]
}
}
}
}