Sutra

io.github.4rgon4ut由 GitHub 账号 4rgon4ut 发布v0.1.1更新于 Oct 24, 2026

Context Engineering Engine. Provides cognitive tools, memory structures, and agent patterns.

已验证STDIO仅桌面知识与记忆AI 与机器学习

概览

AI 生成的概览

Sutra 是一个本地 MCP 服务器,为助手提供用于上下文工程的推理技巧、记忆结构和多智能体模式库。

可以做什么
将请求路由到不同推理策略,如面向即时任务的 YOLO 模式和面向系统设计的 Constructor 模式,并由 Architect 结合思维模型、记忆单元和 debate council、research synthesis 等器官生成自定义智能体蓝图。通过手动发现工具浏览上下文工程技巧目录。使用理解问题、验证逻辑、回溯和符号抽象等思维模型。使用键值状态、短期窗口记忆和长期情景记忆等记忆单元。
适用场景
适合希望助手组织自身推理、在会话中保留状态,或设计自定义智能体工作流,而不是调用外部服务的场景。
运行要求
作为本地进程在用户机器上运行(仅桌面端)。需要 Python 3.10+ 和 PyPI 包 context-engineering-mcp,可用 uv 或 pip 安装;uv 可选但推荐。未声明账号、API 密钥或环境变量。
安装前请注意
项目处于早期阶段(功能标注为 v0.1.0),清单中未列出具体工具,使用前应确认其实际暴露的能力。它会在本地保存记忆结构,请留意数据存放位置。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Sutra,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Sutra

mcp-name: io.github.4rgon4ut/sutra

The MCP Context Engineering Engine

Sutra is a Model Context Protocol (MCP) server that transforms how LLMs handle reasoning, memory, and orchestration. It provides a "Standard Library" of cognitive tools (Thinking Models), memory structures (Cells), and multi-agent patterns (Organs).

Installation

Using uv (Recommended)

bash
uv tool install context-engineering-mcp

Using pip

bash
pip install context-engineering-mcp

Configuration

Select your agent below and copy-paste the config.

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "sutra": {      "command": "uv",      "args": ["tool", "run", "context-engineering-mcp"]    }  }}
Claude Code

Run this in your terminal:

bash
claude mcp add sutra uv tool run context-engineering-mcp
Aider

Run aider with the mcp flag:

bash
aider --mcp "uv tool run context-engineering-mcp"

Or add to .aider.conf.yml:

yaml
mcp: ["uv tool run context-engineering-mcp"]
Gemini CLI

Add to ~/.gemini/settings.json:

json
{  "mcpServers": {    "sutra": {      "command": "uv",      "args": ["tool", "run", "context-engineering-mcp"]    }  }}
Cursor / Windsurf

In MCP settings, add a new server:

  • Name: Sutra
  • Type: command
  • Command: uv tool run context-engineering-mcp
Codex

Add to your config (TOML):

toml
[mcp_servers.sutra]command = "uv"args = ["tool", "run", "context-engineering-mcp"]

Core Features (v0.1.0)

1. The Gateway (Router)

Sutra automatically analyzes your request to decide the best strategy:

  • YOLO Mode: For immediate tasks ("Fix this bug"), it routes to specific cognitive tools.
  • Constructor Mode: For system design ("Build a bot"), it routes to the Architect.

2. The Architect

Generates blueprints for custom agents, combining:

  • Thinking Models: understand_question, verify_logic, backtracking, symbolic_abstract.
  • Memory Cells: key_value (State), windowed (Short-term), episodic (Long-term).
  • Organs: debate_council (Multi-perspective), research_synthesis (Deep Dive).

3. The Librarian

A manual discovery tool (get_technique_guide) that lets you or the agent browse the full catalog of Context Engineering techniques.

Development

Requirements: Python 3.10+, uv (optional but recommended).

  1. Clone the repo:
    bash
    git clone https://github.com/4rgon4ut/sutra.gitcd sutra
  2. Install dependencies:
    bash
    uv sync --all-extras# ORpip install -e ".[dev]"
  3. Run tests:
    bash
    pytest

License

MIT

来源:README.md,提交 c0a1d4c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分