npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

go2-mcp-server

v0.2.2

Published

MCP server for Go2 — short links your AI agent can call. Create branded URLs, track every click, query per-run agent attribution. Works in Claude Code, Claude Desktop, Cursor, Windsurf, Codex.

Downloads

330

Readme

go2-mcp-server

MCP server for Go2 — short links with first-class per-run agent attribution.

Every link an agent creates can carry (agent_id, agent_run_id, agent_actor_id, agent_tool_call_id). Every click is queryable through the same MCP, the REST API, or webhooks.

Install

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "go2": {
      "command": "npx",
      "args": ["-y", "go2-mcp-server@latest", "--api-key", "go2_xxx"],
      "env": {
        "GO2_AGENT_ID": "claude-desktop",
        "GO2_AGENT_RUN_ID": "set-per-conversation"
      }
    }
  }
}

Claude Code

claude mcp add go2 npx -y go2-mcp-server@latest --api-key "$GO2_API_KEY"

Cursor

~/.cursor/mcp.json:

{
  "mcpServers": {
    "go2": {
      "command": "npx",
      "args": ["-y", "go2-mcp-server@latest"],
      "env": { "GO2_API_KEY": "go2_xxx" }
    }
  }
}

Windsurf

Add the same stdio entry to ~/.codeium/windsurf/mcp_config.json.

Claude.ai web / iOS, ChatGPT (remote MCP)

Add https://mcp.go2.gg/mcp as a custom remote MCP server. OAuth 2.1 sign-in handles authentication.

Configuration

Flags (preferred for command-style installs) and env vars (preferred for stdio in apps):

| Flag | Env var | Purpose | | --------------------- | --------------------- | ------------------------------------------------------------------ | | --api-key | GO2_API_KEY | API key from https://go2.gg/dashboard/developer | | --api-url | GO2_API_URL | Override API base. Default https://api.go2.gg. | | --agent-id | GO2_AGENT_ID | Stable agent identifier (claude-code, cursor, ...) | | --agent-run-id | GO2_AGENT_RUN_ID | Per-conversation / per-task run id. Generate at run start. | | --agent-actor-id | GO2_AGENT_ACTOR_ID | Optional: end-user / persona id the agent is acting on behalf of. |

Per-call overrides on every tool also take precedence over env vars.

Tools

Attribution

| Tool | What it does | | --------------------------- | ------------------------------------------------------------------------- | | track_agent_link | Create a short link stamped with the current run context. | | get_run_attribution | Stream of clicks for a run / agent / link. | | list_agent_runs | Distinct (agent_id, agent_run_id) with click counts and timestamps. |

Lifecycle

| Tool | What it does | | --------------------------- | ------------------------------------------------------------------------- | | create_revocable_link | Single-use link that 410s after one click. | | create_expiring_link | TTL in minutes (default 60, max 30 days). | | revoke_run_links | Archive every link with a given agent_run_id. |

Links

| Tool | What it does | | ------------------- | ---------------------------------- | | create_link | Create a short link. | | list_links | Paginated list of links. | | get_link | Fetch a link by id. | | update_link | Update destination/slug/etc. | | delete_link | Archive a link. | | bulk_create_links | Create many links in one call. | | get_analytics | Per-link click analytics rollup. |

Docs

| Tool | What it does | | ------------- | ----------------------------------------- | | search_docs | Search Go2 docs. | | get_doc | Fetch a doc by slug. | | list_docs | List doc pages, optionally by section. |

Prompts

The server exposes two starter slash commands:

  • /go2:track-this-run — "from now on wrap every URL in a Go2 tracked link"
  • /go2:summarize-attribution — "report on clicks for this run"

Run-id strategies

  • Per-conversation: one UUID per conversation start.
  • Per-task: one UUID per high-level task within a conversation.
  • Per-tool-call: pass agentToolCallId per call for the tightest resolution.

UUIDs > timestamps so you never collide across parallel runs.

Reference

  • Site: https://go2.gg
  • API: https://api.go2.gg
  • OpenAPI: https://go2.gg/openapi.json
  • Skill: https://go2.gg/skills/go2.tar.gz
  • Docs: https://go2.gg/developers/mcp
  • Source: https://github.com/rakesh1002/go2.gg

License

AGPL-3.0. Commercial license available — contact [email protected].