Show HN: PolyMCP – 一款用于 MCP 服务器和代理集成的工具包
1 分•作者: justvugg•6 个月前
PolyMCP 是一个用于构建和交互 MCP(模型上下文协议)服务器的框架,以及创建能够将这些服务器用作动态工具的 Agent。
开发和管理 MCP 服务器通常会面临几个挑战:
* 将 Python 函数暴露为可发现的工具需要重复的样板代码。
* 同时协调多个 MCP 服务器非常复杂。
* 由于对调用和输出的可见性有限,在开发期间调试工具很困难。
* 将 Agent 与 LLM 集成以自动发现和调用工具通常是临时的。
PolyMCP 通过提供以下功能来解决这些挑战:
* 灵活的工具暴露:Python 函数可以通过 HTTP、进程内或标准输入/输出方式提供服务,只需最少的设置。
* Inspector 仪表板:实时交互式地监控工具调用、指标和测试调用。
* Agent 集成:支持多个 LLM 提供商,并支持自动工具发现和调用。
* CLI 和工作流程实用程序:简化项目设置、测试和执行。
PolyMCP 减少了 MCP 服务器开发和多工具 Agent 编排的摩擦,提供了一个可靠的框架,用于构建智能的、工具驱动的系统。
Github: <a href="https://github.com/poly-mcp/Polymcp" rel="nofollow">https://github.com/poly-mcp/Polymcp</a>
查看原文
PolyMCP is a framework for building and interacting with MCP (Model Context Protocol) servers and for creating agents that can use those servers as dynamic tools.<p>Developing and managing MCP servers often involves several challenges:<p>Exposing Python functions as discoverable tools requires repetitive boilerplate.<p>Coordinating multiple MCP servers simultaneously is complex.<p>Debugging tools during development is hard due to limited visibility into calls and outputs.<p>Integrating agents with LLMs to automatically discover and invoke tools is usually ad-hoc.<p>PolyMCP addresses these challenges by providing:<p>Flexible tool exposure: Python functions can be served over HTTP, in-process, or stdio with minimal setup.<p>Inspector dashboard: Monitor tool invocations, metrics, and test calls interactively in real-time.<p>Agent integration: Support for multiple LLM providers and automatic tool discovery and invocation.<p>CLI and workflow utilities: Streamline project setup, testing, and execution.<p>PolyMCP reduces friction in MCP server development and multi-tool agent orchestration, offering a reliable framework for building intelligent, tool-driven systems.<p>Github: <a href="https://github.com/poly-mcp/Polymcp" rel="nofollow">https://github.com/poly-mcp/Polymcp</a>