Files
Enrico Toniato 8d55603972 Canary (#1166)
* feat(python): add E2E testing for Python server in CI workflow

- Introduced a new job in the GitHub Actions workflow to run end-to-end tests against the Python MCP server.
- Updated the inspector.py to allow overriding the CDN base URL via an environment variable.
- Added a new script command for running Python E2E tests in the package.json.
- Enhanced documentation to include instructions for running Python server E2E tests.

* fix(inspector): skip proxy when inspector is served from the MCP server itself

When the inspector is embedded in a Python (or other) MCP server, the
window.location.origin matches the MCP server's origin, so
/inspector/api/proxy doesn't exist there. Routing auto-connect through
that missing proxy caused silent connection failures.

Now proxyAddress is only set when the inspector origin differs from the
target URL's origin (i.e. the inspector has its own server running).

Also add echo tool to server_example.py so python.test.ts can pass.

* fix(inspector): detect proxy availability via runtime config injection

Inject window.__MCP_PROXY_URL__ from the inspector server when it serves
the HTML. When served from a Python/custom MCP server (same origin), the
flag is absent and autoProxyFallback is disabled so no proxy is used.

- Add proxyUrl to RuntimeConfig in shared-static.ts
- Default to /inspector/api/proxy when inspector server serves
- Read __MCP_PROXY_URL__ in App.tsx and configure defaultAutoProxyFallback
- Disable autoProxyFallback when no proxy is available (no hosted fallback)

* ci: trigger inspector E2E workflow on PRs to canary/main

* ci: temporarily disable mix/prod/builtin E2E jobs for Python testing

* ci: re-enable all E2E jobs, workflow_dispatch only

* ci: re-enable E2E jobs for Python testing in CI workflow

* chore: enter canary prerelease mode

* chore(typescript): version packages (canary)

* fix(inspector): resolve auto-connect issues for embedded servers

This patch release addresses the auto-connect functionality of the inspector when served from an MCP server. Key changes include skipping the proxy when the inspector's origin matches the MCP server's origin and detecting proxy availability through runtime configuration. Additionally, the mcp-use package has been updated to version 1.21.2.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-06 17:24:26 +01:00
..
2026-03-06 17:24:26 +01:00

Python Examples

Client Examples

Example Description
http_example.py HTTP client usage
stream_example.py Streaming responses
code_mode_example.py Using MCP tools via code execution
direct_tool_call.py Direct tool invocation without an agent
multi_server_example.py Working with multiple MCP servers
multimodal_input_example.py Multimodal input (image processing)
simple_oauth_example.py OAuth with Dynamic Client Registration

OAuth Client Examples

Example Description
client/oauth_dynamic_client_registration.py OAuth with Dynamic Client Registration using Linear
client/oauth_preregistered.py OAuth with pre-registered credentials using GitHub

Server Examples

Example Description
server/server_example.py Basic server with tools, resources, prompts, and annotations
server/middleware_example.py Server middleware (logging, auth, rate limiting)
server/context_example.py Server context usage (logging, sampling, notifications)

Agent Examples

Example Description
chat_example.py Chat agent with built-in conversation memory
limited_memory_chat.py Chat agent with limited memory window
mcp_everything.py Comprehensive MCP functionality testing
structured_output.py Structured output with schema validation
simple_server_manager_use.py Dynamic server selection with ServerManager
sandbox_everything.py Sandboxed execution using E2B

Integration Examples

Example Description
openai_integration_example.py OpenAI API integration
anthropic_integration_example.py Anthropic API integration
langchain_integration_example.py LangChain integration
google_integration_example.py Google API integration

MCP Server Integrations

Example Description
airbnb_use.py Airbnb MCP server
blender_use.py Blender MCP server
browser_use.py Browser automation MCP server
filesystem_use.py Filesystem operations MCP server