@nanoseil/nsid-mcp-auth

@nanoseil/nsid-mcp-auth

Local stdio credential broker that securely stores Nanoseil Identity API keys and forwards MCP JSON-RPC to allowed production endpoints, keeping credentials out of client configuration.

Category
Visit Server

README

@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.

Create an identity explicitly

npx -y @nanoseil/nsid-mcp-auth@0.1.0-next.0 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.0 --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.0 setup claude --server nsos
npx -y @nanoseil/nsid-mcp-auth@0.1.0-next.0 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 until the operator gives an explicit release approval.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured