startGatewayServer({
// ...
entitlements: {
default_plan: "free",
plans: {
free: { calls_per_day: 1000 },
pro: { calls_per_day: 100000 },
},
tenants: {
"acme-corp": {
plan: "pro",
allowlist: [],
denylist: ["mcp://payments/refund@2.0"],
per_tool: {
"mcp://fetch/fetch.get@1.0": { rate_per_sec: 10, calls_per_day: 50000 },
},
users: {
"admin@acme.com": { allowlist: ["*"] },
"readonly@acme.com": { allowlist: ["mcp://fetch/*@1.*"] },
},
user_ids: {
"auth0|usr_123": { allowlist: ["mcp://ehr/patient.read@r4"] },
},
roles: {
"security-analyst": { allowlist: ["mcp://posture/*@1.*"] },
"contractor": { denylist: ["mcp://payments/*@2.*"] },
},
agents: {
"sec0-orchestrator-prod": { allowlist: ["mcp://payments/charge@2.*"] },
},
agent_nodes: {
"workflow-planner": { allowlist: ["mcp://planner/*@1.*"] },
},
},
},
},
});