mcp-use-code-review
Test MCP-Use SDK Based Apps
What mcp-use IS vs. What It Is NOT
mcp-use (pip install mcp-use) |
MCP Server SDK (pip install mcp) |
Claude Agent SDK | mcp-use Server SDK (TS/Python) | |
|---|---|---|---|---|
| Purpose | Connect a LangChain LLM to one or more existing MCP servers | Build / expose an MCP server | Build agents using Anthropic's agent framework | Build production MCP servers with built-in transport, sessions, OAuth |
| Key classes | MCPClient, MCPAgent, MCPSession |
Server, StdioServerTransport |
@tool decorator, createSdkMcpServer |
MCPServer, text(), object(), session stores, OAuth providers |
| Tool relationship | Discovers tools from running servers | Defines tools that servers expose | Defines tools for the agent to use | Defines tools via server.tool() / @server.tool() decorators |
| Import | from mcp_use import MCPClient, MCPAgent |
from mcp.server import Server |
N/A (TypeScript SDK) | TS: import { MCPServer } from 'mcp-use/server' / Python: from mcp_use import MCPServer |
| Config | {"mcpServers": {"name": {…}}} dict |
N/A — you write the server code | N/A | Server config object with name, version, sessionStore, OAuth |
Rule of thumb: If the file consumes MCP tools, it should import from mcp_use (client). If it provides MCP tools, it can import from mcp.server (official SDK) or mcp-use/server (mcp-use Server SDK, which wraps the official SDK with production features). Mixing client and server imports in the same file is almost always wrong.
Server Config Schema
The config dict follows the Claude Desktop / Cursor convention. Transport type is auto-detected by key presence.
More from yigitkonur/skills-by-yigitkonur
run-research
Use skill if you are answering one technical research question with current web evidence, Reddit practitioner experience, and source-backed synthesis, optionally fanned out across parallel subagents.
42run-agent-browser
Use skill if you are driving the agent-browser CLI for ad hoc browser automation — @ref snapshots, sessions, forms, extraction, screenshots, headed/stealth, or provider runs.
38publish-npm-package
Use skill if you are publishing to npm via GitHub Actions release workflow with trusted publishing, NPM_TOKEN, provenance, semantic-release, changesets, release-please, or fixing npm publish CI.
35build-mcp-use-server
Use skill if you are building TypeScript MCP servers with mcp-use/server — server.tool, response helpers, ctx.auth, sessions, transports, widgets, Inspector, deploy.
34init-agent-config
Use skill if you are creating, auditing, or migrating CLAUDE.md, AGENTS.md, or REVIEW.md instruction files, folder-scoped agent guidance, or cross-agent companion entrypoints.
34build-skills
Use skill if you are creating or substantially revising a Claude skill and need workspace-first evidence, remote comparison, and repo-fit synthesis before writing SKILL.md.
32