Skip to content

Commit a497f9c

Browse files
authored
feat: support MCP sessions, SSE parsing, and cancel (#67)
Complete the Streamable HTTP path with initialize/Mcp-Session-Id, SSE JSON-RPC responses, capability digest binding, and richer audit.
1 parent 489f668 commit a497f9c

14 files changed

Lines changed: 760 additions & 41 deletions

‎CHANGELOG.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 2.3.0
4+
5+
MCP supported path for Streamable HTTP sessions.
6+
7+
- `initialize` + `Mcp-Session-Id` lifecycle (`sessionMode` auto/always/never)
8+
- SSE (`text/event-stream`) JSON-RPC parsing for tools/call responses
9+
- Cancellation via `notifications/cancelled` (+ DELETE fallback)
10+
- Optional capability digest binding on initialize
11+
- Richer audit-tool payload (session, capability digest, mcp_request_id)
12+
- Routes: `POST /mcp/servers/{name}/initialize`, `POST /mcp/servers/{name}/cancel`
13+
314
## 2.2.0
415

516
Full closed-loop integration surface.

‎app/gateway/main.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def _begin_drain(*_args: object) -> None:
190190

191191

192192
configure_tracing()
193-
app = FastAPI(title="AI Runtime Gateway", version="2.2.0", lifespan=lifespan)
193+
app = FastAPI(title="AI Runtime Gateway", version="2.3.0", lifespan=lifespan)
194194
FastAPIInstrumentor.instrument_app(app)
195195
register_exception_handlers(app)
196196
install_authentication(app)

0 commit comments

Comments
 (0)