Commit 9bcfa86
Dev Agent Amelia
fix(http): support multiple simultaneous MCP clients in HTTP mode
The MCP SDK's Server allows only one initialize call per instance.
Sharing a single Server across HTTP sessions caused a HTTP 400
\"Server already initialized\" error for every client after the first.
Fix: adopt a per-session factory pattern in startHttpTransport().
Each new MCP session receives its own (Server, transport) pair.
Sessions are tracked in Map<sessionId, transport> and cleaned up
on close.
server.ts: extract createMcpServer(client) so the factory can be
passed as () => createMcpServer(client). ALL_TOOL_DEFS promoted to
module-level constant.
docs: add 7 client-guide installation guides (Claude Desktop, Claude
Code, Codex CLI, Gemini CLI, Cursor, Windsurf, HTTP Server) with
corrections from real installation tests:
- claude-code: fix --env flag order (server name must precede -e flags)
- claude-desktop: document AUTH_MODE=pac option
- codex-cli: correct \"Rust binary\" note (npm version is Node.js/JS)
- gemini-cli: add npm list -g fallback for Windows version check
- cursor: add mkdir note for missing ~/.cursor on fresh Windows install
- windsurf: add workspace-scoped .windsurf/mcp.json section
- http-server: update tool count 50 → 63"1 parent bd98bd1 commit 9bcfa86
File tree
52 files changed
+3618
-776
lines changed- dist
- dataverse
- tools
- docs/client-guides
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
52 files changed
+3618
-776
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments