For agents and tools

Let your agent ask before it builds.

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

How an agent uses AgentDirective

Connect, analyze, create instructions, and report progress. You make the decisions.

  1. 01 / Connect

    Point your agent at the hosted endpoint.

    No install, no account, no key. Your agent calls the tools over HTTP and receives compiled files back as text.

    https://agentdirective.org/mcp

  2. 02 / Analyze

    The agent sends the build description.

    It gets back the detected characteristics, the applicable Control Packs, and the open decisions — as questions to ask you, never as answers.

    4 characteristics7 packs9 questions for you
  3. 03 / Compile

    Matched packs and recorded answers become a directive.

    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.

    Build rulesagent-directive.json · machine-readable requirementsReadable briefAGENTDIRECTIVE.md · instructions in plain language
  4. 04 / Report back

    The agent records what it reports building.

    The agent records progress, test references, and limitations for each requirement. Its report still needs code review and testing.

    implementedpartialunresolved

Model Context Protocol

One URL, no install

The endpoint speaks JSON-RPC 2.0 over HTTP, so any MCP client can use it without running code locally.

https://agentdirective.org/mcp

Add it to your coding agent

Claude Code

Run once in a terminal:

claude mcp add --transport http agentdirective https://agentdirective.org/mcp

Codex CLI

Run once in a terminal:

codex mcp add agentdirective --url https://agentdirective.org/mcp

Cursor

Open Cursor's install prompt, or add this to .cursor/mcp.json:

{"mcpServers": {"agentdirective": {"url": "https://agentdirective.org/mcp"}}}
Add to Cursor

VS Code

Open VS Code's install prompt, or add this to .vscode/mcp.json:

{"servers": {"agentdirective": {"type": "http", "url": "https://agentdirective.org/mcp"}}}
Add to VS Code

Each 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.

What does this affect?

agentdirective_analyze

Traits found, safeguards that apply, and the questions still open.

Build the hand-off

agentdirective_compile

The instruction bundle. Open decisions stay open; pass previous_directive to compare.

Check the report

agentdirective_review

Compares the directive with what your agent reported, using metadata only.

Check what is built

agentdirective_existing_project_plan

A read-only checklist your agent completes in an existing project.

Return the next steps

agentdirective_existing_project_audit

Gaps, open decisions, and an improvement prompt from that checklist.

Read the safeguards

agentdirective_packs

Every Control Pack with its rules, questions, tests and sources.

Decisions the agent must ask you to make

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

Or call it directly

Read-only methodology routes plus stateless compile and review. Cross-origin requests are allowed, so a browser tool can call these too.

RouteMethodReturns
/api/methodologyGETMethodology, pack-library, and schema versions.
/api/packsGETEvery Control Pack with applicability logic, questions, requirements, and external control mappings.
/api/oscal/catalogGETThe same Control Pack library as a schema-validated NIST OSCAL 1.2.2 catalog, for tooling that already reads OSCAL.
/api/failure-patternsGETReal-world-grounded failure patterns, each labeled by evidence kind and cited to a public source.
/api/vocabularyGETRecognized platform names and the review areas they may indicate.
/api/benchmarkGETThe detection-and-pack-agreement dataset and its latest results snapshot.
/api/transparencyGETThe published metrics snapshot, with definitions and privacy thresholds.
/api/changelogGETDated record of product changes.
/api/compilePOSTCompiles a directive bundle from a description, characteristics, and decisions.
/api/existing-project/planPOSTCreates a checklist, report template, and prompt to inspect an existing project without changing it.
/api/existing-project/auditPOSTChecks the agent’s report, with code and private data removed, and returns findings, open decisions, and an improvement prompt.
/api/outcomesPOSTAccepts one explicitly consented, allowlisted design-change category and stores only an aggregate daily count.
/api/reviewPOSTChecks whether the directive and reported status are consistent; does not inspect code.
/api/healthGETService and runtime status.
What is stored when you call these
Nothing you send is retained. Compile and review routes are stateless: descriptions, decisions, and submitted metadata are used to produce the response and then discarded. The service records only aggregate counters — never the contents. See /transparency for what is published, /existing for an existing project, and /review for a project that already has a directive.

Before you rely on it

Current limits