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

who-mcp-stdio

v0.1.0

Published

stdio MCP proxy for authenticated Who-Next HTTP MCP endpoints

Readme

who-mcp-stdio

who-mcp-stdio is a local stdio MCP server that transparently proxies an upstream Streamable HTTP MCP endpoint.

It acquires an Azure AD bearer token inside the MCP process using Azure CLI credentials first, then falls back to interactive browser credentials. Every upstream HTTP MCP request is sent with:

Authorization: Bearer <azure-access-token>

Usage

npx who-mcp-stdio --endpoint https://your-host.example.com/mcp

For the hosted Who-Next server, request a Microsoft tenant token explicitly:

npx who-mcp-stdio --endpoint https://who.ttthree.space/mcp --microsoft-tenant

Local development against the repo package:

cd who-mcp-stdio
npm install
npm run build
node dist/index.js --endpoint http://localhost:12345/mcp

Options

--endpoint <url>       Required. Streamable HTTP MCP endpoint, e.g. https://host/mcp
--tenant-id <id>      Azure tenant id. Defaults to WHO_MCP_TENANT_ID, AAD_TENANT_ID, or AZURE_TENANT_ID
--microsoft-tenant   Shortcut for Microsoft tenant (72f988bf-86f1-41af-91ab-2d7cd011db47)
--scope <scope>       Azure token scope. Defaults to https://graph.microsoft.com/.default
--allow-dev-token     Fallback to dev_token if Azure auth fails. Also enabled by ALLOW_DEV_TOKEN=true
--timeout-ms <ms>     Upstream MCP request timeout. Defaults to 60000
--verbose             Log token and proxy diagnostics to stderr
--help                Show help

Environment variables:

WHO_MCP_ENDPOINT=http://localhost:12345/mcp
WHO_MCP_TENANT_ID=<tenant-id>
WHO_MCP_SCOPE=https://graph.microsoft.com/.default
ALLOW_DEV_TOKEN=false

Claude Desktop example

{
  "mcpServers": {
    "who-next": {
      "command": "npx",
      "args": [
        "who-mcp-stdio",
        "--endpoint",
        "https://your-host.example.com/mcp",
        "--tenant-id",
        "<tenant-id>"
      ]
    }
  }
}

Authentication flow

  1. Try AzureCliCredential, so az login works without extra prompts.
  2. Fall back to InteractiveBrowserCredential when Azure CLI credentials are unavailable or invalid.
  3. Persist interactive-browser tokens in the OS/user token cache under who-mcp-stdio.
  4. Persist the selected browser account record at ~/.IdentityService/who-mcp-stdio.authentication-record.json, so future processes can use silent auth.
  5. Cache the active process token until five minutes before expiry.
  6. Optionally use dev_token only when --allow-dev-token or ALLOW_DEV_TOKEN=true is set.

Notes

  • The upstream endpoint must support MCP Streamable HTTP transport.
  • The proxy mirrors upstream tools, resources, prompts, completions, and logging capabilities where advertised.
  • Logs are written to stderr only, preserving stdio MCP protocol messages on stdout.