### 快速启动 MCP Server Source: https://github.com/yuandian-ailaw/yuandian-mcp-server/blob/main/README.md 使用 npx 直接运行 MCP Server,需提供 YUANDIAN_API_KEY。 ```bash YUANDIAN_API_KEY="你的_api_key" npx -y yuandian-mcp-server ``` -------------------------------- ### 本地安装并运行 MCP Server Source: https://github.com/yuandian-ailaw/yuandian-mcp-server/blob/main/README.md 将包安装到当前项目后运行。 ```bash npm install yuandian-mcp-server YUANDIAN_API_KEY="你的_api_key" npx yuandian-mcp-server ``` -------------------------------- ### 全局安装并运行 MCP Server Source: https://github.com/yuandian-ailaw/yuandian-mcp-server/blob/main/README.md 全局安装后直接通过命令启动。 ```bash npm install -g yuandian-mcp-server YUANDIAN_API_KEY="你的_api_key" yuandian-mcp-server ``` -------------------------------- ### MCP 客户端配置文件示例 Source: https://github.com/yuandian-ailaw/yuandian-mcp-server/blob/main/README.md 在 MCP 客户端配置文件中集成 yuandian-mcp-server,通过环境变量传入 API Key。 ```json { "mcpServers": { "yuandian-mcp-server": { "command": "npx", "args": ["-y", "yuandian-mcp-server"], "env": { "YUANDIAN_API_KEY": "你的_api_key" } } } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.