Skip to content

Instantly share code, notes, and snippets.

@ArcHound
Created April 30, 2025 18:13
Show Gist options
  • Save ArcHound/c1d0bcc835915def0f88237ccf225122 to your computer and use it in GitHub Desktop.
Save ArcHound/c1d0bcc835915def0f88237ccf225122 to your computer and use it in GitHub Desktop.
MCP SSE First connection
GET /sse HTTP/1.1
Host: localhost:8000
Accept-Encoding: gzip, deflate
Connection: keep-alive
User-Agent: python-httpx/0.28.1
Accept: text/event-stream
Cache-Control: no-store
HTTP/1.1 200 OK
date: Wed, 30 Apr 2025 18:05:44 GMT
server: uvicorn
cache-control: no-store
connection: keep-alive
x-accel-buffering: no
content-type: text/event-stream; charset=utf-8
Transfer-Encoding: chunked
51
event: endpoint
data: /messages/?session_id=4b5b8455a7524a7c9f5e62c7015d5803
12c
event: message
data:
{
"jsonrpc": "2.0",
"id": 0,
"result": {
"protocolVersion": "2024-11-05",
"capabilities": {
"experimental": {},
"prompts": {
"listChanged": false
},
"resources": {
"subscribe": false,
"listChanged": false
},
"tools": {
"listChanged": false
}
},
"serverInfo": {
"name": "MistralCLIServer",
"version": "1.6.0"
}
}
}
{
"jsonrpc": "2.0",
"id": 0,
"result": {
"protocolVersion": "2024-11-05",
"capabilities": {
"experimental": {},
"prompts": {
"listChanged": false
},
"resources": {
"subscribe": false,
"listChanged": false
},
"tools": {
"listChanged": false
}
},
"serverInfo": {
"name": "MistralCLIServer",
"version": "1.6.0"
}
}
}
4c
event: message
data: {"jsonrpc":"2.0","id":1,"result":{"resources":[]}}
308
event: message
data:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"tools": [
{
"name": "simple_get",
"description": "Get URL",
"inputSchema": {
"properties": {
"url": {
"title": "Url",
"type": "string"
}
},
"required": [
"url"
],
"title": "simple_getArguments",
"type": "object"
}
},
{
"name": "weather",
"description": "Get current weather for location specified by City (London) or ZIP (10001) or IATA (DXB) or coordinates (48.8567,2.3508)",
"inputSchema": {
"properties": {
"location": {
"description": "City (London) or ZIP (10001) or IATA (DXB) or coordinates (48.8567,2.3508) to get current weather for",
"title": "Location",
"type": "string"
}
},
"required": [
"location"
],
"title": "weatherArguments",
"type": "object"
}
},
{
"name": "time",
"description": "",
"inputSchema": {
"properties": {},
"title": "timeArguments",
"type": "object"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment