# Leeway

> Personal task manager — inbox, today, upcoming, areas, projects, templates, and recurrence — with a remote MCP server agents can drive.

Leeway is a personal task list. Agents use the same views a person does: inbox, today, upcoming, areas, projects, templates, and recurrence. Connect over Streamable HTTP at `https://<origin>/api/mcp`. Production is `https://leeway.sh/api/mcp`; any other deployment, including the current Vercel origin, uses that origin in place of `<origin>`.

Protocol revision `2026-07-28` is served on `POST /api/mcp` (JSON-RPC, per-request `_meta`). The same route still answers 2025-era Streamable HTTP clients via `initialize`. `server/discover` is a public pre-use probe: no bearer token, no user data, `cacheScope` public, long TTL. `withMcpAuth` cannot exempt a single method, so the route skips auth only when the JSON-RPC method is exactly `server/discover`; requests with no `Content-Length` are allowed, and the body read is capped at 32 KiB. An invalid or over-cap declared length returns a header-only `401`. The `Mcp-Method` header alone does not bypass auth. Every other method requires `Authorization: Bearer`.

Auth for protected methods is OAuth 2.1 in the browser (consent screen) or a personal access token. Create or rotate a token in Settings → API keys while signed in, copy it once, then send `Authorization: Bearer lee_live_…` for HTTP, CLI, and other headless clients. Protected-resource metadata is `https://<origin>/.well-known/oauth-protected-resource`. A missing or invalid bearer on a protected method returns `401` with `WWW-Authenticate` pointing at that metadata. Browser clients probing discover should send `MCP-Protocol-Version: 2026-07-28` and `Mcp-Method: server/discover`; CORS allows those headers.

Clients: Cursor `mcp.json` with `"url": "https://<origin>/api/mcp"`, Claude Code remote connectors, and MCP Inspector.

Eleven tools: `agenda`, `list_tasks`, `get_task`, `create_tasks`, `update_tasks`, `schedule_tasks`, `complete_tasks`, `set_repeat`, `capture`, `list_areas`, `manage_areas`. Two resources: `leeway://agenda/today` and `leeway://areas`. No prompts.

Safety rails: no hard delete (trash with `update_tasks`); writes take explicit ids, never a filter; more than 20 destructive edits return an MRTR `input_required` result until a person confirms; writes are limited to 60 per minute per token.

## Connect

- [MCP endpoint](https://leeway.sh/api/mcp): Streamable HTTP JSON-RPC. Other deployments use `https://<origin>/api/mcp`.
- [Protected resource metadata](https://leeway.sh/.well-known/oauth-protected-resource): RFC 9728 document advertised on `WWW-Authenticate`.
- [server/discover](https://modelcontextprotocol.io/specification/2026-07-28/server/discover): Public probe for supported versions, capabilities, and instructions. Unauthenticated; no user data.

## Docs

- [Overview](https://leeway.sh/docs): What Leeway is, and how to start.
- [Concepts](https://leeway.sh/docs/concepts): Views, dates, areas, projects, and repeats.
- [MCP](https://leeway.sh/docs/mcp): Remote MCP server, tools, resources, and safety rails.
- [HTTP API](https://leeway.sh/docs/api): Create or rotate a personal access token in Settings → API keys, copy it once, then call `/api/v1` with `Authorization: Bearer lee_live_…`.
