{"repo":"dmmulroy/opensrc-mcp","free":true,"listed":false,"github":"https://github.com/dmmulroy/opensrc-mcp","clone":"git clone https://github.com/dmmulroy/opensrc-mcp.git","description":"MCP server for fetching and querying dependency source code","language":"TypeScript","stars":39,"topics":[],"license":null,"category":"mcp-servers","readme_excerpt":"opensrc-mcp A codemode MCP server for fetching and querying dependency source code. Why? Traditional MCP exposes tools directly to LLMs. This server uses the codemode pattern : agents write JavaScript that executes server-side, and only results return. Benefits: - Context efficient - Large source trees stay server-side - Batch operations - One call to search/read multiple files - LLMs are better at code - More training data for JS than tool-calling Installation OpenCode Configuration Add to your OpenCode config ( /.config/opencode/config.json or project opencode.json ): Tool execute Single tool exposing all operations. Agents write JS that runs server-side; only results return. Examples: Package Formats Format Example Description -------- --------- ------------- zod npm (auto-detects version) @ zod@3.22.0 npm specific version npm: npm:react explicit npm pypi: pypi:requests Python/PyPI pip: pip:flask alias for pypi crates: crates:serde Rust/crates.io cargo: cargo:tokio alias for crates owner/repo vercel/ai GitHub repo owner/repo@ref vercel/ai@v1.0.0 GitHub at ref github:owner/repo github:facebook/react explicit GitHub Storage Sources are stored globally at /.local/share/opensrc/ (XDG compliant): Override with $OPENSRC DIR or $XDG DATA HOME . How It Works 1. Agent calls execute tool with JS code: async () = opensrc.fetch(\"zod\") 2. Code runs in sandboxed vm context with injected opensrc API 3. Server fetches package via opensrc (handles registry lookup, git clone) 4. Only the re","default_branch":null,"files":null,"tree":[],"storefront":"/r/dmmulroy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dmmulroy/opensrc-mcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}