generator
by context-hub·★ 321·综合分 50
CTX 是一个 MCP 服务器,提供 AI 访问代码的读取、写入和分析功能,支持多项目和自定义工具。
概述
CTX 是一个基于 PHP 的紧凑型 MCP 服务器,使 AI 助手能够直接与您的代码库交互。它提供强大的文件系统工具,允许 AI 读取、写入、搜索和修改多个项目中的文件。该工具支持 AI 可执行的自定义命令,实现与开发工作流程的无缝集成,如测试和部署。CTX 可以从代码、git 差异和其他源生成结构化的上下文文档,为 AI 模型提供全面的上下文信息。
试试问 AI
装完之后,这里有 3 个你可以让 AI 做的事:
什么时候选它
当您处理 PHP 项目或需要 AI 助手具有直接的文件系统访问能力,并能在多个项目间执行自定义命令时,选择 CTX。
什么时候不要选它
如果您的 AI 需要处理 PHP 以外的编程语言,或者您需要比 MCP 连接更全面的 IDE 集成,请不要选择 CTX。
此 server 暴露的工具
从 README 抽取出 12 个工具read_fileRead the contents of a file in the project
write_fileCreate or modify a file in the project
search_filesSearch across the codebase with text or regex patterns
run_testsRun project tests with coverage
deployDeploy to staging environment
analyze_php_structureAnalyze PHP code structure including class hierarchy and dependencies
explore_directoryExplore directory contents with smart filtering options
list_projectsList all registered projects in the workspace
generate_contextGenerate structured context documents from various sources
create_github_issueCreate a new issue on GitHub
review_prReview a pull request with context from the codebase
onboard_teamGenerate comprehensive project overview for new team members
说明:Tool names were inferred from the documentation sections about MCP functionality, custom tools, and use cases. The README doesn't provide explicit tool documentation with signatures.
可对比工具
安装
安装 CTX:
**Linux / WSL:**
curl -sSL https://raw.githubusercontent.com/context-hub/generator/main/download-latest.sh | sh**Windows:**
powershell -c "& ([ScriptBlock]::Create((irm 'https://raw.githubusercontent.com/context-hub/generator/main/download-latest.ps1'))) -AddToPath"连接到 Claude Desktop:
ctx mcp:config或手动添加到您的 MCP 客户端配置:
{
"mcpServers": {
"ctx": {
"command": "ctx",
"args": [
"server"
]
}
}
}generator 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。