mirror of
https://github.com/mcp-use/mcp-use.git
synced 2026-09-14 18:06:01 +08:00
b2d9425446
* fix: replace examples symlinks with redirect READMEs GitHub's web UI renders symlinks as plain text showing the target path instead of navigating to the linked directory. Replace the symlinks with directories containing README files that link to the actual example directories, so clicking through works on GitHub. Closes MCP-865 * fix: add example READMEs with descriptions to library directories Add README.md files to the actual example directories so GitHub renders them when browsing. Each README lists all examples with short descriptions in table format. - libraries/python/examples/README.md - libraries/typescript/packages/mcp-use/examples/README.md - Update redirect READMEs in examples/python and examples/typescript Closes MCP-865
2.8 KiB
2.8 KiB
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 |