
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@pleri/pylon
Advanced tools
Runtime SDK for MCP servers that enrol into Pylon — token verification, capability resolution, schema push, MCP middleware. The library half of the @pleri/pylon-cli admin tool.
Runtime SDK for MCP servers that enrol into Pylon — token verification, capability resolution, schema push, request-guard middleware.
This is the library half of the Pylon product. It's what an MCP runtime imports to verify the JWTs its users carry.
@pleri/pylon-cli,
not this package. The CLI is for logging in, enrolling apps,
granting roles, approving schema migrations.Actor
with capabilities.pnpm add @pleri/pylon
Requires Node ≥ 22 (or any runtime with WHATWG fetch + Web Crypto —
Cloudflare Workers supported).
// Workers and Node ≥ 22: import the slim verify-only entry to keep
// your bundle under ~8 KB gz.
import { pylonClient, pylonGuard } from '@pleri/pylon/verify';
const client = pylonClient({
orgUrl: process.env.PYLON_ORG_URL!,
appId: 'olam',
expectedOrgId: process.env.PYLON_ORG_ID!,
// sessionToken omitted → reads Authorization: Bearer <jwt>
// from the Request passed to resolve().
});
const guard = pylonGuard(client, { requiredCapability: 'olam:world.read' });
export default {
async fetch(request: Request): Promise<Response> {
const { actor, errorResponse } = await guard(request);
if (errorResponse) {
return new Response(JSON.stringify(errorResponse.body), {
status: errorResponse.status,
headers: { 'content-type': 'application/json' },
});
}
// actor.email / actor.capabilities / actor.capabilities.has(cap)
return handle(request, actor);
},
};
Need schema push? Import from @pleri/pylon/schema:
import { pylonSchemaClient } from '@pleri/pylon/schema';
const schema = pylonSchemaClient({
orgUrl: process.env.PYLON_ORG_URL!,
appId: 'olam',
appToken: process.env.PYLON_APP_TOKEN!,
expectedOrgId: process.env.PYLON_ORG_ID!,
});
const result = await schema.push(/* your SchemaDeclaration */);
See docs/PYLON_SDK_CONTRACT.md
in the repo for the complete public API, HTTP contract, schema model,
error shapes, and integration recipes.
Pre-1.0 minor bumps (0.1 → 0.2) may be breaking; changelog in
CHANGELOG.md. The package version tracks the
service's token + schema shapes — the SDK and service ship in
lockstep for those surfaces.
MIT — see LICENSE.
FAQs
Runtime SDK for MCP servers that enrol into Pylon — token verification, capability resolution, schema push, MCP middleware. The library half of the @pleri/pylon-cli admin tool.
We found that @pleri/pylon 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
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.