Skip to content

Connecting your tools

Everything a client does against hosted Spor goes through api.sporhq.io (REST, for the CLI and mechanical writers) or mcp.sporhq.io (MCP, for AI hosts like claude.ai). Connecting a tool means giving it a credential and one of those two addresses.

The interactive path is spor auth login. It uses a device flow, so it works on a headless box or over SSH: the CLI prints a URL and a short code, you approve in any browser (signing in at the hosted front door if you aren’t already), and the CLI receives an org-scoped credential and stores it. When a browser is available on the same machine, spor auth login --web skips the code and completes through a local redirect instead.

If you were handed a token directly — the invitation path — paste it with spor join:

Terminal window
spor join spor_pat_... # hosted Spor; api.sporhq.io is the default
spor join https://spor.example.com spor_pat_... # a self-hosted server instead

Both paths write the client configuration for you. Under the hood it is three environment variables, which you can also set directly (CI does):

Terminal window
SPOR_SERVER=https://api.sporhq.io # where the graph lives
SPOR_TOKEN=spor_pat_... # your credential
SPOR_ORG=acme # which stored credential is active

Verify with spor whoami (or GET /v1/me): it echoes the person your token is bound to and the organization it routes to.

One thing that surprises people: setting SPOR_SERVER globally does not make every repository on your machine start writing to the team graph. Spor is opt-in per repository — a repo participates only once it is explicitly enabled (spor enable), so a side project never distills into the team’s graph by accident.

Add mcp.sporhq.io as a connector in claude.ai (or any MCP host that speaks Streamable HTTP). The host walks you through an OAuth authorization against auth.sporhq.io; the resulting grant is tied to your identity, so everything the assistant writes through the connector is attributed to you. Tool-level detail — what each MCP tool does and the interactive queue and lens views — is in the MCP section.

What a new teammate actually needs:

  1. An invitation from an admin, and a sign-in at the hosted front door.
  2. The CLI connectedspor auth login, then spor whoami to confirm the token is bound to their person node (a bound: false warning means the identity binding is missing; the admin fixes that).
  3. Their working repos enabledspor enable in each repo that should participate in the graph.
  4. Optionally, the connector — add mcp.sporhq.io in claude.ai.

After that there is no hosted-specific workflow to learn; the getting started material applies as written.