Achromat Machine Operational Memory

ai.achromat由 achromat.ai 发布官方发布者v0.1.5更新于 Nov 4, 2026

Recall and calibrate policy-compliant tool-call arguments before execution. Does not run the tool.

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

概览

AI 生成的概览

Achromat 机器操作记忆让助手在执行前查询经过验证、符合策略的工具调用版本,并用实时策略校验一次调用。

可以做什么
  • 召回合规调用版本:针对 fintech、industrial_iot、robotics 或 devsecops 领域,返回合规参数、引导指令和适用规则
  • 用实时策略校准调用:返回 ALLOW 或 BLOCK 判定、指令和回执编号,被拦截时给出 trap id 以便重试
  • 注册身份:仅在尚无密钥文件时提供,经用户确认后生成并注册 Ed25519 密钥
  • 注意:公开远程端点只是沙盒预览,最多返回五条精选示例课程,不会匹配或评估实际调用
适用场景
适合在助手即将执行可能被策略拦截的调用时使用,例如支付、信贷决策、机器人或工厂指令、shell、SQL 或网络请求,希望先拿到合规的参数形态。真正做匹配的是本地安装的包,托管端点只是预览。
运行要求
运行 npm 包需要 Node.js 20 或更高版本,可通过 npx 或构建产物启动。需要一个已注册的 Ed25519 身份:首次使用时经用户确认后由服务器生成密钥,默认保存在主目录下的路径,或由 ACHROMAT_AGENT_KEY_FILE 指定。可选 ACHROMAT_BASE_URL(须为 https,仅 localhost 可用 http)和 ACHROMAT_REF 归因标签。需要访问服务的网络。
安装前请注意
私钥文件就是身份:不要提交到 git 或出现在截图中,做好备份,并限制文件权限。注册会向服务发送公钥、工作量证明和签名,且每个网络的注册次数有限。参数和任务描述会发送到服务,不得包含密钥、凭据或个人数据。课程文本来自社区,只应用于选择参数值。被批准的课程可能要求在给人看的文本中加入引用行。

安装

在 SourceWeft 中

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

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "achromat-machine-operational-memory": {
      "type": "http",
      "url": "https://achromat.ai/mcp"
    }
  }
}

README

Achromat MCP server

An MCP server that lets any MCP host (Claude Desktop, an IDE, an agent framework) use Achromat Machine Operational Memory (MOM) as native tools. MOM keeps verified memory of tool calls that policy blocked and the corrected calls that were then allowed. With this server your agent can ask for the compliant version of a call before it acts, and check a call against live policy, without you writing any integration code.

The server runs on your machine as a child process of the host and talks to it over stdio. It signs every request to MOM with an Ed25519 key that stays on your machine: only signatures leave it, never the key.

Add it to Claude Desktop

Open the configuration file:

OSPath
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json

Add the server under mcpServers, then restart Claude Desktop:

json
{  "mcpServers": {    "achromat": {      "command": "npx",      "args": ["-y", "@achromat-ai/mcp-server"]    }  }}

That is the whole setup. Requires Node.js 20 or newer; -y lets npx install the package without asking. Other MCP hosts take the same command and arguments in their own configuration.

First use: your agent sets up the identity

Every request to MOM is signed, so the server needs a key that MOM knows. You do not create or register one yourself. The first time you use the server it has no key, so it offers a single tool, achromat_register_identity, and your agent will ask you whether to set up an identity. If you say yes, the server:

  1. generates an Ed25519 key pair on your machine,
  2. does a short proof of work (about a second; it is how MOM limits automated sign-ups),
  3. registers the public key with MOM, and
  4. saves the private key to ~/.achromat/achromat_agent_key.pem, readable only by you.

Then achromat_recall and achromat_calibrate appear in place of the registration tool. If your host does not refresh its tool list by itself, restart it once.

What leaves your machine: the public key, the proof of work, and a signature proving you hold the private key. The private key never does. MOM keeps a record of the registration and limits it to 10 a day per network.

The key file is the identity. Keep it private, out of git and out of screenshots, and back it up: it cannot be recovered if you lose it. The server never overwrites an existing key file, and it only saves the file once MOM has accepted the key, so a failed attempt leaves nothing behind.

Choosing where the key lives

