远程MCP服务器计算工具

一个通过远程MCP服务器执行计算任务的工具,支持创建代理并在本地主机上运行。

  • by ManuK001
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 ManuK001/MCPTest

使用说明

MCP测试

步骤

  1. 创建虚拟环境

  2. 安装requirement.txt

pip安装-r要求.txt

pip安装-r mcp_client。要求.txt

  1. python main_calc.py#用于运行计算器MCP

  2. python3 client.py#运行客户端代码以创建代理并在本地主机上使用MCP服务器

输出

最终结果为57+75=132

根据您的要求更新client.py和其他python程序。

提及 https://medium.com/@vin4tech/实现远程mcp服务器-内联数据-d6f0f7bf5b30(用于快速mcp) https://learn.microsoft.com/en-us/azure/ai-foundry/agents/quickstart?view=foundry-classic&pivots=编程语言python azure(用于代理创建)