New:Socket for Asana Is Now Available.Learn more
Get Started

go2-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

go2-mcp-server

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.

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

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):

FlagEnv varPurpose
--api-keyGO2_API_KEYAPI key from https://go2.gg/dashboard/developer
--api-urlGO2_API_URLOverride API base. Default https://api.go2.gg.
--agent-idGO2_AGENT_IDStable agent identifier (claude-code, cursor, ...)
--agent-run-idGO2_AGENT_RUN_IDPer-conversation / per-task run id. Generate at run start.
--agent-actor-idGO2_AGENT_ACTOR_IDOptional: 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

ToolWhat it does
track_agent_linkCreate a short link stamped with the current run context.
get_run_attributionStream of clicks for a run / agent / link.
list_agent_runsDistinct (agent_id, agent_run_id) with click counts and timestamps.

Lifecycle

ToolWhat it does
create_revocable_linkSingle-use link that 410s after one click.
create_expiring_linkTTL in minutes (default 60, max 30 days).
revoke_run_linksArchive every link with a given agent_run_id.
ToolWhat it does
create_linkCreate a short link.
list_linksPaginated list of links.
get_linkFetch a link by id.
update_linkUpdate destination/slug/etc.
delete_linkArchive a link.
bulk_create_linksCreate many links in one call.
get_analyticsPer-link click analytics rollup.

Docs

ToolWhat it does
search_docsSearch Go2 docs.
get_docFetch a doc by slug.
list_docsList 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

License

AGPL-3.0. Commercial license available — contact hello@go2.gg.

Keywords

mcp

FAQs

Package last updated on 27 Apr 2026

Related posts