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 关于上下文降级、工具数量限制和协议架构的研究引用。
