LLM上下文准备MCP服务器
MCP服务器,从您的代码库生成全面的上下文文档,用于LLM分析。
安装
# macOS/Linux
curl -fsSL https://raw.githubusercontent.com/Juliusolsson05/llm-prep-mcp/main/scripts/install.sh | bash
# Windows
irm https://raw.githubusercontent.com/Juliusolsson05/llm-prep-mcp/main/scripts/install.ps1 | iex重新启动Claude Code,然后验证: claude mcp list
用法
在克劳德代码中:
Use llm-prep to prepare context for this project
Use llm-prep to analyze the project structure
Use llm-prep to chunk src/ into 3000-line files工具
| 工具 | 目的 |
|---|---|
prepare_context | 生成上下文文档 |
analyze_project_structure | 检测项目类型,建议忽略 |
create_debug_notes | 保存笔记以供包含 |
chunk_path_for_llm | 将大dirs分割成块 |
update_tree_ignore | 配置排除 |
输出
your_project/
├── .llm_prep_config.json # Config
├── .llm_prep_notes/ # Your notes
└── context_reports/ # Generated contexts许可证
麻省理工学院
