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

@mba-ai/mcp-server

v0.1.1

Published

MBA MCP control plane — read and tune the global MBA config from any MCP host (VS Code Copilot, Cline, Claude Desktop)

Readme

@mba-ai/mcp-server

The MCP (Model Context Protocol) control plane for the Model Behavioral Adapter (MBA) system. It lets any MCP host (VS Code Copilot, Cline, Claude Desktop) read and tune the global MBA config.

What it does

The server is a thin client over the global MBA service — it has zero dependency on the framework. It loads the adapter registry from a .MBA/adapters/ directory and, for the service-backed tools, talks to the running global service (discovered via ~/.mba/mba/service.json).

Tools:

  • mba_file_metadata — probe a workspace file and return metadata including total line count, so models can choose valid read_file ranges instead of guessing.
  • mba_model_registry — list the models in the adapter registry (light metadata: id, name, family, model file, bindings).
  • mba_resolve_config — return the resolved config for a model (or the default) from the global service.
  • mba_set_rules — set the TCB rule state (enabled/disabled + rule classes) on the global service.
  • mba_server_status — report whether the global service is reachable and its version.

The service-backed tools fail soft: if the service is not running, they return a structured error rather than crashing the host.

Installation

npm install @mba-ai/mcp-server

Running

Stdio transport (for VS Code / Copilot):

npx -y @mba-ai/mcp-server

Environment variables

|Variable|Description|Default| |---|---|---| |MBA_DIR|Directory containing .MBA/adapters/|./.MBA| |MBA_WORKSPACE_ROOT|Workspace root for file path scoping|process.cwd()| |MBA_SERVICE_URL|Explicit service base URL (skips discovery)|—| |MBA_BASE_DIR|Base dir for service discovery file|~/.mba|

Example tool call

{
  "name": "mba_resolve_config",
  "arguments": {
    "model": "qwen3-coder"
  }
}

VS Code configuration

Add to your VS Code settings.json:

{
  "mcp.servers": {
    "mba": {
      "command": "npx",
      "args": ["-y", "@mba-ai/mcp-server"],
      "env": {
        "MBA_DIR": "/absolute/path/to/.MBA",
        "MBA_WORKSPACE_ROOT": "/absolute/path/to/workspace"
      }
    }
  }
}

Security

mba_file_metadata is workspace-scoped. Paths outside MBA_WORKSPACE_ROOT are rejected. The service-backed tools only reach 127.0.0.1. The server runs with the permissions of the process that launches it.

Related

See ADR-0085 and ADR-0092 for the design.