Claude¶
Claude can work with Kosmos directly: claude.ai on the web, Claude Desktop, the mobile apps, Cowork and Claude Code all connect the same way. For any open matter the user can access, Claude reads the full record (contacts, rates, activity, events, tasks, proceedings, settlement, documents, highlights, timeline, witnesses, synced emails, earlier AI conversations, invoices) and searches across the practice. Writes are narrow and deliberate: create-only timeline facts, witnesses and tasks. Access is per user: Claude signs in as the user, through Kosmos's own sign-in, and sees exactly what that user can see. Deactivating the user, or disconnecting under Settings → Claude, ends the access at once.
Kosmos is a remote MCP server (/mcp) with its own OAuth 2.1
authorization server. Nothing is configured on the server for it, and
nothing is installed on the user's machine. How the pieces fit together
is in the developer guide: MCP server and JSON APIs.
What the server needs¶
- HTTPS at a public address. Claude's connections come from
Anthropic's servers, not from the user's computer, so the Kosmos host
must be reachable from the internet (from Anthropic's published egress
range,
160.79.104.0/21, if a firewall limits who may connect). A server on a private network or behind a VPN cannot be connected, and the browser that signs the user in must reach it too. - The right public address. The connector URL on the Settings page
is built from the request, or from
PUBLIC_BASE_URLwhen that is set. Behind a proxy that rewrites the host, setPUBLIC_BASE_URLto the address users type, or the addresses in the OAuth metadata will not match and the sign-in fails. - The well-known paths at the root.
/.well-known/oauth-protected-resourceand/.well-known/oauth-authorization-serverare served by Kosmos; a reverse proxy that routes/.well-known/elsewhere (for certificate renewal, say) must pass these two on. A rule that refuses hidden paths (location ~ /\.in nginx) catches them too; the shippedkosmos-security.confputs alocation ^~ /.well-known/oauth-before its own.
User setup¶
- In Kosmos, open Settings → Claude and copy the connector address
(
https://<your host>/mcp). - In Claude, open Settings, then Connectors, and choose Add custom connector. Name it Kosmos, paste the address as the server URL, and leave the OAuth settings as they are.
- Click Connect. The browser opens Kosmos: sign in if asked (the usual email code or authenticator app), and click Allow.
- Back in Claude, the Kosmos tools are available in every conversation, on every device signed in to that Claude account.
In Claude Code, the same connection is
claude mcp add --transport http kosmos https://<your host>/mcp followed
by /mcp in the session to sign in.
A connection stays until the user disconnects it (Settings → Claude, or in Claude's connector settings), an administrator deactivates the user, or it goes ninety days unused. Each connection is listed on the Settings page with when it was made and last used.
Scoping a Claude Project to a matter¶
Matter scoping is conversational: the tools take the matter as a parameter, and a per-matter Claude Project carries it in its instructions, e.g.:
This project concerns the Kosmos matter "Rivera v. Northside Logistics". Resolve it once with find_matter, then pass its matter_id to the read_matter, search_matter, and add_fact tools.
What Claude can write¶
Seven writes, none destructive. Each creates one record (or, for complete_task, changes one status) only when the user asks for it, and Claude asks before calling a write tool unless the user has chosen "always allow" for it in Claude's connector settings.
- Timeline facts and witnesses: added to a matter, with the same validation the in-app chat applied.
- Tasks: added, assigned to the user who connected; and marked complete, which the Tasks page can undo. A task with an unfinished checklist is refused, as on the Tasks page.
- Time entries: logged on an hourly matter as the connected user, at that user's rate for the matter (Claude cannot set a rate). The entry carries a "Needs approval" badge on the Activity tab until the user (or an admin) selects it and clicks Approve; the Needs Approval choice in the date dropdown lists every entry waiting. A draft invoice that holds such an entry cannot be approved or sent until the entry is.
- Events: added to a matter's calendar or the firm's, with the same rules as the event form. The event is the firm's (everyone's) unless the user asks for it on their own calendar.
- Contacts: added to the address book, and optionally put on a matter with a role and a group. A contact with the same name is not duplicated.
Nothing on the money side (invoices, payments, trust) and nothing that sends mail can be changed from Claude.
Troubleshooting¶
- "Couldn't reach the MCP server" when adding the connector: Claude
could not fetch
https://<host>/mcpor the well-known documents from Anthropic's servers. Check that the host is public, that the certificate is valid, and that the proxy passes/.well-known/on.curl -i https://<host>/mcpfrom outside should answer401with aWWW-Authenticateheader. - "Couldn't register with Kosmos's sign-in service": Claude could
not read the well-known documents, fell back to
/registerat the root, and found nothing there.curl -i https://<host>/.well-known/oauth-authorization-servershould answer200with JSON; a403from nginx means a hidden-files rule is in front of it (see the well-known note above). - The sign-in page says the connection cannot be made: the application's redirect address is not one it registered, or its client id is unknown. Remove the connector in Claude and add it again.
- The sign-in loops or lands on the Dash: the address Claude used
does not match the one Kosmos believes is its own. Set
PUBLIC_BASE_URL. - Tools fail with "Your Kosmos account does not have financial access": as in the application, the ledger, trust and rates need the Financial permission.