Menu
MCP Guard
Protect MCP-based agents by enforcing Nodra inside the trusted MCP server or agent runtime before consequential tool execution.
Implementation checklist
Complete these steps in the customer-owned server or agent runtime.
- Keep Nodra credentials in the MCP server or protected runtime.
- Map the calling agent to its registered Nodra identity.
- Authorize the tool action before invoking the MCP tool.
- Deny or require human approval when authority is insufficient.
- Preserve evidence linking the agent, action and tool boundary.
Security boundary
Nodra should wrap consequential tool execution, not just inspect prompts.
The public guide explains the integration contract without exposing Nodra's private control-plane implementation.
Reference implementation
Use this as the server-side starting point.
npm install nodra-agent-sdk
import { Nodra } from "nodra-agent-sdk";
const nodra = new Nodra({
baseUrl: process.env.NODRA_BASE_URL!,
credential: process.env.NODRA_CREDENTIAL!,
});
const agent = nodra.protect({ id: "finance-agent" });
async function runProtectedTool(input) {
const decision = await agent.authorizeAndWait(
{
resourceId: "mcp:payments",
action: "payments.submit",
context: { environment: "production" },
},
{ timeoutMs: 5 * 60_000 },
);
if (decision.decision !== "allow") {
throw new Error("Nodra did not allow this tool call.");
}
const result = await callMcpTool(input);
await agent.result({
resourceId: "mcp:payments",
action: "payments.submit",
decision: "allow",
executed: true,
outcome: "completed",
});
return result;
}Ready to validate a real workflow?
Use the Demo Lab for a self-guided sandbox, or review the 7-day technical validation for a real design-partner workflow.