Skip to content

feat(gateway): add bounded HTTP admission - #202

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/gateway-http-admission
Sep 3, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/gateway-http-admission

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown
Contributor

Add a host-configured standard MCP Streamable HTTP entry point for CapabilityGatewayMcpServer at /mcp. Authentication requires an exact bearer token using constant-time comparison; an explicit Origin allowlist rejects unexpected browser origins. Shared bounded admission limits max in-flight calls and calls per rolling window across server clones, while HTTP requests receive 429 on exhaustion. Tokens are redacted from Debug output and all limits/credentials validate before serving. Added focused lease-compatible, rate-limit, auth, origin, and shutdown tests; split admission/HTTP/test modules to keep protocol code maintainable. Validation: cargo fmt --all -- --check; cargo test -p a3s-use capability_gateway --all-features --locked; cargo clippy -p a3s-use --all-targets --all-features --locked -- -D warnings; cargo check --no-default-features --features mcp --locked.

@ZhiXiao-Lin
ZhiXiao-Lin merged commit 556cb75 into main Sep 3, 2026
7 checks passed
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