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

as-nexus-mcp-client

v1.3.1

Published

MCP Client for connecting to Nexus MCP Multi-Tenant Server with automatic credential headers

Readme

Nexus MCP Client

HTTP client for connecting to Nexus MCP Multi-Tenant Server with automatic credential header injection.

Features

  • 🔐 Automatic Credential Headers: Transparently injects credentials from environment variables
  • 🌐 HTTP Transport: Reliable HTTP POST communication with MCP servers
  • 🧪 Built-in Diagnostics: Comprehensive credential and connection testing
  • 📋 Tool Discovery: List and test available MCP tools
  • 🔄 Claude Desktop Integration: Seamless proxy mode for Claude Desktop
  • 🛡️ Security: Automatic credential masking in logs

Quick Start

Installation

npm install -g as-nexus-mcp-client

Claude Desktop Configuration

{
  "mcpServers": {
    "nexus-mcp": {
      "command": "npx",
      "args": [
        "as-nexus-mcp-client",
        "--url", "http://localhost:3000/mcp/your-client-id"
      ],
      "env": {
        "AZURE_DEVOPS_PAT": "your-52-character-token",
        "AZURE_DEVOPS_ORGANIZATION_URL": "https://dev.azure.com/your-org",
        "AZURE_DEVOPS_PROJECT_ID": "optional-project-id",
        "JIRA_DOMAIN": "your-company.atlassian.net",
        "JIRA_EMAIL": "[email protected]",
        "JIRA_API_TOKEN": "your-jira-token"
      }
    }
  }
}

Automatic Credential Headers

The client automatically reads environment variables and converts them to HTTP headers:

Azure DevOps

  • AZURE_DEVOPS_PATX-Azure-DevOps-PAT
  • AZURE_DEVOPS_ORGANIZATION_URLX-Azure-DevOps-Org-URL
  • AZURE_DEVOPS_PROJECT_IDX-Azure-DevOps-Project-ID

Jira

  • JIRA_DOMAINX-Jira-Domain
  • JIRA_EMAILX-Jira-Email
  • JIRA_API_TOKENX-Jira-API-Token

CLI Usage

Basic Connection Test

as-nexus-mcp-client --url http://localhost:3000/mcp/client-id --test

List Available Tools

as-nexus-mcp-client --url http://localhost:3000/mcp/client-id --list-tools

Run Diagnostics

as-nexus-mcp-client --diagnose

Verbose Mode

as-nexus-mcp-client --url http://localhost:3000/mcp/client-id --test --verbose

Diagnostics

The built-in diagnostic tool provides comprehensive information:

as-nexus-mcp-client --diagnose

Sample Output:

🔍 Nexus MCP Client - Credential Diagnostics
==================================================

📍 Environment Info:
   Node Version: v20.0.0
   Platform: darwin
   Client Version: 1.1.0

🔐 Credential Configuration:
   Total headers: 5
   Total size: 234 bytes

   Azure DevOps:
   ✅ Configured
      Headers: 3
      X-Azure-DevOps-PAT: 6yi2***JQQj
      X-Azure-DevOps-Org-URL: https://dev.azure.com/as-digital-solutions
      X-Azure-DevOps-Project-ID: ghost-protocol

   Jira:
   ✅ Configured
      Headers: 3
      X-Jira-Domain: company.atlassian.net
      X-Jira-Email: [email protected]
      X-Jira-API-Token: ATAT***1EB

🧪 Connection Test:
   ✅ Connection successful
   📋 Available tools: 26

💡 Recommendations:
   • All services properly configured
   • Ready for production use

✅ Diagnostics complete

Configuration Examples

Azure DevOps Only

{
  "env": {
    "AZURE_DEVOPS_PAT": "your-token",
    "AZURE_DEVOPS_ORGANIZATION_URL": "https://dev.azure.com/your-org"
  }
}

Jira Only

{
  "env": {
    "JIRA_DOMAIN": "company.atlassian.net",
    "JIRA_EMAIL": "[email protected]",
    "JIRA_API_TOKEN": "your-token"
  }
}

Both Services

{
  "env": {
    "AZURE_DEVOPS_PAT": "azure-token",
    "AZURE_DEVOPS_ORGANIZATION_URL": "https://dev.azure.com/org",
    "JIRA_DOMAIN": "company.atlassian.net",
    "JIRA_EMAIL": "[email protected]",
    "JIRA_API_TOKEN": "jira-token"
  }
}

Security Features

Automatic Credential Masking

  • Tokens are automatically masked in logs
  • Only first and last 4 characters shown
  • URLs and emails remain visible for debugging

Header Size Validation

  • Automatic validation of header size limits
  • Warning at 16KB, error at 32KB per header
  • Total size limit of 64KB for all headers

Session Management

  • Unique session IDs for each connection
  • Proper connection lifecycle management
  • Graceful shutdown handling

Troubleshooting

Connection Issues

401 Authentication Failed

# Check credential configuration
as-nexus-mcp-client --diagnose

# Verify tokens are valid and not expired

403 Access Forbidden

# Verify token permissions
# Azure DevOps: Ensure PAT has 'Work items (full)' scope
# Jira: Ensure API token has proper project access

404 Not Found

# Check server URL and client ID
# Ensure Nexus MCP Server is running
curl http://localhost:3000/health

Credential Issues

No Credentials Configured

# Verify environment variables are set
env | grep -E "(AZURE_DEVOPS|JIRA)"

# Check Claude Desktop config file
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json

Headers Too Large

# Use credential profiles for large configurations
# Consider server-side credential mapping

Network Issues

Connection Timeout

# Check server status
curl -I http://localhost:3000/health

# Verify firewall settings
# Check network connectivity

API Reference

NexusMCPClient

import { NexusMCPClient } from 'as-nexus-mcp-client';

const client = new NexusMCPClient({
  url: 'http://localhost:3000/mcp/client-id',
  verbose: true
});

await client.connect();
await client.listTools();
await client.disconnect();

CredentialHeadersBuilder

import { CredentialHeadersBuilder } from 'as-nexus-mcp-client';

// Get credential status
const status = CredentialHeadersBuilder.getCredentialStatus();

// Check if any credentials configured
const hasCredentials = CredentialHeadersBuilder.hasAnyCredentials();

// Get configured services
const services = CredentialHeadersBuilder.getConfiguredServices();

Development

Building

npm run build

Testing

npm run dev -- --url http://localhost:3000/mcp/test --test

Publishing

npm version patch
npm publish

Environment Variables Reference

| Variable | Required | Description | |----------|----------|-------------| | AZURE_DEVOPS_PAT | For Azure DevOps | Personal Access Token (52 chars) | | AZURE_DEVOPS_ORGANIZATION_URL | For Azure DevOps | Organization URL (https://dev.azure.com/org) | | AZURE_DEVOPS_PROJECT_ID | Optional | Default project ID | | JIRA_DOMAIN | For Jira | Jira domain (company.atlassian.net) | | JIRA_EMAIL | For Jira | Account email address | | JIRA_API_TOKEN | For Jira | API token from Jira account settings |

License

MIT License - see LICENSE file for details.

Support

  • 📚 Documentation: Check this README and diagnostics output
  • 🐛 Issues: Use GitHub issues for bug reports
  • 💡 Features: Submit feature requests via GitHub
  • 🔍 Diagnostics: Use --diagnose flag for troubleshooting