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

@aauth/mcp-stdio

v3.1.0

Published

Stdio-to-HTTP proxy for MCP with AAuth signatures

Downloads

280

Readme

@aauth/mcp-stdio

Stdio-to-HTTP proxy for MCP with AAuth signatures. Bridges a local stdio MCP client (like Claude Code) to a remote HTTP MCP server, signing all requests with AAuth.

Part of aauth-dev/packages-js. Protocol spec: dickhardt/AAuth.

Install

npm install @aauth/mcp-stdio

CLI

npx @aauth/mcp-stdio https://api.example.com/mcp --agent-url https://user.github.io

Options

The remote MCP server URL is the first positional argument and is required.

| Flag | Env var | Description | |------|---------|-------------| | --agent-url | AAUTH_AGENT_URL | Agent URL (default: from ~/.aauth/config.json) | | --local | AAUTH_LOCAL | Local part of the agent identifier | | --person-server | AAUTH_PERSON_SERVER | Person server URL (default: from ~/.aauth/config.json) | | --token-lifetime | AAUTH_TOKEN_LIFETIME | Agent token lifetime in seconds (default: 3600) |

Person server

The proxy needs a person server to reach a resource that asks for a person or an auth token. It stamps the PS as the agent token's ps claim, obtains a person token from the PS's person_token_endpoint when a resource answers requirement=person-token, and exchanges the resource token that follows at the PS's auth_token_endpoint. Without one it can only reach resources that serve on agent identity alone, and it says so on stderr at startup.

Claude Code Configuration

Add to your MCP server config:

{
  "mcpServers": {
    "my-server": {
      "command": "npx",
      "args": ["@aauth/mcp-stdio", "https://api.example.com/mcp", "--agent-url", "https://user.github.io"]
    }
  }
}

Or with environment variables:

{
  "mcpServers": {
    "my-server": {
      "command": "npx",
      "args": ["@aauth/mcp-stdio", "https://api.example.com/mcp"],
      "env": {
        "AAUTH_AGENT_URL": "https://user.github.io",
        "AAUTH_PERSON_SERVER": "https://ps.example.com"
      }
    }
  }
}

API

bridgeTransports(local, remote): Promise<void>

Bridges two MCP transports for bidirectional message forwarding.

import { bridgeTransports } from '@aauth/mcp-stdio'

serializeAuthFlows(fetch): ProxyFetch

Wraps a fetch so that only one POST — and so only one AAuth flow, and one browser interaction — is in flight at a time. GET passes straight through, since the transport's GET is the long-lived SSE stream.

import { serializeAuthFlows } from '@aauth/mcp-stdio'

parseArgs(argv): StdioArgs

Parses CLI arguments with env var fallbacks. Takes the full process.argv.

import { parseArgs } from '@aauth/mcp-stdio'

const args = parseArgs(process.argv)
// { serverUrl, agentUrl?, local?, personServer?, tokenLifetime? }

License

MIT