Sign In

@aauth/mcp-stdio

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aauth/mcp-stdio

Stdio-to-HTTP proxy for MCP with AAuth signatures

Source
npmnpm
Version
0.11.1
Version published
Weekly downloads
220
423.81%
Maintainers
1
Weekly downloads
 
Created
Source

@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 --server https://api.example.com/mcp --agent https://user.github.io

Options

FlagEnv varDescription
--server, -sAAUTH_MCP_SERVERRemote MCP server URL (required)
--agent, -aAAUTH_AGENT_URLAgent identity URL (required)
--delegate, -dAAUTH_DELEGATEDelegate name (default: claude)
--token-lifetimeAAUTH_TOKEN_LIFETIMEAgent token lifetime in seconds (default: 3600)

Claude Code Configuration

Add to your MCP server config:

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

Or with environment variables:

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

API

bridgeTransports(local, remote): Promise<void>

Bridges two MCP transports for bidirectional message forwarding.

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

parseArgs(argv): StdioArgs

Parses CLI arguments with env var fallbacks.

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

const args = parseArgs(process.argv.slice(2))
// { serverUrl, agentUrl, delegate?, tokenLifetime? }

License

MIT

Keywords

aauth

FAQs

Package last updated on 15 May 2026

Did you know?

Socket

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.

Install

Related posts