SWI-10226 feat: add Express Registration API + zero-to-one auth flow#6
Open
SWI-10226 feat: add Express Registration API + zero-to-one auth flow#6
Conversation
Adds requires_auth parameter to _create_server, registers Express Registration API (no-auth) in api_server_info, and adds Express-specific tests. Total tool count updated to 49 (Express adds 2 net new tools; verifyCode deduplicates with MFA). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… collision The Express and MFA APIs both had operationId: verifyCode, causing FastMCP to silently drop one during import. Renamed to verifyRegistrationCode so all 50 tools are accessible. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ntials tool Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…fidelity
- Add idempotency guard to _reload_authenticated_servers (prevents tool
duplication on repeated setCredentials calls)
- Fix mutable default config={} in _create_server and create_bandwidth_mcp
- Fix Express tests to use requires_auth=False (matches production config)
- Move warnings import to top of config.py
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
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
requires_authflag on_create_server— Express requires no authenticationBW_USERNAME/BW_PASSWORD, Express tools are available immediatelysetCredentialstool so agents can inject credentials mid-session after Express registration, triggering loading of authenticated API serversverifyCode→verifyRegistrationCodeto avoid operationId collision with MFA'sverifyCodeChanges
src/servers.py: Addedrequires_authparam, Express inapi_server_info, explicit credential checksrc/config.py: Credentials now optional (warns instead of raising)src/app.py: Reload callback for post-registration credential injectionsrc/tools/credentials.py:setCredentialstool with idempotency guardtest/fixtures/express.yml: Express OpenAPI spec fixture (3 endpoints)test/test_express.py: 5 Express-specific teststest/test_config.py: Optional credentials teststest/test_credentials.py: setCredentials tool teststest/test_servers.py: Updated tool count (50), added express mockREADME.md: Express Registration docs + tool filtering exampleTest plan
🤖 Generated with Claude Code