Skip to main content
Glama

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
NameRequiredDescriptionDefault
packageYesPackage name

Implementation Reference

  • 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,
          };
        }
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikusnuz/npm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server