mcp_starter_cli
引言
mcp_starter_cli 是一个强大的命令行界面(CLI)工具,旨在简化使用Node.js或Python在本地搭建、运行和测试MCP服务器的过程。它与Claude和OpenAI API密钥无缝集成,以增强功能。此外,它支持自动链接到Claude Desktop进行本地代理测试,并包括实时错误显示等功能,以及对自动linting和TypeScript转换的支持。
特性
- CLI接口:轻松搭建、运行和部署MCP服务器。
- API密钥注入:根据需要动态注入OpenAI或Claude API密钥。
- 服务器日志记录和错误显示:实时监控服务器日志,实时显示错误,以便快速调试。
- Claude桌面集成:自动链接到Claude Desktop进行本地代理测试。
- 自动换行与TS转换:内置对linting JavaScript/TypeScript代码和转换TypeScript的支持。
安装说明
先决条件
确保你的系统上安装了Node.js。您可以从以下网址下载 .
安装 mcp_starter_cli
您可以使用npm全局安装CLI工具:
npm install -g mcp_starter_cli或者,如果您更喜欢使用Yarn:
yarn global add mcp_starter_cli使用示例
脚手架一个新项目
要创建新的MCP服务器项目,请运行:
mcp_starter_cli scaffold my-mcp-project --template nodejs对于Python项目:
mcp_starter_cli scaffold my-python-mcp-project --template python在本地运行服务器
导航到项目目录并启动服务器:
cd my-mcp-project
mcp_starter_cli run对于Python:
cd my-python-mcp-project
mcp_starter_cli run注入API密钥
要注入OpenAI或Claude API密钥,请使用:
mcp_starter_cli config set openai-key YOUR_OPENAI_API_KEY
mcp_starter_cli config set claude-key YOUR_CLAUDE_API_KEY查看服务器日志
通过实时错误显示实时监控服务器日志:
mcp_starter_cli logsAPI文档
有关API的详细文档和高级用法,请参阅 API文件.
许可证
mcp_starter_cli 是根据麻省理工学院许可证许可的开源软件。有关更多详细信息,请参阅 许可证 文件。
______________________________________________________________________
欢迎为这个项目做出贡献,或通过我们的GitHub存储库报告任何问题。编码愉快! 🚀
This README provides a comprehensive overview of the `mcp_starter_cli` tool, including its features, installation instructions, usage examples, and licensing information. Make sure to replace placeholders like `your-repo` with your actual GitHub repository details.
## ⚠️ Development Status
This library is currently in early development. Some tests may be failing with the following issues:
Contributions to fix these issues are welcome! Please submit a pull request if you have a solution.
