TM

tisu19021997/meta-prompt-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

34 stars 9 forks 质量 58 趋势 0Apache-2.0

通过提示将任何MCP客户端变成“多代理”系统

概览

本项目是论文《元提示:用任务无关支架增强语言模型》中的技术实现。 该MCP的核心是将标准语言模型(LM)转变为动态的多代理系统,无需复杂设置。其工作原理是LM承担两个关键角色: 1. : 高级项目经理,分析复杂问题,将其拆分为更小、合乎逻辑的子任务,并委派它们。2. : 由指挥“咨询”执行每个子任务的专业代理(如“Python程序员”、“代码审查员”、“创意写作者”)。 神奇之处在于,整个协作工作流程都在一个LM中模拟。指挥官和专家是不同的操作模式,由复杂的系统提示引导,使模型能够推理、行动和自我批评,最终得到更稳健、更准确的解决方案。这就像拥有一支自动化的AI专家团队,全部由一个模型驱动。

概述(AI 翻译)

本项目是论文《元提示:用任务无关支架增强语言模型》中的元提示技术的实现。

该MCP的核心是将标准语言模型(LM)转变为动态的多代理系统,无需复杂设置。其工作原理是LM承担两个关键角色:

  1. 指挥家:一位高级项目经理,负责分析复杂问题,将其拆分为更小、合乎逻辑的子任务,并委派这些任务。
  2. 专家:由指挥家“咨询”执行每个子任务的专业代理(如“Python程序员”、“代码审查员”、“创意写作者”)。

神奇之处在于,整个协作流程都在单一LM中模拟。指挥官和专家是不同的操作模式,由复杂的系统提示引导,使模型能够推理、行动和自我批评,最终得到更稳健、更准确的解决方案。这就像拥有一支自动化的AI专家团队,全部由一个模型驱动。

演示

开始

1.克隆仓库

首先,将这个仓库克隆到你的本地机器上。

2.安装 uv

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Meta Prompt MCP

This project is an implementation of the Meta-Prompting technique from the paper “Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding”.

At its core, this MCP transforms a standard Language Model (LM) into a dynamic, multi-agent system without the complex setup. It works by having the LM adopt two key roles:

  1. The Conductor: A high-level project manager that analyzes a complex problem, breaks it down into smaller, logical subtasks, and delegates them.
  2. The Expert: Specialized agents (e.g., “Python Programmer,” “Code Reviewer,” “Creative Writer”) that are “consulted” by the Conductor to execute each subtask.

The magic is that this entire collaborative workflow is simulated within a single LM. The Conductor and Experts are different modes of operation guided by a sophisticated system prompt, allowing the model to reason, act, and self-critique its way to a more robust and accurate solution. It’s like having an automated team of AI specialists at your disposal, all powered by one model.

Demo

Getting Started

1. Clone the Repository

First, clone this repository to your local machine.

git clone https://github.com/tisu19021997/meta-prompt-mcp-server.git .
cd meta-prompt-mcp-server

2. Install uv

This project uses uv, an extremely fast Python package manager from Astral. If you don’t have it installed, you can do so with one of the following commands.

Note: use which uv to know the path of your uv installation.

macOS / Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows (PowerShell):

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

For more details, see the official uv installation guide.

Usage

To use this Meta Prompt MCP server, you need to configure your client (e.g., Cursor, Claude Desktop) to connect to it. Make sure to replace the placeholder paths with the actual paths on your machine.

Cursor

Add the following configuration to your mcp.json settings:

"meta-prompting": {
  "command": "path/to/your/uv",
  "args": [
    "--directory",
    "path/to/your/meta-prompt-mcp",
    "run",
    "mcp-meta-prompt"
  ]
}

Claude Desktop

Add the following configuration to your claude_desktop_config.json settings:

"meta-prompting": {
  "command": "path/to/your/uv",
  "args": [
    "--directory",
    "path/to/your/meta-prompt-mcp",
    "run",
    "mcp-meta-prompt"
  ]
}

Activating the Meta-Prompt Workflow

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →