
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
TypeScript SDK for configuring Cordon, the security gateway for MCP tool calls.
This package exports defineConfig and the config type surface. You only need it if you're writing a cordon.config.ts file.
npm install cordon-sdk
cordon init (from the cordon-cli package) installs this automatically into your project.
import { defineConfig } from 'cordon-sdk';
export default defineConfig({
servers: [
{
name: 'database',
transport: 'stdio',
command: 'npx',
args: ['-y', '@modelcontextprotocol/server-postgres', process.env.POSTGRES_URL!],
policy: 'read-only',
},
{
name: 'github',
transport: 'stdio',
command: 'npx',
args: ['-y', '@modelcontextprotocol/server-github'],
policy: 'approve-writes',
tools: {
delete_repository: 'block',
create_pull_request: 'approve',
},
},
],
audit: {
enabled: true,
output: 'file', // 'stdout' | 'file' | 'hosted'
},
approvals: {
channel: 'terminal', // 'terminal' | 'slack'
timeoutMs: 60_000,
},
rateLimit: {
perServerPerMinute: 60,
},
});
| Policy | Behavior |
|---|---|
allow | Pass through immediately |
block | Reject with an error |
approve | Pause the agent, prompt for human approval |
approve-writes | Reads pass through, writes require approval |
read-only | Writes are blocked, reads pass through |
log-only | Pass through, flagged in audit log |
hidden | Filtered from tools/list — the model never sees it |
Policies can be set at the server level or per-tool. Per-tool overrides the server default.
Opt into a strict list of tools your upstream server is allowed to advertise. New tools added in future upstream releases are blocked until you approve them explicitly:
{
name: 'postgres',
transport: 'stdio',
command: 'npx',
args: ['-y', '@modelcontextprotocol/server-postgres', process.env.POSTGRES_URL!],
policy: 'read-only',
knownTools: ['query', 'list_tables', 'describe_table'],
onUnknownTool: 'block', // default when knownTools is set
}
knownTools: string[] — tools you've vouched for. Tools keyed in tools (with explicit policy overrides) are also treated as known.onUnknownTool: 'block' | 'allow' — default 'block'. With 'allow', unknown tools still pass through but emit a stderr warning.knownTools undefined to disable the check (backwards compatible).Complete reference including all config fields, approval channels, and audit outputs: https://github.com/marras0914/cordon
MIT
FAQs
TypeScript config SDK for Cordon — the security gateway for AI agents
The npm package cordon-sdk receives a total of 2 weekly downloads. As such, cordon-sdk popularity was classified as not popular.
We found that cordon-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.