流程图生成与天气服务示例

包含两个示例项目:使用DOT格式数据生成Graphviz流程图和基于模型上下文协议(MCP)的简单天气服务器演示。

  • by Aero-Agents
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 oliver932/mcp-server-experiments

使用说明

MCP服务器实验

此存储库包含两个示例项目:

  • 流程图生成器:从DOT格式的输入数据生成Graphviz流程图。
  • 天气示例:演示使用模型上下文协议(MCP)的简单天气服务器。

安装说明

1.克隆存储库

git clone <repo-url>
cd mcp-server-experiments

2.设置和运行每个项目

对于 flowchart-gen:

cd flowchart-gen
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

对于 weather-example:

cd weather-example
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

您可能还需要安装mcp

pip install "mcp[cli]"

4.运行开发服务器

mcp dev flowchart.py   # For flowchart-gen
mcp dev weather.py        # For weather-example

您可能需要调整 命令 和 论点 连接到服务器之前的字段-它适用于下面描述的设置:

5.配置Gemini CLI

更新您的 ~/.gemini/settings.json 指向您的本地服务器,如中所述 MCP快速入门.

如果gemini制作流程图,图像将显示在 \flowchart-gen 像 flowchart.png: