# Technical reference

Details for developers and for AI tools that connect to the Timely MCP server directly. The server lists its tools to your client when it connects. They can change, so read them from the server rather than relying on fixed names.

## Server

| | |
| --- | --- |
| Endpoint | `https://api.timely.com/mcp` |
| Transport | Streamable HTTP. Send JSON-RPC 2.0 requests with `POST`. Responses are JSON. |
| Protocol version | `2025-06-18` |
| Capabilities | Tools only. No resources, prompts or server-sent events. |
| Instructions | The `initialize` result includes short instructions for the model: how a connection is scoped and where to start. |
| `GET /mcp` | `405 Method Not Allowed`, since the server doesn't open an event stream. |

`https://api.timelyapp.com/mcp` also works and serves existing connections.

## Authentication

The server uses OAuth 2.1 with the authorization code flow and PKCE.

- **Discovery.** An unauthenticated request gets `401` with a `WWW-Authenticate` header that points to `https://api.timely.com/.well-known/oauth-protected-resource`. That document names the authorization server, whose metadata lists the authorize, token and revocation endpoints.
- **Scope.** Request `mcp`. Tokens with other scopes, including existing Timely API tokens, get `403` with `insufficient_scope`.
- **Client registration.** Clients identify themselves with a client ID metadata document: the `client_id` is an HTTPS URL that serves the client's metadata. Clients must be public (`token_endpoint_auth_method: none`) and use PKCE with `S256`. Dynamic client registration isn't supported, and pre-registered OAuth apps can't request the `mcp` scope.
- **Issuer.** Authorization responses include `iss`, as advertised by `authorization_response_iss_parameter_supported`.
- **Tokens.** Send the access token in the `Authorization: Bearer` header. Tokens in the query string are refused. Access tokens last an hour and are renewed with the refresh token.
- **Workspace.** The user picks one workspace on the consent screen, and the token is bound to it. Ask the AI which workspace it's connected to.
- **Lifetime.** A connection lasts 90 days from consent. After that, refreshing fails with `invalid_grant` and the user has to approve the connection again.

## Limits

| Limit | Value | Response when exceeded |
| --- | --- | --- |
| Requests per connection | 600 per minute | `429`, with `Retry-After: 60` |
| Request body | 1 MB | `413` |
| JSON-RPC batch | 10 requests | JSON-RPC error |

## Errors

There are two kinds of failure:

- **JSON-RPC errors** for problems with the request itself: an unknown tool, arguments that don't match the tool's input schema, or something the user isn't allowed to do. The message says what to fix.
- **Tool results with `isError: true`** when a tool fails unexpectedly. The text is `Internal error (request <id>)`. Timely support can look up that request ID.

## Dates and times

Tools read and return times in the user's time zone. If the user has none, they use the workspace's default, then UTC. Times sent without an offset are read in the time zone of the person the entry belongs to. Time entry durations are decimal hours, so `1.5` is 1 hour 30 minutes; a field named in minutes is in minutes.
