Skip to main content

AI-Enhanced MCP Tool Manager with intelligent tool description generation

Project description

AIMCP - AI-Enhanced MCP Tool Manager

PyPI version Python 3.8+ License: MIT

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aimcp-0.1.2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aimcp-0.1.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file aimcp-0.1.2.tar.gz.

File metadata

  • Download URL: aimcp-0.1.2.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for aimcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 789187d9f77da553dd5fa65107285c91fdb8e9ddc3b1c61c32284d695db5d9de
MD5 3e90ec9deec26a3ccc12c6e1341de35d
BLAKE2b-256 386d5e58ef507fbcee40bc84512ae4573996a805b364c2cc70d1ea1664d7b8b0

See more details on using hashes here.

File details

Details for the file aimcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: aimcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for aimcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1ccd854eb43ec844c02709f44cbda26e8cfa73f9ccd162b8ccefd92ad2c6994
MD5 0806cc10e106b077f0c4657984b9f69a
BLAKE2b-256 5383472450d14bc6c2ee5de3a075830e92e57567ad139417705fffb3725fba13

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page