Context Engineering MCP Server
这是一个符合 Model Context Protocol (MCP) 标准的服务器,旨在为 Claude Desktop、Cursor 或其他 AI 助手提供"外部记忆"和"上下文管理"能力。
它实现了 Context Engineering 的核心理念,允许 AI 像操作系统一样管理自己的工作区状态。
✨ 功能
这个插件为你的 AI 助手添加了以下能力(Tools):
context_init: 初始化.ai/skills和.agent_memory目录结构。context_state: 获取当前工作区的"快照"(包含目录树、Git状态、当前目标)。context_save_observation: 将长输出(如日志、API响应)保存到文件,只返回摘要。context_read_observation: 按需读取之前保存的观察结果。
📦 安装与配置
1. 作为 Python 包安装
# 从 PyPI 安装
pip install ctx-engine-mcp
2. 配置 Claude Desktop
编辑你的 Claude Desktop 配置文件(通常位于 ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"context-engineering": {
"command": "uv",
"args": [
"tool",
"run",
"--from",
"ctx-engine-mcp",
"context-mcp"
]
}
}
}
或者使用系统 Python:
{
"mcpServers": {
"context-engineering": {
"command": "python3",
"args": ["-m", "context_mcp.server"]
}
}
}
3. 配置 Cursor (即将支持)
Cursor 目前正在积极集成 MCP,配置方式与 Claude Desktop 类似。
🛠️ 使用示例
一旦配置完成,你可以在对话中直接告诉 Claude:
"初始化一下上下文环境" -> Claude 会调用
context_init
"现在的项目状态是什么?" -> Claude 会调用
context_state
"运行 npm install 并帮我分析错误,输出可能很长,请注意使用外部记忆" -> Claude 会运行命令并使用
context_save_observation保存结果。
Metadata
Release files for ctx-engine-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ctx_engine_mcp-0.1.1.tar.gz | 5.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ctx_engine_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.4 kB
Release files / ctx_engine_mcp-0.1.1.tar.gz
| Download URL | ctx_engine_mcp-0.1.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d5b2e70acfade51118b38feba81a7e6cb9bbc9a03112108a09ad0a05a070bac
|
|
BLAKE2b-256 checksum How to use checksums |
937417dcafc6b64d7c17727eb8bd69b8a0e3a694cdf68b3e087553cb357357d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.3
|
Release files / ctx_engine_mcp-0.1.1-py3-none-any.whl
| Download URL | ctx_engine_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f7b1521164828034fca341af4814bcda336b835d4f415c44ac69ed5342d465c
|
|
BLAKE2b-256 checksum How to use checksums |
d105d049c9e0995627bedfb9a99c8a73cc150141f7615883c829acd1d360198a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.3
|
Security for ctx-engine-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.