Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
sigmaSd/jsr-mcpA Model Context Protocol (MCP) server that provides access to JSR (JavaScript Registry) module documentation.
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers




JSR Score
100%
Published
2 months ago (1.0.3)
import { McpServer } from "npm:@modelcontextprotocol/sdk@1.8.0/server/mcp.js"; import { StdioServerTransport } from "npm:@modelcontextprotocol/sdk@1.8.0/server/stdio.js"; import { z } from "npm:zod@3.24.2"; // Create an MCP server const server = new McpServer({ name: "JSR", version: "1.0.0", }); // Add an addition tool server.tool("jsr_docs", { module: z.string().describe("The module to document, example @std/path"), }, async ({ module }) => { const result = await new Deno.Command(Deno.execPath(), { args: ["doc", "jsr:" + module], env: { NO_COLOR: "1" }, }).output().then((r) => new TextDecoder().decode(r.stdout)); return ({ content: [{ type: "text", text: result }], }); }); // Start receiving messages on stdin and sending messages on stdout const transport = new StdioServerTransport(); await server.connect(transport);