MCP Server

The jsrepo MCP server.

SourceOfficial

The jsrepo MCP server has been built alongside the jsrepo CLI to ensure agents have first class support for interacting with jsrepo registries.

The jsrepo MCP ships separate to the jsrepo CLI to reduce the overall size of the CLI and can be found on npm as @jsrepo/mcp.

All jsrepo registries are supported out of the box by the MCP server, including registries hosted on custom providers (provided the custom provider is present in your jsrepo.config).

Configuration

You can quickly configure the MCP server for Cursor by running the following command:

jsrepo config mcp --client cursor

This will automatically configure the MCP server for Cursor in the correct file:

.cursor/mcp.json
{
    "mcpServers": {
        "jsrepo": {
            "command": "npx",
            "args": ["@jsrepo/mcp"]
        }
    }
}

Tools

The jsrepo MCP server provides the following tools:

ToolDescription
add_item_to_projectAdd a registry item or items directly to the users project
view_registry_itemView the code and information about a registry item
search_items_in_registrySearch for registry items in one or more registries

Registry Authors

Your registry will automatically be compatible with the jsrepo MCP server, but here are a few tips to improve the agents usage of your registry:

  • include all the registry metadata in your jsrepo.config to allow agents to find your registry more easily when searching
  • include a description with each item in your registry
  • include files with the type registry:example with an example of how to use each item