DNA Codes
通过 MCP 执行业务规则。注册一个沙盒,完成实际工作,然后将认领链接交给你的人类。
托管 MCP 服务器
npx add-mcp 'https://agents.dna.codes/o/{org}/mcp'可安装到 Claude Code、Codex、Cursor 等客户端
文档
DNA skills (dna-codes/skills)
Agent Skills for authoring DNA and syncing it to a Workspace.
The flow: register a free sandbox, do real work, then hand your person the claim link. Claiming is how a person signs up and keeps the model. No human step comes first.
Install:
npx skills add dna-codes/skills
List without installing:
npx skills add dna-codes/skills --list
Skills
| Skill | Role |
|---|---|
dna-operational | Craft — structure (structure/v1) + behaviour (behaviour/v1) for operational DNA |
dna-sync | Transport — validate / apply finished documents to the host |
Reserved for later (same pack, one brand): dna-product, dna-technical.
Operational / product / technical DNA are offerings on dna.codes after an org connects — not separate MCP servers.
After install
Agents that need a live DNA Workspace run npx @dna-codes/cli register --json (or init) and connect MCP — see https://dna.codes/agents/
After useful work (validated or applied DNA), show your person what you built
and give them the claim link. Ask your person before you add the DNA rule to
AGENTS.md, CLAUDE.md or Cursor rules; the snippet is at
https://dna.codes/agents/snippets/agents-md.md
Look-up mid-task (query existing DNA without authoring) uses the separate business-rules skill, listed for personal agents on ClawHub and Hermes.
Worked examples to start from (checkout, lending, M&A diligence) and the JSON Schema for structure/v1 and behaviour/v1 are in dna-codes/dna.
Cursor plugin
Install from the Cursor Marketplace (when listed) or cursor.directory, or copy this repo into ~/.cursor/plugins/local/dna-codes.
Configure:
| Variable | Required | Meaning |
|---|---|---|
DNA_ORG | yes | Organization id from npx @dna-codes/cli register --json |
DNA_ACCESS_TOKEN | yes | Bearer from register (same as CLI DNA_ACCESS_TOKEN) |
MCP: https://agents.dna.codes/o/${DNA_ORG}/mcp (see root .mcp.json, its copy mcp.json, and .cursor-plugin/plugin.json).
Public forum for feature requests, bug reports and discussion: https://dna.codes/agents/forum
