context-compose-mcp
by lazylagom·★ 1·综合分 31
Context Compose MCP 服务器使用基于 YAML 的上下文组合,为 LLM 交互提供特定任务上下文。
概述
Context Compose 提供了一个定义、组合和管理 AI 开发工作流中细粒度上下文的系统。它允许开发者创建可重用的、特定任务的上下文,可以混合匹配用于不同的编码任务,如新功能、错误修复或重构。该服务器通过模型上下文协议(MCP)公开这些上下文,能够与兼容的客户端无缝集成。系统使用带有 YAML 文件的简单目录结构来组织人物、规则和其他组件。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要在开发团队中保持一致、任务特定的 AI 指导,特别是在处理具有不同要求的项目时,选择 Context Compose。
什么时候不要选它
如果您需要简单的一次性 AI 交互而不希望管理上下文的复杂性,或者您喜欢一体化解决方案而非基于组件的方法,则不要选择 Context Compose。
此 server 暴露的工具
从 README 抽取出 3 个工具initInitialize a new project with Context Compose
start-contextStart a specific context for development tasks
validateValidate Context Compose asset files for correctness
说明:Tools were inferred from CLI commands described in the README. The documentation focuses more on the concept and usage rather than explicit tool definitions.
可对比工具
安装
{
"mcpServers": {
"context-compose": {
"command": "npx",
"args": ["-y", "@noanswer/context-compose@latest"]
}
}
}- 初始化项目:
npx @noanswer/context-compose init - 在
.contextcompose/目录中创建上下文文件 - 启动上下文:
npx @noanswer/context-compose start-context <上下文名称>
FAQ
- Context Compose 使用什么文件结构?
- Context Compose 在项目根目录使用一个 `.contextcompose` 文件夹,其中包含不同资源类型的子目录,如 `personas`、`rules`、`actions` 和 `mcps`。
- 如何创建自定义上下文类别?
- 只需在 `.contextcompose/` 内创建一个新目录(如 `security`),并添加 YAML 文件,其 `kind` 字段与目录名称匹配即可。
context-compose-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。