# Restivity

> Restivity is a productivity app (tasks, projects, pomodoro, calendar, Eisenhower matrix). It exposes a first-class agent surface: MCP server, REST API, and OAuth.

## Agent surfaces
- [MCP server card](https://restivity.ai/.well-known/mcp/server-card.json): connect an MCP client to https://restivity.ai/api/mcp
- [Claude plugin](https://github.com/Restivity/restivity-claude-plugin): the MCP connector and the Restivity agent skills in one install, for Claude Code, claude.ai, the Claude desktop app and Cowork. Claude Code 2.1.275+: `/plugin install restivity --marketplace Restivity/restivity-claude-plugin`; claude.ai and the desktop app: Customize → Plugins → Add → Add marketplace, then the repository URL; Cowork: + → Plugins → Manage plugins → Add marketplace → Add from a repository, then the repository URL. It connects to https://restivity.ai/api/mcp.
- [OpenAPI](https://restivity.ai/api/v1/openapi.json): REST API at https://restivity.ai/api/v1
- [Agent Skills](https://restivity.ai/.well-known/agent-skills/index.json)
- [API catalog](https://restivity.ai/.well-known/api-catalog)
- [OAuth metadata](https://restivity.ai/.well-known/oauth-authorization-server)

## Agent Skills
Skills: the published how-to texts, one per job; the index, with each skill's URL and digest, is https://restivity.ai/.well-known/agent-skills/index.json
- `restivity-automation`: driving the REST API and the MCP tools: connecting, the tool catalog, the task / today / search / batch / recurrence workflows
- `restivity-daily-plan`: running the person's day (plan my day, what do we close today, add this to today, recap): one card per calendar day, its subtasks, log and recap (`profile_get` / `tasks_create` / `tasks_get` / `tasks_update` / `comments_create` / `comments_list`)
- `restivity-focus-flow`: actually WORKING a task, not only reading or editing it: status, pomodoro work sessions, findings filed on the way, a closing comment (`focus_start` / `focus_finish`)
- `restivity-task-updates`: writing ON a task: a comment, a closing summary, a progress note (`comments_create`)
- `restivity-task-writing`: CREATING or REWRITING a task: a title that states the fact, then Esempio reale → Causa → Proposta → (Consiglio) → Dove vive → Trovato da → Stima, each section a paragraph that opens with its bold label and a period (`tasks_create` / `tasks_update`)

## Plan requirement
- The connection needs a Restivity Pro or Team plan; a paid Team seat also unlocks it on a free personal plan. A free account can sign in, and the tools then answer that its plan does not include agent access.
- What a free account meets: REST https://restivity.ai/api/v1 answers HTTP 403 `upgrade_required` (application/problem+json with `upgrade_url`); MCP https://restivity.ai/api/mcp accepts `initialize`, `ping` and notifications (the `initialize` `instructions` open with the refusal's message), then answers every other request with HTTP 200 and a JSON-RPC error whose `data.type` is `upgrade_required` (code `-32003`, with `data.upgrade_url`), never an HTTP 403. Show the upgrade link; do not restart the OAuth flow.

## Rate limits
- Per user, per UTC hour: read: 1000/hour (GET, HEAD); write: 200/hour (POST, PATCH, PUT); delete: 50/hour (DELETE).
- Every response carries `X-RateLimit-Tier: <tier>:<count>/<limit>`. Over budget → 429 `rate_limited` with `Retry-After` (seconds); back off until then.
- Token and revocation endpoints (`POST /api/oauth/token`, `POST /api/oauth/revoke`, one shared budget): 600 requests per source IP per minute, and 6000 requests per client per hour for a confidential client; a public client (PKCE) has 300 requests per user per hour on the token endpoint instead, counted only for a valid code or refresh token (revocation never counts toward it). Over budget → 429 `slow_down` with `Retry-After`; wait and retry the same request, do not restart OAuth.

## Token revocation
- A revoked access token (the user disconnected the app, the token or its refresh token was revoked at `POST /api/oauth/revoke`, the refresh token was replayed, the authorization code it came from was exchanged a second time, the account was suspended, the client disabled) answers `401` `invalid_token` within 60 seconds of the revocation. On that 401, refresh; if the refresh answers `invalid_grant`, run the authorization flow again.

## Docs
- [API reference](https://restivity.ai/docs/api): endpoints, scopes, pagination, errors, rate limits, plan requirement
- [Connect an agent](https://restivity.ai/learn/agents): step-by-step for Claude, Claude Code, ChatGPT, Cursor, VS Code, Codex, Gemini CLI and any MCP client; the REST API and the agent skills for an agent without MCP
- [auth.md](https://restivity.ai/auth.md): the OAuth 2.1 flow an agent follows on its own: Dynamic Client Registration, or its Client ID Metadata Document URL as `client_id`

## Pages
- [About](https://restivity.ai/about): the company and the founder behind Restivity
- [Terms](https://restivity.ai/terms)
- [Privacy](https://restivity.ai/privacy)
