Model Context Protocol(MCP) 编程极速入门
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add model-context-protocol -- uv init mcp_getting_started~/.codex/config.toml
[mcp_servers.model-context-protocol]
command = "uv"
args = ["init", "mcp_getting_started"]
# codex mcp add model-context-protocol -- uv init mcp_getting_started~/.cursor/mcp.json
{
"mcpServers": {
"model-context-protocol": {
"command": "uv",
"args": [
"init",
"mcp_getting_started"
]
}
}
}.vscode/mcp.json
{
"servers": {
"model-context-protocol": {
"type": "stdio",
"command": "uv",
"args": [
"init",
"mcp_getting_started"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"model-context-protocol": {
"command": "uv",
"args": [
"init",
"mcp_getting_started"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"model-context-protocol": {
"command": "uv",
"args": [
"init",
"mcp_getting_started"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"model-context-protocol": {
"command": "uv",
"args": [
"init",
"mcp_getting_started"
]
}
}
}