MCP Catalogs
首页

context-compose-mcp

by lazylagom·1·综合分 31

Context Compose MCP 服务器使用基于 YAML 的上下文组合,为 LLM 交互提供特定任务上下文。

developer-toolsai-llmproductivity
0
Forks
0
活跃 Issue
11 个月前
最近提交
2 天前
收录于

概述

Context Compose 提供了一个定义、组合和管理 AI 开发工作流中细粒度上下文的系统。它允许开发者创建可重用的、特定任务的上下文,可以混合匹配用于不同的编码任务,如新功能、错误修复或重构。该服务器通过模型上下文协议(MCP)公开这些上下文,能够与兼容的客户端无缝集成。系统使用带有 YAML 文件的简单目录结构来组织人物、规则和其他组件。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:使用专家人物和 TypeScript 规则进行 React 组件的前端开发
:使用安全指南和清洁代码原则进行后端 API 开发
:使用标准化检查清单和架构专家视角进行代码审查
:Context Compose 使用什么文件结构?
:如何创建自定义上下文类别?

什么时候选它

当您需要在开发团队中保持一致、任务特定的 AI 指导,特别是在处理具有不同要求的项目时,选择 Context Compose。

什么时候不要选它

如果您需要简单的一次性 AI 交互而不希望管理上下文的复杂性,或者您喜欢一体化解决方案而非基于组件的方法,则不要选择 Context Compose。

此 server 暴露的工具

从 README 抽取出 3 个工具
  • init

    Initialize a new project with Context Compose

  • start-context

    Start a specific context for development tasks

  • validate

    Validate 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.

可对比工具

mcp-server-templateai-workflow-toolprompt-engineering-cli

安装

{
  "mcpServers": {
    "context-compose": {
      "command": "npx",
      "args": ["-y", "@noanswer/context-compose@latest"]
    }
  }
}
  1. 初始化项目:npx @noanswer/context-compose init
  2. .contextcompose/ 目录中创建上下文文件
  3. 启动上下文:npx @noanswer/context-compose start-context <上下文名称>

FAQ

Context Compose 使用什么文件结构?
Context Compose 在项目根目录使用一个 `.contextcompose` 文件夹,其中包含不同资源类型的子目录,如 `personas`、`rules`、`actions` 和 `mcps`。
如何创建自定义上下文类别?
只需在 `.contextcompose/` 内创建一个新目录(如 `security`),并添加 YAML 文件,其 `kind` 字段与目录名称匹配即可。

context-compose-mcp 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。