Skip to main content
Glama
sparesparrow

MCP Project Orchestrator

MCP 项目协调器

持续集成/持续交付 代码验证 PyPI 版本 Python 3.9+ 许可证:MIT

用于管理模型上下文协议 (MCP) 项目、模板、提示和美人鱼图的综合项目编排工具。

特征

  • 模板管理

    • 用于快速项目设置的项目模板

    • 用于模块化开发的组件模板

    • 变量替换和验证

    • 模板发现和版本控制

  • 及时管理

    • 系统和用户提示模板

    • 变量替换

    • 及时分类和版本控制

    • 轻松快速发现和重复使用

  • 美人鱼图生成

    • 流程图生成

    • 序列图生成

    • 类图生成

    • SVG 和 PNG 渲染

    • 图表验证

Related MCP server: MCP Maker

安装

pip install mcp-project-orchestrator

或者用诗歌:

poetry add mcp-project-orchestrator

快速入门

项目模板

from mcp_project_orchestrator.templates import TemplateManager

# Initialize template manager
manager = TemplateManager("path/to/templates")

# List available templates
templates = manager.list_templates()
print(templates)

# Apply a project template
manager.apply_template("fastapi-project", {
    "project_name": "my-api",
    "project_description": "My FastAPI project",
    "author_name": "John Doe",
    "author_email": "john@example.com"
})

及时管理

from mcp_project_orchestrator.prompts import PromptManager

# Initialize prompt manager
manager = PromptManager("path/to/prompts")

# List available prompts
prompts = manager.list_prompts()
print(prompts)

# Render a prompt with variables
rendered = manager.render_prompt("system-prompt", {
    "name": "User",
    "project": "MCP"
})
print(rendered)

美人鱼图

from mcp_project_orchestrator.mermaid import MermaidGenerator, MermaidRenderer

# Initialize generators
generator = MermaidGenerator()
renderer = MermaidRenderer()

# Generate a flowchart
flowchart = generator.generate_flowchart(
    nodes=[
        ("A", "Start"),
        ("B", "Process"),
        ("C", "End")
    ],
    edges=[
        ("A", "B", ""),
        ("B", "C", "")
    ]
)

# Render to SVG
renderer.render(flowchart, "flowchart.svg")

项目结构

mcp-project-orchestrator/
├── src/
│   └── mcp_project_orchestrator/
│       ├── templates/
│       │   ├── __init__.py
│       │   ├── base.py
│       │   ├── project.py
│       │   ├── component.py
│       │   └── manager.py
│       ├── prompts/
│       │   ├── __init__.py
│       │   ├── template.py
│       │   └── manager.py
│       └── mermaid/
│           ├── __init__.py
│           ├── generator.py
│           └── renderer.py
├── tests/
│   ├── __init__.py
│   ├── conftest.py
│   ├── test_templates.py
│   ├── test_prompts.py
│   └── test_mermaid.py
├── docs/
├── examples/
├── .github/
│   └── workflows/
│       └── ci.yml
├── pyproject.toml
├── Containerfile
└── README.md

发展

  1. 克隆存储库:

git clone https://github.com/yourusername/mcp-project-orchestrator.git
cd mcp-project-orchestrator
  1. 安装依赖项:

poetry install
  1. 运行测试:

poetry run pytest
  1. 运行 linting:

poetry run ruff check .
poetry run mypy src/mcp_project_orchestrator

贡献

  1. 分叉存储库

  2. 创建功能分支

  3. 提交你的更改

  4. 推送到分支

  5. 创建拉取请求

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。

致谢

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sparesparrow/mcp-project-orchestrator'

If you have feedback or need assistance with the MCP directory API, please join our Discord server