Keystone

pro.keystone-core由 keystone-core.pro 发布官方发布者v1.0.0更新于 Nov 11, 2026

C4 architecture model of your system, built from code by your AI and read back as focused context.

已验证Streamable HTTP可网页运行知识与记忆开发者工具

概览

AI 生成的概览

Keystone 维护软件的 C4 架构模型,由 AI 助手从代码中构建,并作为聚焦上下文读回给助手。

可以做什么
  • 搜索、读取与遍历架构模型:按名称查找元素和数据表,获取整体模型或单个模块,查看依赖关系与调用路径
  • 分析某个变更的影响范围,并只获取自某个模型版本以来的变化
  • 查找架构反模式,并回报针对代码的校验结果与反模式发现
  • 以分支形式提交模型变更供人工评审,并运行提示词来构建架构、描述容器或数据库、追踪场景、记录决策以及与提交同步
  • 支持导出为 PNG、SVG、Mermaid Markdown、Structurizr DSL 和 Obsidian 笔记,并可导入 Structurizr 工作区
适用场景
当助手在架构已记录于 Keystone 的代码库上工作、需要针对性上下文而非整个模型时适用;也适合希望架构图随代码变更保持同步并以分支方式评审的场景。
运行要求
远程 Streamable HTTP 端点,需在 Authorization 请求头中提供 bearer 令牌,令牌在项目的 AI assistant → Connection 中创建。仅支持本地 stdio 服务器的客户端需借助 mcp-remote 桥接并安装 Node.js。需要 Keystone 账号与项目;托管服务提供有限额度的免费方案。
安装前请注意
令牌按其所有者在项目中的当前角色授权,查看者角色的令牌只能读取。模型变更以提案形式提交并生成分支,合并前需人工评审。README 称源代码不会发送给 Keystone,但模型及由代码推导的信息会存放在托管服务上;企业可选择自托管。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Keystone,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/pro.keystone-core%2Fkeystone/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "keystone": {
      "type": "http",
      "url": "https://keystone-core.pro/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

Keystone

Understand your system before you change it.

Keystone keeps a C4 model of your software: systems, services, components with their public API, databases down to tables and columns, scenarios and architecture decisions. Your AI coding assistant builds the model from the code in your environment, keeps it in step with the code and reads it back over MCP as context for its next task. Every change arrives as a branch that your team reviews.

This repository holds no source code: it is the public home of Keystone for its MCP server, docs links and feedback.

[The Keystone editor: a service with its components and labelled relationships]

What it does

  • Builds the architecture from code. Your AI reads the repository where it already works and proposes the model: context, containers, components, ER diagrams from migrations. Keystone never receives your source code.
  • Gives the agent the part it needs. The agent asks for one module, what depends on an element, the path between two elements or only what changed since last time, instead of the whole model.
  • Keeps the model current. After code changes the AI checks the diagram against the code and sends a proposal, by hand or from CI: the AI assistant generates the job for GitHub Actions or GitLab CI.
  • You stay the reviewer. Every AI proposal arrives as a branch: open it, correct it, merge it or reject it. Merges are three-way, field by field.
  • More than boxes. Scenarios, architecture decisions (ADR) bound to elements, impact analysis, antipattern review with remediation plans, comments, live co-editing, roles and access, system design interview practice.
  • No lock-in. Export to PNG, SVG, Markdown with Mermaid, Structurizr DSL and Obsidian notes; import a Structurizr workspace (JSON or DSL).

On a question about one module, the module slice took 68–77% fewer input tokens than sending the whole model, with the same facts in the answer. This compares a slice with the whole model, not a whole coding task (method and limits).

Claude Code plugin

Install Keystone as a plugin; Claude Code asks for your token once and keeps it in secure storage:

/plugin install keystone-architecture --marketplace runafterasun/keystone-core

Connect your AI

  1. Sign in at https://keystone-core.pro and open a project → AI assistant → Connection → Create token.
  2. Add the MCP server in the folder with the code of that project, or install the plugin above.

Claude Code

bash
claude mcp add --scope local --transport http keystone https://keystone-core.pro/mcp --header "Authorization: Bearer ks_…"

Cursor (.cursor/mcp.json)

json
{ "mcpServers": { "keystone": { "url": "https://keystone-core.pro/mcp", "headers": { "Authorization": "Bearer ks_…" } } } }

VS Code with GitHub Copilot (.vscode/mcp.json)

json
{ "servers": { "keystone": { "type": "http", "url": "https://keystone-core.pro/mcp", "headers": { "Authorization": "Bearer ks_…" } } } }

Gemini CLI (.gemini/settings.json)

json
{ "mcpServers": { "keystone": { "httpUrl": "https://keystone-core.pro/mcp", "headers": { "Authorization": "Bearer ks_…" } } } }

Windsurf (~/.codeium/windsurf/mcp_config.json)

json
{ "mcpServers": { "keystone": { "serverUrl": "https://keystone-core.pro/mcp", "headers": { "Authorization": "Bearer ks_…" } } } }

Clients with local (stdio) servers only, through the mcp-remote bridge (needs Node.js):

json
{ "mcpServers": { "keystone": { "command": "npx", "args": ["-y", "mcp-remote", "https://keystone-core.pro/mcp", "--header", "Authorization:${AUTH_HEADER}"], "env": { "AUTH_HEADER": "Bearer ks_…" } } } }

A token follows the current role of its owner in the project: a viewer's token only reads. More in the guide.

Prompts

Ready commands the server offers to your client, for example in Claude Code /mcp__keystone__build_architecture <project link>:

PromptWhat it does
build_architectureContext and containers from the code
build_architecture__fullThe whole architecture: also components and tables
describe_containerBreak a container into components with their public API
describe_databaseDraw the ER diagram of a database from its migrations
describe_scenarioTrace a scenario through the architecture
record_decision, import_decisionsRecord an architecture decision, import existing ADRs
validate_architectureCheck the diagram against the code
syncBring the diagram up to date with the commits since the last sync
analyze_impactWhat a change of an element affects, with paths and reasons
review_antipatterns, plan_remediationFind architecture antipatterns, plan their fixes in stages
system_design_interviewPractise a system design interview on a real diagram

Tools

Reading tools return the part of the model a task needs:

ToolWhat it returns
search_architectureElements and tables by name, role or module, with IDs and ready reads for the hits
get_architectureThe whole model as a short map, one module or chosen elements in full
traverse_architectureWhat depends on an element and what it depends on, to a chosen depth
analyze_impactWhat a change of an element or table affects, with reasons and paths
find_architecture_pathThe chain of calls and data access between two elements
get_architecture_deltaOnly what changed since a version of the model
find_antipattern_candidatesShared databases, cycles of synchronous calls, overloaded services

Changes go through propose_changes only: a proposal becomes a branch that a person reviews and merges. Checks against the code and antipattern findings are reported with report_validation and report_antipatterns.

Plans and hosting

  • keystone-core.pro has a free plan with limits.
  • Self-hosted inside your own network for companies: contact us.

Feedback

Questions, ideas and bug reports are welcome as issues.

来源:README.md,提交 5a406f2

工具

0
该服务器需要 API 密钥等凭据,因此 SourceWeft 无法在没有凭据的情况下读取其工具,也未收录。

版本历史

1
  1. v1.0.0最新Nov 11, 2026

评分

已满足适用检查项的 75%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

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

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

    请在仓库或注册中心条目中声明许可证。