You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add --transport CLI flag to select between sse and streamable-http
- Add MCP_TRANSPORT environment variable support for transport selection
- Create StreamableHTTPServer wrapper in pkg/mcp/server.go
- Update server startup logic to use selected transport
- Add documentation for transport configuration
This enables MKP to work with environments like ToolHive that require
HTTP-based communication. The default transport remains SSE for backward
compatibility.
Fixes#82
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -367,6 +367,28 @@ The resource URIs follow these formats:
367
367
368
368
### Configuration
369
369
370
+
#### Transport Protocol
371
+
372
+
MKP supports two transport protocols for the MCP server:
373
+
374
+
-**SSE (Server-Sent Events)**: The default transport protocol, suitable for most use cases
375
+
-**Streamable HTTP**: A streaming HTTP transport that supports both direct HTTP responses and SSE streams, useful for environments like ToolHive that require HTTP-based communication
376
+
377
+
You can configure the transport protocol using either a CLI flag or an environment variable:
378
+
379
+
```bash
380
+
# Using CLI flag
381
+
./build/mkp-server --transport=streamable-http
382
+
383
+
# Using environment variable
384
+
MCP_TRANSPORT=streamable-http ./build/mkp-server
385
+
386
+
# Default (SSE)
387
+
./build/mkp-server
388
+
```
389
+
390
+
The `MCP_TRANSPORT` environment variable is automatically set by ToolHive when running MKP in that environment.
391
+
370
392
#### Controlling Resource Discovery
371
393
372
394
By default, MKP serves all Kubernetes resources as MCP resources, which provides
0 commit comments