loading…
Search for a command to run...
loading…
Model Context Protocol server for the JSR (JavaScript Registry)
Model Context Protocol server for the JSR (JavaScript Registry)
A Deno monorepo containing packages for JSR (JavaScript Registry) access:
Core library for accessing JSR API:
deno add @wyattjoh/jsr
import { getPackage, searchPackages } from "@wyattjoh/jsr";
const results = await searchPackages({ query: "react" });
const pkg = await getPackage("deno", "std");
MCP server for LLM integration:
# Run directly from JSR
deno run --allow-net --allow-env jsr:@wyattjoh/jsr-mcp
# Or install globally
deno install --global --allow-net --allow-env -n jsr-mcp jsr:@wyattjoh/jsr-mcp
For Claude Desktop app integration, add this to your claude_desktop_config.json:
{
"mcpServers": {
"jsr": {
"command": "deno",
"args": [
"run",
"--allow-net",
"--allow-env",
"jsr:@wyattjoh/jsr-mcp"
],
"env": {
"JSR_API_TOKEN": "your-api-token-here"
}
}
}
}
deno cache packages/*/mod.ts
deno run --allow-net --allow-env packages/jsr-mcp/mod.ts
The MCP server provides 40 tools for comprehensive JSR access:
// Search for packages
jsr_search_packages({ query: "react", limit: 10 });
// Get package details
jsr_get_package({ scope: "deno", name: "std" });
// List versions with pagination
jsr_list_package_versions({
scope: "deno",
name: "std",
limit: 20,
page: 1,
});
// Get dependencies for a specific version
jsr_get_package_dependencies({
scope: "deno",
name: "std",
version: "1.0.0",
});
// Create a new scope (requires authentication)
jsr_create_scope({
scope: "my-org",
description: "My organization's packages",
});
This is a Deno workspace monorepo. All commands run from the root affect all packages.
# Clone the repository
git clone https://github.com/wyattjoh/jsr-mcp.git
cd jsr-mcp
# Cache dependencies
deno cache packages/*/mod.ts
# Format all code
deno fmt
# Lint all packages
deno lint
# Type check all packages
deno check packages/jsr/mod.ts packages/jsr-mcp/mod.ts
# Run tests
deno test --allow-net packages/
# Run MCP server locally (with watch mode)
deno run --allow-read --allow-write --allow-env --allow-run --allow-net --watch packages/jsr-mcp/mod.ts
# Run MCP server in production
deno run --allow-read --allow-write --allow-env --allow-run --allow-net packages/jsr-mcp/mod.ts
# Build binary
cd packages/jsr-mcp
deno compile --allow-read --allow-write --allow-env --allow-run --allow-net --output=jsr-mcp mod.ts
# Publish packages (CI/CD)
deno publish
# Work on @wyattjoh/jsr
cd packages/jsr
deno test --allow-net
# Work on @wyattjoh/jsr-mcp
cd packages/jsr-mcp
deno run --allow-net --allow-env mod.ts
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"wyattjoh-jsr-mcp": {
"command": "npx",
"args": []
}
}
}