🧠 mcp_server-client_EAG-S-4 - Local Setup

🧠 mcp_server-client_EAG-S-4 - Local Setup

site icon
2025.04.07 0
Python计算服务自动化工具开发效率
local_mcp_server-client_EAG-S-4 是一个基于 MCP(Modular Computation Protocol)的本地计算服务,提供多种计算工具和自动化功能。它包括一个服务器和一个客户端,服务器提供28种工具,客户端用于调用这些工具。该项目使用 `uv` 作为 Python 包管理和工作流工具。
View on GitHub

Overview

基本能力

产品定位

local_mcp_server-client_EAG-S-4 是一个本地计算服务,旨在提供多种计算工具和自动化功能,适用于开发者和研究人员进行本地计算和自动化任务。

核心功能

  1. 数学工具:包括加法、减法、乘法、除法、幂运算、平方根、立方根、阶乘、对数、模运算、三角函数等。
  2. 字符串/图像工具:包括字符转ASCII、生成缩略图等。
  3. Pinta自动化工具:包括打开Pinta应用、选择工具(矩形、文本、圆形)、绘制矩形、写入文本、绘制圆形等。

适用场景

  1. 数学计算:适用于需要进行复杂数学计算的场景。
  2. 图像处理:适用于需要生成缩略图或进行简单图像处理的场景。
  3. 自动化绘图:适用于需要自动化操作Pinta进行绘图的场景。

工具列表

  1. 数学工具add, add_list, subtract, multiply, divide, power, sqrt, cbrt, factorial, log, remainder, sin, cos, tan, mine, int_list_to_exponential_sum, fibonacci_numbers
  2. 字符串/图像工具strings_to_chars_to_int, create_thumbnail
  3. Pinta自动化工具open_pinta_application, select_rectangle_tool, select_text_tool, select_circle_tool, draw_rectangle, write_text_inside_rectangle, draw_circle, get_lines_of_rectangle, get_midpoint_of_line

常见问题解答

  1. Pinta相关工具无法使用:确保Pinta已安装。
  2. 图像工具无法使用:确保提供的图像路径有效。
  3. 客户端无法连接服务器:确保服务器已正确启动。

使用教程

使用依赖

  1. 安装 uv
curl -Ls https://astral.sh/uv/install.sh | sh

验证安装:

uv --version

安装教程

  1. 克隆仓库:
git clone https://github.com/your-username/mcp-protocol.git
cd mcp-protocol
  1. 设置项目环境:
uv venv
source .venv/bin/activate  # or .venv\Scripts\activate on Windows
uv pip install -r pyproject.toml

调试方式

  1. 测试MCP服务器:
mcp dev mcp_server.py
  1. 运行客户端:
python mcp_client.py

许可证

该项目遵循 MIT 开源许可条款。