一个模型上下文协议服务器,用于检索相关代码片段或文档以帮助生成pymilvus代码。
在使用此MCP服务器之前,请确保您具备以下条件:
无
使用此MCP服务器的推荐方式是直接通过uv运行而无需安装。Claude Desktop和Cursor就是这样配置的示例。当前服务器支持两种模式:SSE和STDIO。
uv run src/mcp_pymilvus_code_generate_helper/sse_server.py
# 如果未提供milvus_uri,默认连接本地Milvus服务(http://localhost:19530)
# 要连接到远程Milvus服务,请指定milvus_uri,例如:
# uv run src/mcp_pymilvus_code_generate_helper/sse_server.py --milvus_uri http://:
Cursor > 首选项 > Cursor设置 > MCP+ 添加新的MCP服务器按钮pymilvus-code-generate-helper(或任何您喜欢的名称)SSEhttp://localhost:23333/sse(替换为您的服务器IP地址和端口)保存您也可以直接编辑mcp.json如下:
{
"mcpServers": {
"pymilvus-code-generate-helper": {
"url": "http://localhost:23333/sse"
}
}
}
⚠️ 重要提示
Claude Desktop目前仅支持部分功能
uv run src/mcp_pymilvus_code_generate_helper/stdio_server.py --milvus_uri http://localhost:19530
Claude > 偏好设置 > MCP配置pymilvus-code-generate-helperSTDIOsrc/mcp_pymilvus_code_generate_helper/stdio_server.pyexport OPENAI_API_KEY="your-api-key"
服务器提供了以下工具:
milvus-pypmilvus-code-generate-helper:根据用户自然语言查询,查找相关pymilvus代码/文档以帮助生成代码
query:用户用于生成代码的查询milvus-translate-orm-to-milvus-client-code-helper:根据用户自然语言查询,查找相关ORM和pymilvus客户端代码/文档以帮助将ORM代码转换为Milvus客户端代码
query:用户用于翻译ORM代码的查询无
无
欢迎贡献!如果您有任何改进检索结果的想法,请提交拉取请求或打开问题。
此项目根据MIT License授权。