渐进式揭示协议服务器

一个展示如何通过模式门控渐进式揭示引导代理推理的Python MCP服务器。

  • by colinhale1
  • Python
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 colinhale1/progressive-reveal-mcp

使用说明

MCP的渐进式揭示

一个工作的Python MCP服务器,演示了协议如何通过模式门控渐进式披露来指导代理推理。

快速开始

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

运行Demos

# Validation gates — see inputs accepted and rejected by the schema
python3 tests/test_gates.py

# Full protocol conversation — progressive reveal + context isolation comparison
python3 tests/test_progressive_reveal.py

与MCP检查员联系

npx @modelcontextprotocol/inspector python3 src/server.py

交互漫游

打开 docs/walkthrough.html 在浏览器中查看该架构的动画漫游。

参考文献

看 docs/references/README.md 关于上下文降级、工具数量限制和协议架构的研究引用。