
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@getcordon/core
Advanced tools
Core proxy engine for Cordon for MCP — the security gateway for MCP tool calls
Core proxy engine for Cordon for MCP, the security gateway for MCP tool calls.
Most users won't install this directly — it's a dependency of @getcordon/cli. Install this package when you want to embed Cordon programmatically rather than run it via the CLI.
npm install @getcordon/core @getcordon/policy
import { CordonGateway } from '@getcordon/core';
import type { ResolvedConfig } from '@getcordon/policy';
const config: ResolvedConfig = {
servers: [
{
name: 'database',
transport: 'stdio',
command: 'npx',
args: ['-y', '@modelcontextprotocol/server-postgres', process.env.POSTGRES_URL!],
policy: 'read-only',
},
],
audit: { enabled: true, output: 'stdout' },
approvals: { channel: 'terminal' },
};
const gateway = new CordonGateway(config);
await gateway.start();
// ... on shutdown:
await gateway.stop();
knownTools catalogsevaluate(server, tool, args?) accepts optional call arguments for SQL-aware policies; includes tool-name write-detection heuristic for read-only and approve-writes; isHidden() query for the gateway's tools/list filter./policies/sql-classifier) — pure helper that parses a SQL string (PostgreSQL dialect) and classifies it as read / write / unknown. Fail-closed on parse error. Exportable for use outside the policy engine.Architecture overview, policy reference, approval flow, and audit format: https://github.com/marras0914/cordon
MIT
FAQs
Core proxy engine for Cordon for MCP — the security gateway for MCP tool calls
The npm package @getcordon/core receives a total of 54 weekly downloads. As such, @getcordon/core popularity was classified as not popular.
We found that @getcordon/core 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.

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.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.