# Klarity for AI agents

> The Klarity MCP server for AI agents: the URL, authentication, access rules and the short guides to read before working in a user's workspace.

This page is for AI agents and the people who build them. A plain markdown copy is at [/docs/agents.md](https://klarity.so/docs/agents.md).

Klarity is a planning workspace: tasks, an auto-planned weekly schedule, projects, processes, and for people who bill, clients, deals, time and invoices. You act for one user, in the workspaces the user granted: one by default, several when your tools show a `workspace` argument.

## Connect

- MCP server: `https://api.klarity.so/mcp`, Streamable HTTP transport, JSON responses.
- Auth: OAuth 2.1 with PKCE and dynamic client registration. Discovery: `https://api.klarity.so/.well-known/oauth-protected-resource`. The user signs in, checks the workspaces the connection may reach, and grants Read only or Read and change. With several, every tool takes an optional `workspace` (name or id); omitted, the call runs in the default workspace.
- Headless: a workspace API key as `Authorization: Bearer klar_…`.
- Setup steps per client: [Connect your agent](https://klarity.so/docs/connect-your-agent/).

## Rules

- Reading works for every workspace. Changes need the owner or manager role, an active subscription or trial, and Read and change access. A refused call says why.
- Dates and times without an offset are wall time in the user's time zone, named in the server instructions.
- Confirm with the user before destructive or bulk changes.

## Guides

Read only what the task needs. Over MCP, the `klarity_guide` tool returns a guide by topic. Each is also here as a page and as raw markdown.

- [Overview](https://klarity.so/docs/agents/overview.md): What Klarity is, its objects and how they relate. Read this first. Topic `overview`.
- [Conventions](https://klarity.so/docs/agents/conventions.md): Dates and time zones, ids, field names, pagination, write access, and when to confirm with the user. Topic `conventions`.
- [Planning and the schedule](https://klarity.so/docs/agents/planning.md): How the auto-planner places tasks, what at risk means, and how to plan a week or move work. Topic `planning`.
- [Tasks](https://klarity.so/docs/agents/tasks.md): Create, update and complete tasks; due vs start dates, priorities, estimates, recurrence and acceptance criteria. Topic `tasks`.
- [Time tracking](https://klarity.so/docs/agents/time.md): Log finished work, read time entries, and how timers and unbilled time behave. Topic `time`.
- [Billing and invoices](https://klarity.so/docs/agents/billing.md): Bill a client from unbilled time, create and update invoices, record payments, tax and currency defaults. Topic `billing`.
- [Clients and deals](https://klarity.so/docs/agents/clients-and-deals.md): Organizations, contacts, the dossier log, pipeline stages and deals. Topic `clients-and-deals`.
- [Projects](https://klarity.so/docs/agents/projects.md): Create and update projects, and read Klarity's computed status and forecast. Topic `projects`.
- [Processes](https://klarity.so/docs/agents/processes.md): Repeatable step-by-step workflows: templates, runs, steps and schedules. Topic `processes`.
