AIMCP - AI-Enhanced MCP Tool Manager
AIMCP 是一个基于 MCP (Model Context Protocol) 的工具管理器,主要用于统一管理和规范化工具描述。
主要功能
- 🤖 使用大语言模型自动生成标准化的工具描述
- 🔧 通过配置文件统一管理多个 MCP Server
- 📝 支持手动编辑工具描述(无需AI生成)
- 🌍 支持多语言工具描述
安装
pip install aimcp
快速开始
基本使用
from aimcp import AIMCP
import asyncio
# 初始化客户端
client = AIMCP(
mcp_config_path="./mcp_config.json",
tools_config_path="./tools_config.json",
api_key="your-api-key", # 可选,也可通过环境变量设置
model="gpt-4o-mini",
language="中文"
)
# 生成工具配置
# ai_create=True:使用AI生成描述
# ai_create=False:使用原始描述,可后续手动修改
res = asyncio.run(client.create_aimcp_tools(ai_create=False))
MCP配置示例
mcp_config.json:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"],
"env": {}
}
}
}
未来规划
- 工具路由功能
- 错误处理优化
- 更多服务端集成
许可证
MIT License
Metadata
Release files for aimcp 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aimcp-0.1.2.tar.gz | 10.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aimcp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / aimcp-0.1.2.tar.gz
| Download URL | aimcp-0.1.2.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
789187d9f77da553dd5fa65107285c91fdb8e9ddc3b1c61c32284d695db5d9de
|
|
BLAKE2b-256 checksum How to use checksums |
386d5e58ef507fbcee40bc84512ae4573996a805b364c2cc70d1ea1664d7b8b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / aimcp-0.1.2-py3-none-any.whl
| Download URL | aimcp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1ccd854eb43ec844c02709f44cbda26e8cfa73f9ccd162b8ccefd92ad2c6994
|
|
BLAKE2b-256 checksum How to use checksums |
5383472450d14bc6c2ee5de3a075830e92e57567ad139417705fffb3725fba13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|