feat(server): enterprise concurrent access — SSE/HTTP transport, rate limiting, metrics#89
Merged
Merged
Conversation
… limiting, metrics (#88) - Add server: config section (transport, host, port, auth, rate_limit, metrics) - Support SSE and streamable-http transport via FastMCP (--transport CLI override) - Thread-safe QueryCache, BM25 build lock, orchestrator double-checked locking - ChromaDB WAL mode for concurrent reads in SSE/HTTP mode - Optional rate limiting (sliding-window, decorator-based, disabled by default) - Optional Prometheus metrics endpoint (disabled by default) - All 12 MCP tools instrumented with @rate_limited + @Instrument decorators - Auto-enable single-instance lock in SSE/HTTP mode - New optional dependency: pip install knowledge-rag[server] - Version bump: 3.9.1 -> 4.0.0 Closes #88
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
… changelog reorder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enterprise-grade concurrent access for knowledge-rag. 1 server serves N clients via SSE/HTTP transport.
New Features
server.transport: "sse"or--transport sseCLI/metricsendpoint (disabled by default)@rate_limited+@instrumentdecorators (zero-cost when disabled)Config
Migration
stdio— zero breaking changes for existing userspip install knowledge-rag[server]+ setserver.transport: "sse"Files changed
mcp_server/config.py— 9 new server config fieldsmcp_server/server.py— transport switching, thread safety, decorator applicationmcp_server/ratelimit.py— NEW: sliding window rate limitermcp_server/metrics.py— NEW: Prometheus metrics collectorconfig.example.yaml— server section documentationpyproject.toml— version 4.0.0, mcp>=1.6.0, [server] optional depREADME.md— v4.0.0 changelogCloses #88