Add OAuth 2.1 Bearer token authentication e2e tests for MCP HTTP servers #174
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.
Adds comprehensive end-to-end test coverage for OAuth 2.1 Bearer token authentication flow between Atlas UI backend and MCP HTTP servers using FastMCP's auth providers.
Test Implementation
Python test suite (
test/oauth_e2e_test.py, 440 lines):${MCP_MOCK_TOKEN_1}→ actual token)Playwright test suite (
test_e2e/tests/oauth-authentication.spec.js, 233 lines):openToolsPanel,navigateToMarketplace) reduce duplicationwaitForLoadState('networkidle')for reliability vs hardcoded timeoutsscreenshots/oauth/Test runner integration (
test/e2e_tests.sh):simple_e2e_test.pyExample: Testing Token Resolution
Documentation
test/OAUTH_E2E_TESTS.md: Architecture, configuration, troubleshooting (192 lines)test/OAUTH_TESTING_QUICKSTART.md: Step-by-step guide with curl examples (256 lines)CHANGELOG.mdandtest/README.mdIntegration
Tests integrate with existing
mocks/mcp-http-mock/server:StaticTokenVerifier(development only)MCP_MOCK_TOKEN_1,MCP_MOCK_TOKEN_2Complements existing
backend/tests/integration/test_mcp_auth_integration.pywith full-stack validation.Running Tests
Original prompt
Created from VS Code.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.