MCP Server
The jsrepo MCP server.
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 cursorThis will automatically configure the MCP server for Cursor in the correct file:
{
"mcpServers": {
"jsrepo": {
"command": "npx",
"args": ["@jsrepo/mcp"]
}
}
}Tools
The jsrepo MCP server provides the following tools:
| Tool | Description |
|---|---|
add_item_to_project | Add a registry item or items directly to the users project |
view_registry_item | View the code and information about a registry item |
search_items_in_registry | Search 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.configto allow agents to find your registry more easily when searching - include a
descriptionwith each item in your registry - include files with the type
registry:examplewith an example of how to use each item