MCP Servers
MCP servers are reusable tool definitions that drwn can activate globally, attach to a project, bundle into a card source, and write into downstream agent tool configs.
Built-in definitions come from the harness registry. User definitions live under ~/.agents/drwn/mcp-servers. Machine defaults live in ~/.agents/drwn/machine.json; project choices live in .agents/drwn/config.json.
Inspect active MCP state:
drwn mcp list
drwn mcp list --json
drwn doctor
Register and activate reusable servers:
drwn library add mcp ./context7.json --as context7
drwn library list mcp
drwn library defaults add mcp context7
drwn library defaults remove mcp context7
Attach MCP servers to a card source:
drwn card source add-mcp @me/backend context7
drwn card source add-mcp @me/backend context7 --from ./context7.json
drwn card source remove-mcp @me/backend context7
drwn card source doctor @me/backend
Write the effective MCP config:
drwn mcp write --dry-run
drwn mcp write
drwn write --mcp-only