Skip to main content
Glama
nanoseil

@nanoseil/nsid-mcp-auth

by nanoseil

@nanoseil/nsid-mcp-auth

Local stdio credential broker for Nanoseil MCP services. It keeps the Nanoseil Identity API key outside Claude/Codex configuration and forwards MCP JSON-RPC to one exact, built-in production endpoint.

Requirements

  • Node.js 20.12 or newer

  • macOS, Linux, or WSL for P0. Native Windows invocation is not yet verified.

Related MCP server: Miftah

Create an identity explicitly

npx -y @nanoseil/nsid-mcp-auth@0.1.0-next.1 identity create

By default the identity lives at ~/.nanoseil/agent/identities/<sha256(cwd)[:32]>.json, matching the existing NSOS identity contract. The exact cwd string is hashed without realpath or case normalization. A different checkout, symlink path, or container path can therefore select a different identity. The directory is mode 0700 and files are written atomically with mode 0600.

--profile or NSID_PROFILE remains an explicit override; normal use does not require it.

P0 supports only the canonical default identity directory above.

  • NANOSEIL_IDENTITY_DIR is not consumed by the broker.

  • NSID_IDENTITY_FILE is not consumed by the broker.

  • An nsos-codex proxy launch must fail before starting the broker when either legacy path override is active. Direct mode remains the rollback path.

Supporting an override later requires canonical-root containment and cwd-key validation; the broker will not accept an arbitrary identity file path.

The broker never creates a replacement identity after a 401. Repair or create a profile explicitly instead.

Run as an MCP stdio server

npx -y @nanoseil/nsid-mcp-auth@0.1.0-next.1 --server nsos

The production allowlist is exact:

  • https://nsos.nanoseil.com/mcp

  • https://islands.nanoseil.com/mcp (canonical URL confirmed; disabled pending deployment and three-point smoke)

The Islands alias fails closed before sending a credential while disabled. It is not part of the active production allowlist. Arbitrary URLs and redirects are rejected. Client-provided credentials are not forwarded; only the broker adds the profile's Bearer credential.

Generate client configuration

The command displays the proposed entry and prompts before changing a file. Use --yes only after reviewing it.

npx -y @nanoseil/nsid-mcp-auth@0.1.0-next.1 setup claude --server nsos
npx -y @nanoseil/nsid-mcp-auth@0.1.0-next.1 setup codex --server nsos

Claude updates ~/.claude.json without replacing unrelated mcpServers. Codex updates a marked table in ~/.codex/config.toml. Re-running setup is idempotent. Before changing an existing file it writes a timestamped mode-0600 .bak backup. Neither output contains a token.

Security model

  • API keys never belong in argv, client config, logs, errors, or telemetry.

  • Redirects and arbitrary upstream URLs are disabled.

  • A profile is isolated from another profile, and each upstream gets its own MCP session in its own broker process.

  • 401/403 stops the credential; upstream 5xx/timeouts fail closed and may be retried by the MCP client.

Publishing is intentionally separate from building and packing. Do not run npm publish from a developer workstation. Releases use the protected npm-release GitHub environment and npm trusted publishing (.github/workflows/release.yml) so the package is published with provenance and the selected dist-tag. The next tag is required while the package version contains a pre-release suffix; upgrade consumers by changing the exact pin in generated configuration and running setup again.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Local stdio proxy for Uno MCP Gateway that enables MCP clients without OAuth support to securely connect to authenticated remote servers.
    Last updated
    1
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    A local MCP auth wrapper and credential broker for multi-account workflows, enabling profile switching, secret injection, and policy enforcement for upstream MCP servers.
    Last updated
    739
    3
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Local stdio bridge that exchanges TEUS email and password for a short-lived JWT and forwards MCP JSON-RPC to TEUS over HTTPS, enabling interaction with TEUS MCP for users with ADMIN or ROOT authority.
    Last updated
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server bridging holepunchto/keet-identity-key to the Hive agentic identity network

  • Hosted AgentLux MCP server for marketplace, identity, creator, services, and social flows.

  • A paid remote MCP for Skybridge, built to return verdicts, receipts, usage logs, and audit-ready JSO

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nanoseil/nsid-mcp-proxy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server