使用说明
项目结构
pip install uv
uv init <project_name>
uv venv
uv add "mcp[cli]"
MCP服务器设置
(系统的)设置 .vscode 文件夹
文件 mcp.json
{
"inputs": [
// The "inputs" section defines the inputs required for the MCP server configuration.
{
"type": "promptString"
}
],
"servers": {
// The "servers" section defines the MCP servers you want to use.
"shell-server": {
"command": "C:\\Programming\\MCP\\shellserver\\.venv\\Scripts\\python",
"args": ["C:\\Programming\\MCP\\shellserver\\server.py"]
}
}
}