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 CLI
Section titled “The CLI”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:
spor join spor_pat_... # hosted Spor; api.sporhq.io is the defaultspor join https://spor.example.com spor_pat_... # a self-hosted server insteadBoth paths write the client configuration for you. Under the hood it is three environment variables, which you can also set directly (CI does):
SPOR_SERVER=https://api.sporhq.io # where the graph livesSPOR_TOKEN=spor_pat_... # your credentialSPOR_ORG=acme # which stored credential is activeVerify 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.
The claude.ai connector
Section titled “The claude.ai connector”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.
A teammate’s first day
Section titled “A teammate’s first day”What a new teammate actually needs:
- An invitation from an admin, and a sign-in at the hosted front door.
- The CLI connected —
spor auth login, thenspor whoamito confirm the token is bound to their person node (abound: falsewarning means the identity binding is missing; the admin fixes that). - Their working repos enabled —
spor enablein each repo that should participate in the graph. - Optionally, the connector — add
mcp.sporhq.ioin claude.ai.
After that there is no hosted-specific workflow to learn; the getting started material applies as written.