Skip to content

feat(mcp): add streamable-http transport option#4

Merged
gzileni merged 1 commit into
mainfrom
feat/mcp-streamable-http
Jun 11, 2026
Merged

feat(mcp): add streamable-http transport option#4
gzileni merged 1 commit into
mainfrom
feat/mcp-streamable-http

Conversation

@gzileni

@gzileni gzileni commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

FastMCP supports three transports today: stdio, sse, and streamable-http. The server's main() only exposed stdio and sse. Clients that ship a streamable-http MCP tool — e.g. the Microsoft Agent Framework's MCPStreamableHTTPTool — couldn't talk to kg-mcp without a custom bridge.

Change

Add streamable-http as a third option behind the same MCP_TRANSPORT env var. Five-line change in main(); nothing else needs to move. The handlers and tool registry stay identical.

```
MCP_TRANSPORT=stdio # default — Claude Desktop / Claude Code
MCP_TRANSPORT=sse # legacy streaming
MCP_TRANSPORT=streamable-http # NEW — modern HTTP transport
```

Why

Kairos's chat agent (MAF Haiku) currently calls the KG via a custom httpx wrapper on /query because there was no straightforward way to wire MAF's MCP client to an SSE-only server. With streamable-http available, the chat can use the proper MCP tool surface (kg_query, kg_search_nodes, kg_traverse) and inherit the upstream's tool documentation automatically — no bespoke client glue.

Recommended deployment

For new docker deployments use MCP_TRANSPORT=streamable-http. SSE stays available for callers that haven't migrated yet.

🤖 Generated with Claude Code

FastMCP supports three transports today: stdio, sse, streamable-http.
The server's main() only exposed stdio and sse — clients that ship a
streamable-http MCP tool (e.g. the Microsoft Agent Framework's
MCPStreamableHTTPTool) couldn't talk to the kg-mcp server without a
custom bridge.

Add streamable-http as a third option behind the same MCP_TRANSPORT
env var. Five-line change in main(); nothing else needs to move.

Recommended for new docker deployments: MCP_TRANSPORT=streamable-http
is the cleanest interop with MAF agents and other modern hosts.
@gzileni gzileni merged commit eab6c0b into main Jun 11, 2026
6 checks passed
@gzileni gzileni deleted the feat/mcp-streamable-http branch June 11, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant