git clone https://github.com/Meteoryte/brainn-dev-site.git cd brainn-dev-site npm install
A source-routing interface for AI coding agents.
RegistryRouter gives agents a structured way to classify a task, identify authoritative sources, check policy, and produce a preflight report before implementation begins.
Run locally from source
RegistryRouter MCP is available as a local development scaffold. Clone the repository to run the CLI and MCP server on your own machine.
npm run registryrouter:smoke
{
"mcpServers": {
"registryrouter": {
"command": "node",
"args": ["/absolute/path/to/brainn-dev-site/packages/registryrouter-mcp/bin/server.js"],
"env": {
"REGISTRYROUTER_POLICY": "./registryrouter.policy.json"
}
}
}
}Local scaffold · not yet on npm
The MCP server and CLI run from source. Run npm run registryrouter:smoke to verify the local setup before connecting a client. npm publication will follow local testing.
Future npm install path
Once local testing is complete and the package is published, the MCP server will be installable via npx without cloning the repository.
{
"mcpServers": {
"registryrouter": {
"command": "npx",
"args": ["@brainn/registryrouter-mcp"],
"env": {
"REGISTRYROUTER_POLICY": "./registryrouter.policy.json"
}
}
}
}@brainn/registryrouter-mcp
This package is not yet published to npm. Do not use the npx command above until the package is available and verified. Use the local scaffold path until then.
The MCP surface
Each tool is designed to make the agent pause, choose a better source, and explain the risk before it writes code.
Copyable operating prompts
Use these prompts to make an agent treat source selection as a required step instead of an afterthought.
Before writing code, use RegistryRouter to classify the task, identify the authoritative registry/source, check relevant risks, and determine whether human approval is required. Do not invent package names, APIs, pricing, config keys, or capabilities. Return the preflight result before implementation.
Use RegistryRouter to identify the official package registry and docs for this dependency. Verify package identity, current install command, supported versions, license, maintenance status, security concerns, and rollback path. Then produce an implementation plan with pinned versions where appropriate.
Use RegistryRouter to evaluate candidate UI component sources. Prefer source-owned or accessible primitives when the app has an existing design system. Check visual fit, accessibility, dependency footprint, bundle impact, license, and whether the component can be restyled without fighting the product's visual language.
Use RegistryRouter to evaluate the MCP server or agent tool before connecting it. Check tool identity, source authority, permissions, transport, authentication, data access, logging behavior, prompt-injection risk, installation method, and human approval requirements.