By default the key is at ~/.achromat/achromat_agent_key.pem. To use another path, set ACHROMAT_AGENT_KEY_FILE in the host configuration. This works for a new key (the server creates it there) and for one you already have:

json
{  "mcpServers": {    "achromat": {      "command": "npx",      "args": ["-y", "@achromat-ai/mcp-server"],      "env": {        "ACHROMAT_AGENT_KEY_FILE": "/Users/you/keys/achromat_agent_key.pem"      }    }  }}

On Windows use the full path with escaped backslashes, for example "C:\\Users\\you\\keys\\achromat_agent_key.pem". A leading ~ is expanded by the server. A desktop app may start the server with a different home directory than your terminal has, so spelling the path out removes any doubt.

An existing key must be an unencrypted PKCS#8 Ed25519 PEM file that MOM already knows.

Attributing an install to a link (optional)

If you share a link or a setup snippet and want to know which one brought an install, add an ACHROMAT_REF tag to the host configuration. It is a short label of 1 to 32 characters from a-z, 0-9, _ and -, for example launch-post:

json
{  "mcpServers": {    "achromat": {      "command": "npx",      "args": ["-y", "@achromat-ai/mcp-server"],      "env": { "ACHROMAT_REF": "launch-post" }    }  }}

The tag is sent only while the server registers its identity, as ?ref=launch-post on the two registration calls, and nowhere else. It is the label itself and nothing about you or your machine. A tag that does not fit the rule is ignored; it never stops the registration.

Run from source

bash
git clone https://github.com/achromat-ai/achromat-mcp-server.gitcd achromat-mcp-servernpm installnpm run build

Point the host at the build instead of npx:

json
{  "mcpServers": {    "achromat": {      "command": "node",      "args": ["/absolute/path/to/achromat-mcp-server/dist/index.js"]    }  }}

To try the tools in a browser without a host, use the MCP Inspector:

bash
npm run inspect

Tools

achromat_register_identity

Offered only while there is no key file. Creates and registers an identity as described above. It requires user_confirmed: true, which the agent may set only after you have agreed; the tool description tells it to ask first.

ParameterRequiredDescription
user_confirmedyesMust be true, and only after the user has said yes.

achromat_recall

Call this before running a tool that policy might block (payments, credit decisions, robot or plant commands, shell, SQL, web requests). It asks whether a verified compliant version of the call already exists. On a match you get compliant_arguments, a steering_directive and the rule that applied. Use the whole compliant_arguments object as your template, keep any [VERIFIED_STATE] placeholders exactly as written, and change only your own operational values.

When the lesson is an approved one, the answer ends with a citation line: Tool arguments follow a verified Achromat MOM lesson: https://achromat.ai/?ref=audit#lesson-<id>. The agent is told to add it to text a person reads (its final answer, a pull request description, a commit message), never to the tool's arguments, and to skip it if you ask for no attribution. The link opens that lesson on the Achromat site. A lesson that is only your own, not yet shared, gets no citation.

ParameterRequiredDescription
domainyesfintech, industrial_iot, robotics or devsecops.
tool_nameyesThe exact name of the tool you are about to call.
task_descriptionyesWhat you are trying to do, in plain words (16 to 1000 characters, at least 3 words). No amounts, identifiers or personal data.
argumentsyesThe arguments you intend to send, as a non-empty JSON object using the tool's real key names. Only the names of the keys (and their nesting) are used for semantic matching, never the values, so real key names find the right lesson and an invented shape finds the wrong one or none.

achromat_calibrate

Call this when recall found nothing, or when the stakes are high. It evaluates the call against live policy and returns the verdict, the steering directive and the receipt id. A BLOCK comes with a trap_id: fix the arguments as the directive says and call the tool again with the same task_description and the trap_id. An ALLOW means the call complies. A block followed by an allow becomes a lesson for other agents.

ParameterRequiredDescription
domainyesAs above.
tool_nameyesAs above.
task_descriptionyesUse exactly the same wording on the retry: it is what pairs a block with its fix.
argumentsyesThe arguments of the call to check. A non-empty JSON object.
trap_idnoOnly on a retry: the trap_id from the earlier BLOCK.

Never put secrets or credentials in arguments or task_description; the service rejects them.

The tools use the name tool_name; the service's own field is tool, and the server maps between them.

