Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Connection and authentication

For project telemetry and the dashboard assistant, follow Workspace assistant. To connect the message box, follow Board MCP. This page configures precedent search, which uses a separate endpoint and credential.
Get the API origin and a workspace precedent key from your administrator. Set the key in the environment that launches your client, then launch the client from that environment:
export HALFSPAN_PRECEDENT_KEY='YOUR_PRECEDENT_KEY'
Keep the key out of chat, source control, and shared configuration. Replace YOUR_HALFSPAN_API_HOST in the examples with your API host. Merge the examples into your existing client configuration, preserving other servers.

Codex

Add this table to ~/.codex/config.toml. Codex reads the token from its environment.
[mcp_servers.halfspan-precedents] url = "https://YOUR_HALFSPAN_API_HOST/mcp/precedents" bearer_token_env_var = "HALFSPAN_PRECEDENT_KEY"
Restart Codex and open /mcp to check halfspan-precedents.

Claude Code

Run this command to add the server to your user configuration. Keep the environment variable reference as written.
claude mcp add --transport http --scope user halfspan-precedents https://YOUR_HALFSPAN_API_HOST/mcp/precedents --header 'Authorization: Bearer ${HALFSPAN_PRECEDENT_KEY}'
Restart Claude Code and open /mcp to check halfspan-precedents.

Cursor

Merge this server into ~/.cursor/mcp.json. Keep the environment variable reference as written.
{ "mcpServers": { "halfspan-precedents": { "url": "https://YOUR_HALFSPAN_API_HOST/mcp/precedents", "headers": { "Authorization": "Bearer ${env:HALFSPAN_PRECEDENT_KEY}" } } } }
Restart Cursor and check halfspan-precedents under Settings → Tools & MCP.

OpenCode 2

Merge this server into opencode.jsonc. Keep the environment variable reference as written.
{ "mcp": { "servers": { "halfspan-precedents": { "type": "remote", "url": "https://YOUR_HALFSPAN_API_HOST/mcp/precedents", "oauth": false, "headers": { "Authorization": "Bearer {env:HALFSPAN_PRECEDENT_KEY}" } } } } }
Restart OpenCode 2 and open /mcps to check halfspan-precedents.

Verify the connection

Confirm that find_precedents is available. Ask your agent to call it with these arguments:
{ "segment": "coding", "finding": "failed_tool" }
An empty result means no matching retained evidence was found. See find_precedents for other findings and error responses.
For a direct HTTP check, list the tools:
curl 'https://YOUR_HALFSPAN_API_HOST/mcp/precedents' \ -H "Authorization: Bearer $HALFSPAN_PRECEDENT_KEY" \ -H 'Content-Type: application/json' \ --data '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Credential scope and limits

Every request requires Authorization: Bearer <key>. The credential selects the workspace; there is no workspace argument in the tool. It permits this endpoint to search retained sessions across that workspace.
This endpoint uses a dedicated service credential. Scoped hs_ API keys created in Settings → Credentials cannot authenticate it. There is no OAuth login flow for this endpoint.
For deployment administrators, HALFSPAN_PRECEDENT_KEY_HASHES is a JSON object mapping the lowercase hexadecimal SHA-256 hash of each raw key to its workspace identifier string. Raw bearer tokens must contain 32–256 characters. An unconfigured or invalid credential map returns HTTP 503; an unknown key returns HTTP 401.
The request body is limited to 256 KiB. Each tool call returns at most eight event references, with no pagination or configurable result limit. Requests containing an Origin header return HTTP 403, so browser fetches cannot be used to connect. Responses carry Cache-Control: private, no-store.