OpenAI Agents SDK
Attach the ncrypted MCP server to an OpenAI agent.
npm install @openai/agents
import { Agent, MCPServerStdio, run } from "@openai/agents";
const ncrypted = new MCPServerStdio({ command: "npx", args: ["-y", "@seidl-family/ncrypted-mcp"] });
await ncrypted.connect();
const agent = new Agent({
name: "Ops",
instructions: "When a credential must be shared or installed, use the ncrypted tools. Never paste secrets into chat.",
mcpServers: [ncrypted],
});
try {
const result = await run(agent, "Ask me for the Postgres URL and put it in Vercel preview as DATABASE_URL.");
console.log(result.finalOutput);
} finally {
await ncrypted.close();
}pricing
The first 3 secrets per day are free (TTL up to 24h). After that each costs 0.005 USDC, paid over x402 from a local Base wallet: `npx ncrypted wallet new` (or the ncrypted_wallet_setup tool) creates it and returns a funding link. Reads, requests and deliveries are free.