npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@adastracomputing/aer-mcp-guard

v0.1.0

Published

Admission control for HTTP MCP servers: only AER-attested agents reach your tools; rogue agents get a JSON-RPC deny.

Readme

@adastracomputing/aer-mcp-guard

Admission control for HTTP MCP servers. Only agents carrying a valid AER Attestation token reach your tools; a rogue agent (one that doesn't run the AER collector, so has no token) is denied with a JSON-RPC 2.0 error.

Built on @adastracomputing/aer-resource-node (offline verify against cached JWKS, optional revocation introspection). No dependency on @modelcontextprotocol/sdk — mount it in front of any MCP HTTP endpoint.

Scope: HTTP MCP transports only — Streamable HTTP and SSE. stdio MCP runs locally with no network admission point, so it is out of scope. v1 gates the whole transport: every MCP HTTP request must carry a valid attestation (clients that can't attach headers during initialize aren't compatible yet).

Hono

import { honoMcpGuard } from '@adastracomputing/aer-mcp-guard/hono';

app.use('/mcp', honoMcpGuard({ audience: 'mcp://payments-prod' }));
// claims available at c.get('aerAttestation'); mount your MCP handler after.

Express

import { expressMcpGuard } from '@adastracomputing/aer-mcp-guard/express';

app.use('/mcp', expressMcpGuard({ audience: 'mcp://payments-prod' }));
// claims attached at req.aerAttestation

Framework-neutral core

import { guardMcpRequest } from '@adastracomputing/aer-mcp-guard';

const result = await guardMcpRequest((name) => req.headers.get(name), {
  audience: 'mcp://payments-prod',
});
if (!result.ok) {
  // result.status (401/403/503) + result.jsonRpcError — send as-is
  return new Response(JSON.stringify(result.jsonRpcError), { status: result.status });
}
// result.claims.agent_id / agent_session_id / tenant_id …

Revocation (optional)

Pass introspect to also honor revocation within the token's lifetime (see @adastracomputing/aer-resource-node). The guard caches positive verdicts briefly and is fail-closed by default if introspection is unreachable.

honoMcpGuard({
  audience: 'mcp://payments-prod',
  introspect: {
    url: 'https://aer-api.adastra.computer/v1/attestations/introspect',
    verifierKey: process.env.AER_VERIFIER_KEY!, // aerv_… ; mint via admin
  },
});

Deny contract

On denial the guard returns an HTTP status plus a JSON-RPC 2.0 error (code: -32001, message: "attestation required", data.reason):

| status | when | | --- | --- | | 401 | no token / malformed / bad signature / expired / wrong audience or issuer | | 403 | token valid but revoked (introspection reports inactive) | | 503 | introspection unreachable and fail-closed (token liveness unknown) |

The request body is never consumed — SSE and streaming Streamable-HTTP requests pass through untouched. The JSON-RPC id is echoed only when your framework already parsed the body (Express req.body); otherwise it is null.

What it proves

That the request was made with a fresh token minted for a running AER session and intended for this audience. It does not prove the agent host is uncompromised, nor bind the token to the transport (no mTLS/DPoP); the short TTL plus optional introspection bound replay. See ADR-010.