Skip to content

Instantly share code, notes, and snippets.

@ArcHound
Created May 4, 2025 08:43
Show Gist options
  • Save ArcHound/3847b48379af1470ff2dde8389620892 to your computer and use it in GitHub Desktop.
Save ArcHound/3847b48379af1470ff2dde8389620892 to your computer and use it in GitHub Desktop.
MCP SSE Initial requests
POST /messages/?session_id=4b5b8455a7524a7c9f5e62c7015d5803 HTTP/1.1
Host: localhost:8000
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
User-Agent: python-httpx/0.28.1
Content-Length: 194
Content-Type: application/json
{"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{"sampling":{},"roots":{"listChanged":true}},"clientInfo":{"name":"mcp","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
HTTP/1.1 202 Accepted
date: Wed, 30 Apr 2025 18:05:44 GMT
server: uvicorn
content-length: 8
Accepted
POST /messages/?session_id=4b5b8455a7524a7c9f5e62c7015d5803 HTTP/1.1
Host: localhost:8000
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
User-Agent: python-httpx/0.28.1
Content-Length: 54
Content-Type: application/json
{"method":"notifications/initialized","jsonrpc":"2.0"}
HTTP/1.1 202 Accepted
date: Wed, 30 Apr 2025 18:05:44 GMT
server: uvicorn
content-length: 8
Accepted
POST /messages/?session_id=4b5b8455a7524a7c9f5e62c7015d5803 HTTP/1.1
Host: localhost:8000
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
User-Agent: python-httpx/0.28.1
Content-Length: 50
Content-Type: application/json
{"method":"resources/list","jsonrpc":"2.0","id":1}
HTTP/1.1 202 Accepted
date: Wed, 30 Apr 2025 18:05:44 GMT
server: uvicorn
content-length: 8
Accepted
POST /messages/?session_id=4b5b8455a7524a7c9f5e62c7015d5803 HTTP/1.1
Host: localhost:8000
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
User-Agent: python-httpx/0.28.1
Content-Length: 46
Content-Type: application/json
{"method":"tools/list","jsonrpc":"2.0","id":2}
HTTP/1.1 202 Accepted
date: Wed, 30 Apr 2025 18:05:44 GMT
server: uvicorn
content-length: 8
Accepted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment