Commit 852b1f3
authored
Add opt-in `transport-http` Cargo feature to `mcpls-core` and
`mcpls-cli` that enables MCP 2025-11-25 Streamable HTTP transport.
- New `Transport` enum (`Stdio` | `Http(HttpConfig)`) controls the
runtime binding; `serve()` is unchanged (stdio default)
- New `serve_with(config, Transport)` dispatches to `run_stdio` or
`run_http` after shared LSP init
- `run_http` mounts `StreamableHttpService` on axum; graceful shutdown
handles both SIGTERM and SIGINT for container deployments
- `--listen <ADDR>` CLI flag (env: `MCPLS_LISTEN`) and `--http-path`
(env: `MCPLS_HTTP_PATH`, default `/mcp`) available with the feature
- Non-loopback bind emits a `tracing::warn!` about missing auth/TLS
- New deps (`axum 0.8`, `tokio-util 0.7`) are optional — default build
pulls neither
1 parent 0f40608 commit 852b1f3
9 files changed
Lines changed: 779 additions & 27 deletions
File tree
- crates
- mcpls-cli
- src
- mcpls-core
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
0 commit comments