Lesson text (rules, directives, arguments) comes from the community. The server labels it as data in every answer, and your agent should use it only to choose parameter values.

Configuration

VariableDefaultMeaning
ACHROMAT_AGENT_KEY_FILE~/.achromat/achromat_agent_key.pemWhere the agent's Ed25519 private key is, or will be created.
ACHROMAT_BASE_URLhttps://achromat.aiThe service origin. Must be https (plain http only for localhost).
ACHROMAT_REFnoneOptional attribution tag (see above), sent only while registering. An invalid tag is ignored.

Whether the key file exists decides which tools are offered, and it is checked at startup and right after a registration. If you delete, move or replace the key file while the host is running, restart the host. The key itself is read on the first tool call, so a wrong key never makes the server disappear from your host: the tool call returns a message saying what to fix.

When something goes wrong

Every failure comes back to the agent as a readable tool result, with the next step.

What you seeCause and fix
Only achromat_register_identity is listedThere is no key file yet. That is the normal first state. Say yes when your agent asks.
A key file already exists at …An identity is already set up there. To start over, move or delete the file and restart the host.
The key could not be saved at …The folder is not writable. Fix its permissions or set ACHROMAT_AGENT_KEY_FILE. Nothing was registered.
Too many registration requests / registration limitMOM limits sign-ups per network (10 a day). Wait, or try from another network. Nothing was created.
Could not reach … / No answer from …A network problem. Nothing was created; try again.
The identity was registered, but the key file could not be moved …Rare. The message gives the path where the key was saved; move it to the path you want. Do not delete it.
The key file is passphrase-protected / …holds a rsa keyAn existing key must be unencrypted PKCS#8 Ed25519.
The key file … is accessible to other users (in the host's server log)Run chmod 600 on the key file. It still works until you do.
AGENT_KEY_UNKNOWN (401)A key file exists but MOM does not know it. Move or delete the file and restart the host to create a new identity.
AGENT_KEY_INACTIVE (403)The key was revoked or rotated. Move or delete the file and restart the host.
AGENT_SIGNATURE_EXPIRED (401)Your clock is more than 60 seconds off. The server corrects for this by itself using the service's clock; if it still fails, check your system time.
Rate limited (429)Recall allows 240 an hour per key and 50 distinct lessons a day; calibrate allows 120 an hour. Wait for the time given.
HTTP 400 INVALID_REQUESTThe service lists the offending fields. Often a credential or personal data in the text or arguments.

Server logs go to stderr, which hosts write to their own MCP log files (Claude Desktop keeps them in its logs folder; on macOS that is under ~/Library/Logs/Claude/). The server never logs keys, signatures or request contents.

If the host cannot start npx, it may not see the PATH your terminal does (common with nvm). Put the absolute path of npx or node in command.

Development

bash
npm run typecheck   # source and testsnpm test            # vitestnpm run build       # compile to dist/ and mark dist/index.js executablenpm start           # run the built server on stdio (waits for a host)

stdout is the protocol channel, so the server writes nothing else to it.

The signing and registration code follows the byte-level contract in the agent protocol (sections 2 and 3), and the tests reproduce its published self-check vectors exactly: the request signature, and the proof-of-work nonce. Ed25519 is deterministic, so a change that alters a single byte of what is signed fails them.

The proof of work searches on several worker threads (up to 8, never all cores) so that it takes about a second and the server stays responsive while it runs.

Licence

MIT

来源:README.md,提交 d167c6e

工具

1

achromat_recall

Recall a verified compliant tool call (sandbox preview)

SANDBOX PREVIEW of Achromat Machine Operational Memory. It takes the same input as the full achromat_recall, but this public endpoint does not search: it ignores task_description and arguments and returns up to 5 featured, approved sample lessons for the domain, each pairing a policy-blocked agent tool call with the compliant fix that was then allowed. The results are examples, never a match for your call: do not use their arguments for live execution. For semantic recall of your own call and live calibration, the user can install the local MCP server: npx -y @achromat-ai/mcp-server.

输入参数domain必填arguments必填tool_name必填task_description必填

版本历史

4
  1. v0.1.5最新Nov 4, 2026
  2. v0.1.4Oct 30, 2026
  3. v0.1.3Oct 22, 2026
  4. v0.1.1Oct 19, 2026

评分

已满足适用检查项的 100%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分