bugs
Find bug tracker URLs for npm packages to report issues or check known problems. Input a package name to get its issue tracking link.
Instructions
Get the bug tracker URL for a package
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | Package name |
Implementation Reference
- src/index.ts:597-617 (handler)The "bugs" tool handler which runs "npm bugs" with "--no-browser" and returns the URL.
// ── npm bugs ── server.tool( "bugs", "Get the bug tracker URL for a package", { package: z.string().describe("Package name"), }, async ({ package: pkg }) => { // Use --no-browser to just print the URL without opening it const args = ["bugs", pkg, "--no-browser"]; try { const { stdout, stderr } = await run(args); return { content: [{ type: "text", text: (stdout + stderr).trim() }] }; } catch (e: any) { return { content: [{ type: "text", text: `Error: ${e.stderr || e.message}` }], isError: true, }; } }, );