Claude Code
Run once in a terminal:
claude mcp add --transport http agentdirective https://agentdirective.org/mcpFor agents and tools
Connect your coding agent through MCP, the protocol it uses to call tools. It can find relevant safeguards and ask you about open decisions. No AgentDirective account or API key is required.
The round trip
Connect, analyze, create instructions, and report progress. You make the decisions.
No install, no account, no key. Your agent calls the tools over HTTP and receives compiled files back as text.
https://agentdirective.org/mcp
It gets back the detected characteristics, the applicable Control Packs, and the open decisions — as questions to ask you, never as answers.
A decision marked confirmed must carry a real value, and the agent must obtain your confirmation. Open decisions produce an explicit draft; zero matched packs produce no directive.
The agent records progress, test references, and limitations for each requirement. Its report still needs code review and testing.
Model Context Protocol
The endpoint speaks JSON-RPC 2.0 over HTTP, so any MCP client can use it without running code locally.
https://agentdirective.org/mcpRun once in a terminal:
claude mcp add --transport http agentdirective https://agentdirective.org/mcpRun once in a terminal:
codex mcp add agentdirective --url https://agentdirective.org/mcpOpen Cursor's install prompt, or add this to .cursor/mcp.json:
{"mcpServers": {"agentdirective": {"url": "https://agentdirective.org/mcp"}}}Add to CursorOpen VS Code's install prompt, or add this to .vscode/mcp.json:
{"servers": {"agentdirective": {"type": "http", "url": "https://agentdirective.org/mcp"}}}Add to VS CodeEach client asks you to confirm before it adds a server. Then ask your agent to “check this feature with AgentDirective before you build it.”
Most clients take a remote MCP server as a URL in their configuration. A GET on that address describes the endpoint and lists its tools.
agentdirective_analyze Traits found, safeguards that apply, and the questions still open.
agentdirective_compile The instruction bundle. Open decisions stay open; pass previous_directive to compare.
agentdirective_review Compares the directive with what your agent reported, using metadata only.
agentdirective_existing_project_plan A read-only checklist your agent completes in an existing project.
agentdirective_existing_project_audit Gaps, open decisions, and an improvement prompt from that checklist.
agentdirective_packs Every Control Pack with its rules, questions, tests and sources.
An agent can analyze project traits and compile directives, but it cannot make policy decisions on its own. Spending limits, approval workflows, retention policies, and permissions must be confirmed by a human operator.
When generating directives, any requirement without an explicitly confirmed answer remains marked as open, prompting the agent to ask you before proceeding.
HTTP API
Read-only methodology routes plus stateless compile and review. Cross-origin requests are allowed, so a browser tool can call these too.
| Route | Method | Returns |
|---|---|---|
/api/methodology | GET | Methodology, pack-library, and schema versions. |
/api/packs | GET | Every Control Pack with applicability logic, questions, requirements, and external control mappings. |
/api/oscal/catalog | GET | The same Control Pack library as a schema-validated NIST OSCAL 1.2.2 catalog, for tooling that already reads OSCAL. |
/api/failure-patterns | GET | Real-world-grounded failure patterns, each labeled by evidence kind and cited to a public source. |
/api/vocabulary | GET | Recognized platform names and the review areas they may indicate. |
/api/benchmark | GET | The detection-and-pack-agreement dataset and its latest results snapshot. |
/api/transparency | GET | The published metrics snapshot, with definitions and privacy thresholds. |
/api/changelog | GET | Dated record of product changes. |
/api/compile | POST | Compiles a directive bundle from a description, characteristics, and decisions. |
/api/existing-project/plan | POST | Creates a checklist, report template, and prompt to inspect an existing project without changing it. |
/api/existing-project/audit | POST | Checks the agent’s report, with code and private data removed, and returns findings, open decisions, and an improvement prompt. |
/api/outcomes | POST | Accepts one explicitly consented, allowlisted design-change category and stores only an aggregate daily count. |
/api/review | POST | Checks whether the directive and reported status are consistent; does not inspect code. |
/api/health | GET | Service and runtime status. |
Before you rely on it