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

@datacules/agent-identity-mcp

v0.13.0

Published

MCP server adapter for @datacules/agent-identity — expose credential resolution as MCP tools

Readme

@datacules/agent-identity-mcp

MCP server adapter for @datacules/agent-identity. Exposes credential resolution as MCP tools so any MCP-capable client — Claude Desktop, Claude Code, Cursor, Windsurf, or a custom agent — can resolve credentials without touching the HTTP REST API.

Install

npm install @datacules/agent-identity-mcp

Tools exposed

| Tool | Description | |------|-------------| | resolve_credential | Resolve the correct credential for an AgentRequestContext | | resolve_migration_credential | Resolve source + target credential pair for a migration workflow | | list_credentials | List active credentials (safe metadata — no raw refs or secrets) | | list_rules | List routing rules ordered by priority | | health | Liveness check + loaded credential/rule counts |

Transports

| Mode | Use case | |------|----------| | stdio (default) | Claude Desktop, Claude Code, Cursor, Windsurf config blocks | | http+sse | Hosted / networked deployments reachable over HTTP |

Quick start

As a library (stdio)

import { createAgentIdentityMcpServer } from '@datacules/agent-identity-mcp';
import type { Credential, RoutingRule } from '@datacules/agent-identity';

const credentials: Credential[] = [ /* ... */ ];
const rules: RoutingRule[] = [ /* ... */ ];

const { start } = createAgentIdentityMcpServer({ credentials, rules });
await start(); // reads from stdin, writes to stdout

As a library (HTTP + SSE)

const { start, stop } = createAgentIdentityMcpServer({
  credentials,
  rules,
  transport: 'http',
  httpPort: 3002,
  httpAuthToken: process.env.MCP_AUTH_TOKEN, // optional
});
await start();
// GET  http://127.0.0.1:3002/sse          → SSE stream
// POST http://127.0.0.1:3002/messages     → tool calls

With a custom CredentialStore

import { VaultCredentialStore } from '@datacules/agent-identity-store-vault';

const store = new VaultCredentialStore({
  address: process.env.VAULT_ADDR!,
  token:   process.env.VAULT_TOKEN!,
});
const { start } = createAgentIdentityMcpServer({ store, rules });
await start();

App Connector Configs

agent-identity works as an MCP server in Claude Desktop, Claude Code, Cursor, Codex, and any other MCP-capable client. All use the same stdio transport — only the config file format differs.

Encoding credentials and rules

All configs require base64-encoded JSON arrays:

# Encode your credentials
echo '[{"id":"cred-1","kind":"fixed","name":"OpenAI Prod","scope":"All projects","status":"active","ref":"vault:openai-prod"}]' | base64

# Encode your rules
echo '[{"id":"rule-1","credentialRef":"vault:openai-prod","priority":100,"matchProvider":"openai"}]' | base64

Claude Desktop

Add to ~/.claude/claude_desktop_config.json:

{
  "mcpServers": {
    "agent-identity": {
      "command": "npx",
      "args": ["-y", "@datacules/agent-identity-mcp"],
      "env": {
        "AGENT_IDENTITY_CREDENTIALS": "<base64-encoded credentials>",
        "AGENT_IDENTITY_RULES": "<base64-encoded rules>"
      }
    }
  }
}

Claude Code

Option A — CLI command (user-scoped):

claude mcp add agent-identity \
  -e AGENT_IDENTITY_CREDENTIALS="<base64>" \
  -e AGENT_IDENTITY_RULES="<base64>" \
  -- npx @datacules/agent-identity-mcp

Option B — Project-scoped (committed to repo):

Create .mcp.json in the project root:

{
  "mcpServers": {
    "agent-identity": {
      "command": "npx",
      "args": ["-y", "@datacules/agent-identity-mcp"],
      "env": {
        "AGENT_IDENTITY_CREDENTIALS": "${AGENT_IDENTITY_CREDENTIALS}",
        "AGENT_IDENTITY_RULES": "${AGENT_IDENTITY_RULES}"
      }
    }
  }
}

Set the env vars in your shell or .env — Claude Code expands ${VAR} references at runtime.

Cursor

Add to .cursor/mcp.json (project-scoped) or ~/.cursor/mcp.json (global):

{
  "mcpServers": {
    "agent-identity": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@datacules/agent-identity-mcp"],
      "env": {
        "AGENT_IDENTITY_CREDENTIALS": "<base64-encoded credentials>",
        "AGENT_IDENTITY_RULES": "<base64-encoded rules>"
      }
    }
  }
}

Codex (OpenAI)

Add to .codex/config.toml (project-scoped) or ~/.codex/config.toml (global):

[mcp_servers.agent-identity]
command = "npx"
args = ["-y", "@datacules/agent-identity-mcp"]
startup_timeout_sec = 30

[mcp_servers.agent-identity.env]
AGENT_IDENTITY_CREDENTIALS = "<base64-encoded credentials>"
AGENT_IDENTITY_RULES = "<base64-encoded rules>"

Windsurf

Windsurf uses the same JSON format as Cursor. Add to your Windsurf MCP settings:

{
  "mcpServers": {
    "agent-identity": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@datacules/agent-identity-mcp"],
      "env": {
        "AGENT_IDENTITY_CREDENTIALS": "<base64-encoded credentials>",
        "AGENT_IDENTITY_RULES": "<base64-encoded rules>"
      }
    }
  }
}

Environment variables (standalone CLI)

| Variable | Default | Description | |----------|---------|-------------| | AGENT_IDENTITY_CREDENTIALS | required | Base64-encoded JSON array of Credential objects | | AGENT_IDENTITY_RULES | required | Base64-encoded JSON array of RoutingRule objects | | MCP_TRANSPORT | stdio | stdio or http | | MCP_HTTP_PORT | 3002 | HTTP port (only when MCP_TRANSPORT=http) | | MCP_HTTP_HOST | 127.0.0.1 | Bind address | | MCP_HTTP_AUTH_TOKEN | — | Optional bearer token for HTTP auth |


Part of the agent-identity monorepo by Datacules LLC.