calvana/Docs
Docs pages

Claude and MCP

Last updated: November 20, 2026

Calvana runs a remote MCP server, so Claude and other AI assistants can read a workspace's bookings and prospects, find open times, move or cancel calls, and add notes to prospects. An assistant signed in with OAuth acts as the member who connected it and can do no more than that member can in the app.

The server

The MCP server is a thin layer over /v1. Each tool call runs one /v1 operation with the caller's own credential, so scopes, roles, rate limits, idempotency and Team Activity work exactly as they do on /v1.

Server URL
https://api.calvana.com/mcp
Transport
Streamable HTTP. Each request is one POST holding a JSON-RPC message, and the answer is JSON. The server opens no event stream and keeps no session.
Credential
An OAuth access token from the sign-in flow, minted for https://api.calvana.com/mcp. Or an API key. Either goes in the Authorization header as Bearer <token>, and the server reads no other header or parameter for it.
Sign-in discovery
https://api.calvana.com/.well-known/oauth-protected-resource/mcp (RFC 9728) names the authorization server, https://api.calvana.com
Workspace
Must be in the API beta. Otherwise a request with a valid credential answers 403 api_access_not_enabled.

Most people connect with OAuth, which Calvana runs only for AI assistants on this server. The client registers itself, opens Calvana's consent page, and the member signs in, picks a workspace and clicks Allow. The client asks for its token with resource=https://api.calvana.com/mcp, and the token works here and nowhere else. How sign-in works has the whole flow.

Use an API key for a script or a shared service account, where nobody signs in. The assistant then has the key's scopes, the key's IP allowlist applies, and Team Activity names the key instead of a member.

Discovery document
GET https://api.calvana.com/.well-known/oauth-protected-resource/mcp

{
  "resource": "https://api.calvana.com/mcp",
  "authorization_servers": ["https://api.calvana.com"],
  "scopes_supported": [
    "calendars:read", "availability:read", "bookings:read",
    "bookings:write", "prospects:read", "prospects:write"
  ],
  "bearer_methods_supported": ["header"],
  "resource_documentation": "https://calvana.com/docs/api/mcp"
}

To check a key before you set up a client, list the tools with curl. A 200 answer that lists the eight tools means the key works and its workspace is in the beta.

Check a key
curl https://api.calvana.com/mcp \
  -H "Authorization: Bearer calvana_live_4kGq0x..." \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'

claude.ai and Claude Desktop

On a Free, Pro, Max or Ultra plan, you add Calvana to your own Claude account. Free allows one custom connector.

  1. In Claude, go to Customize > Connectors, select Add, then Add custom connector.
  2. Enter the name Calvana and the server URL https://api.calvana.com/mcp, then click Continue.
  3. Under Authentication, choose Sign in now. Under OAuth client, choose Register automatically. If the dialog shows every setting on one screen, OAuth client is under Advanced. Calvana registers clients through Dynamic Client Registration (RFC 7591) and doesn't read Client ID Metadata Documents. With Use Claude's published identity, the consent page says "This app isn't registered with Calvana."
  4. Click Add, then Connect. Claude opens Calvana's consent page.
  5. Sign in to Calvana, pick the workspace and click Allow. Claude asks for the six scopes its tools use, so the page lists the tools your role lets it use and the ones it leaves out. It also says it will send you back to claude.ai, the host of Claude's redirect URI.
  6. In a chat, open the + menu and turn Calvana on under Connectors.

On a Team or Enterprise plan, an Owner adds the connector for the organization. They go to Organization settings > Connectors, select Add, then Custom, choose Web if asked, and enter the same name, URL and authentication. Each member then finds Calvana under Customize > Connectors and clicks Connect, which runs steps 5 and 6 with their own Calvana account.

Claude Desktop and the Claude mobile apps use the connectors of the Claude account they are signed in to, so once you add Calvana on claude.ai it is there too. Anthropic's servers call Calvana in every case, never your computer, so you don't edit claude_desktop_config.json, which only runs local servers.

If your Add custom connector dialog has a Request headers section, a beta Anthropic offers to some organizations, you can connect with an API key instead. Choose No sign-in, add the header authorization with the value Bearer calvana_live_..., and click Add. Everyone who uses that connector then acts as the key, and Team Activity names the key, not the member. If the key has an IP allowlist, add 160.79.104.0/21, the range Anthropic's servers call from.

Claude Code

Add the server from your shell:

Add Calvana to Claude Code
claude mcp add --transport http calvana https://api.calvana.com/mcp

Then run /mcp inside Claude Code, pick calvana, and finish signing in in the browser it opens. claude mcp login calvana runs the same sign-in from your shell. Claude Code registers itself with a redirect URI on localhost and a free port, which Calvana accepts for any port, so you don't need --callback-port. The server is local to the current project unless you add --scope user, which makes it available in every project:

Every project
claude mcp add --transport http calvana --scope user https://api.calvana.com/mcp

To act as an API key instead of signing in, send the key in a header:

With an API key
claude mcp add --transport http calvana https://api.calvana.com/mcp \
  --header "Authorization: Bearer calvana_live_4kGq0x..."

claude mcp remove calvana deletes Claude Code's copy of the tokens but doesn't revoke them. Run claude mcp logout calvana first, which revokes them at Calvana's revocation endpoint. Calvana ends the grant when the refresh token is revoked, and AI assistants on Settings > Developers shows whether the grant is gone.

Tools

tools/list answers these eight tools in one page. Each runs the /v1 operation beside it and needs that operation's scope. The reference documents every field a tool returns.

ToolWhat it does/v1 operationScopeChanges data
list_bookings
List bookings
Lists calls by start time. Filters by status (scheduled or cancelled), start_after, start_before and prospect_id.GET /v1/bookingsbookings:readNo
get_booking
Get a booking
Reads one call by booking_id: its time, host, prospect, answers, confirmation and outcome.GET /v1/bookings/{booking_id}bookings:readNo
list_calendars
List calendars
Lists the workspace's calendars with their hosts and length. Filters by active.GET /v1/calendarscalendars:readNo
find_open_times
Find open times
Lists the times a prospect could book on calendar_id, by day, from start_date to end_date in an IANA timezone. One call covers at most 14 days.GET /v1/calendars/{calendar_id}/availabilityavailability:readNo
reschedule_booking
Reschedule a booking
Moves a call to start_at, and to host_member_id when given. The prospect gets the same message as when a manager moves the call.POST /v1/bookings/{booking_id}/reschedulebookings:writeYes, and tells the prospect
cancel_booking
Cancel a booking
Cancels a call as its host, with an optional reason of up to 500 characters. The prospect is told and the time frees up.POST /v1/bookings/{booking_id}/cancelbookings:writeYes, and tells the prospect
find_prospect
Find a prospect
Looks a prospect up by exact email or E.164 phone.GET /v1/prospectsprospects:readNo
add_note
Add a note
Adds a note of up to 10,000 characters to prospect_id. The app shows it beside the team's notes.POST /v1/prospects/{prospect_id}/notesprospects:writeYes, adds only
  • An argument named in the path, such as booking_id, fills that one path segment. Every other argument is the operation's query parameter for a read tool, or its body field for a changing one.
  • list_bookings, list_calendars and find_prospect take limit, from 1 to 100, and cursor. Their result holds next_cursor. Pass it as cursor, with the same filters, for the next page. It is null on the last page.
  • reschedule_booking, cancel_booking and add_note take an optional idempotency_key of 1 to 255 printable ASCII characters, which the server sends as the Idempotency-Key header. The same key and arguments within 24 hours answer the first result again and change nothing. The same key with other arguments is a tool error idempotency_key_reused, and a key outside those bounds is a tool error invalid_request that changes nothing. Without a key, a retried add_note adds a second note.
  • Each tool's annotations say what it does. readOnlyHint is true on the five read tools. reschedule_booking and cancel_booking have destructiveHint and openWorldHint true, since they change a booking and message the prospect. add_note only adds, so both are false. No tool claims idempotentHint, since a retry without a key repeats the change.
  • The tools run beta operations: the server sends Calvana-Beta: v1-phase-2, v1-phase-3 on every call. A tool's result can change shape with the 14 days' notice a beta gives.
A tool call
POST https://api.calvana.com/mcp
Authorization: Bearer calvana_oat_UcnRU8RgJKeMr6aS...
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-11-25

{
  "jsonrpc": "2.0",
  "id": 7,
  "method": "tools/call",
  "params": {
    "name": "add_note",
    "arguments": {
      "prospect_id": "pro_01jdz3x7k2m9q4r8t6v0w2y5ab",
      "content": "Asked for pricing for 12 seats. Follow up on Friday.",
      "idempotency_key": "claude-note-7f3a91"
    }
  }
}
Its result
{
  "jsonrpc": "2.0",
  "id": 7,
  "result": {
    "content": [
      { "type": "text", "text": "{\"id\": \"not_01jdz4b2c8e6g0h3k5m7p9r1st\", \"object\": \"note\", ...}" }
    ],
    "structuredContent": {
      "id": "not_01jdz4b2c8e6g0h3k5m7p9r1st",
      "object": "note",
      "prospect_id": "pro_01jdz3x7k2m9q4r8t6v0w2y5ab",
      "content": "Asked for pricing for 12 seats. Follow up on Friday.",
      "source": "api",
      "author": { "id": "mem_01jcq8w2e4r6t8y0a2s4d6f8g0", "name": "Casey Rivera", "email": "casey@acme.example" },
      "created_at": "2026-11-20T14:05:11.000Z",
      "updated_at": "2026-11-20T14:05:11.000Z"
    },
    "isError": false
  }
}

Results and errors

A tool result holds the /v1 answer twice: as JSON text in content[0].text, and as an object in structuredContent. isError is false when /v1 answered 2xx.

  • When /v1 refuses the call, the result has isError true and the /v1 problem document in structuredContent. Its request_id equals the X-Request-Id header of the /mcp answer. The HTTP status is 200, as for every tool result.
  • Arguments that break the tool's inputSchema never reach /v1. A missing required argument, a wrong type, a value outside its enum or range, or an argument the schema doesn't list is a tool error with code invalid_request and one errors entry per argument.
  • A tool call over its /v1 rate limit is a tool error with code rate_limited. The result carries no Retry-After header, so read the wait from detail, such as "Retry in 12 s."
  • A crash inside the /v1 view is a tool error with code internal_error, and a database statement past 5 seconds one with request_timeout. Both carry the request ID to quote to support.
  • A tool name the server doesn't have, or arguments that isn't an object, is a JSON-RPC error -32602. A method it doesn't have is -32601. Both answer HTTP 200. The server offers no resources or prompts, so resources/list and prompts/list answer -32601 too.
  • A failure in the MCP layer itself, outside any /v1 view, is a JSON-RPC error -32603 with id null. While Calvana is briefly unavailable it answers 503 with Retry-After and error.data.code unavailable. Anything else answers 500 with error.data.code internal_error and the request ID in error.data.request_id.
A refused call
{
  "jsonrpc": "2.0",
  "id": 8,
  "result": {
    "content": [
      { "type": "text", "text": "{\"type\": \"https://calvana.com/docs/api/errors#insufficient_scope\", ...}" }
    ],
    "structuredContent": {
      "type": "https://calvana.com/docs/api/errors#insufficient_scope",
      "title": "Insufficient scope",
      "status": 403,
      "code": "insufficient_scope",
      "detail": "The assistant was never granted the bookings:write scope. The member can approve it by connecting the assistant again.",
      "request_id": "5f0c2a9e-7d41-4b8a-9c3e-2a6b8d0f1e74",
      "errors": []
    },
    "isError": true
  }
}
structuredContent for bad arguments, abridged
{
  "code": "invalid_request",
  "detail": "The arguments don't match the tool's inputSchema.",
  "errors": [
    { "pointer": "/limit", "code": "less_than_equal", "detail": "Input should be less than or equal to 100" }
  ]
}

What an assistant may do

An assistant connected with OAuth acts as the member who approved it. It can do no more than the scopes that member approved, cut to what the member's role allows.

  • A grant holds only the scopes the tools use: calendars:read, availability:read, bookings:read, bookings:write, prospects:read, prospects:write. The /mcp 401 names them in its scope parameter and the discovery documents list them in scopes_supported, so Claude and Claude Code ask for all six. When the authorization request names no scope, the client asks for all six too. The member's role then cuts that list like any other. Any other scope answers invalid_scope.
  • The grant keeps only the scopes the member's role allows, and Calvana checks the role again on every call. The table below lists what each role can give. A demotion applies on the next call. A promotion adds nothing until the member connects the assistant again. A member who leaves the workspace takes their assistant with them, and every call answers 401.
  • A Closer can't read bookings or prospects in the app, so a Closer's assistant gets nothing. Calvana refuses the approval, since the role gives the assistant none of the scopes it asked for.
  • Each grant has its own rate limits, the same as an API key's: 300 reads and 60 writes a minute, under the workspace's ceiling. Other keys and assistants in the workspace don't share them. A tool call spends what its /v1 call spends.
  • Team Activity names the member and the assistant for every change, such as "Casey, via Claude". The row keeps the client's client_id in metadata.client_id and the grant's ID in metadata.grant_id. A note added through add_note names the member as its author. With an API key, author is null.
  • Calvana's request log files each /mcp request under the key or grant that sent it. For a read tool call it keeps no body, as for a /v1 GET.
RoleScopes it can give an assistant
Ownercalendars:read, availability:read, bookings:read, bookings:write, prospects:read, prospects:write
Admincalendars:read, availability:read, bookings:read, bookings:write, prospects:read, prospects:write
Managercalendars:read, availability:read, bookings:read, bookings:write, prospects:read, prospects:write
Viewercalendars:read, availability:read, bookings:read, prospects:read
Settercalendars:read, availability:read, bookings:read, prospects:read
CloserNone. Calvana refuses the approval.

Claude and Claude Code register themselves, so they pick their own name. The consent page says every assistant registered itself and shows the host it sends you back to: claude.ai for Claude, localhost for Claude Code. Approve only an assistant whose host you expect.

Tool results hold text that prospects wrote: names, form answers, notes and cancel reasons. That text can carry instructions aimed at the assistant. The server's instructions and every such tool tell the model to treat it as data, but keep your client's confirmation on for reschedule_booking, cancel_booking and add_note rather than choosing Always allow.

Cutting an assistant off

An Owner or Admin opens Settings > Developers and, under AI assistants, clicks Revoke beside the assistant. Its tokens stop at once, and Team Activity adds an App disconnected row. Offboarding a member revokes their assistants the same way.

  • Approving an assistant adds an App connected row to Team Activity naming the assistant, its client_id, the member, the grant and the scopes. Approving it again with other scopes lists the change.
  • Every way a grant ends adds an App disconnected row naming who ended it: an Owner or Admin under AI assistants, the assistant revoking its refresh token, offboarding, or System. System ends a grant when a code or refresh token is used twice, and when Calvana deletes the client.

Removing the connector in Claude stops Claude using it, but the grant ends only if Claude revokes its refresh token. Check AI assistants and revoke the grant there to be sure it is gone.

Once its grant is revoked, its token runs out or its member leaves, every request answers 401. The resource_metadata in WWW-Authenticate points at /.well-known/oauth-protected-resource/mcp, the document that names Calvana's authorization server, and scope names the six MCP scopes. A client reads them to sign the member in again. error="invalid_token" means a Bearer token was sent and refused, and the client should refresh it or start the sign-in over. Without it, the request held no Bearer token at all.

401
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer realm="calvana", resource_metadata="https://api.calvana.com/.well-known/oauth-protected-resource/mcp", scope="calendars:read availability:read bookings:read bookings:write prospects:read prospects:write", error="invalid_token"
Content-Type: application/json
Cache-Control: no-store

{"error": "Sign in with OAuth: see the WWW-Authenticate header."}

How sign-in works

Calvana runs an OAuth 2.1 authorization server only so MCP clients can connect to this server. Claude and Claude Code run the flow on their own, so read on only to build or debug an MCP client. A member approves the client once, and it gets tokens that act as that member in one workspace.

Grants
authorization_code with PKCE (S256), and refresh_token. No implicit, password or client credentials grant.
Authorize
GET https://app.calvana.com/oauth/authorize, the consent page where the member signs in and approves
Token
POST https://api.calvana.com/oauth/token
Revoke
POST https://api.calvana.com/oauth/revoke (RFC 7009)
Register
POST https://api.calvana.com/oauth/register (RFC 7591), where every client registers itself
Discovery
https://api.calvana.com/.well-known/oauth-authorization-server (RFC 8414) and https://api.calvana.com/.well-known/oauth-protected-resource/mcp (RFC 9728). /v1 has no protected resource document.
Issuer
https://api.calvana.com

Every token is for this server. Send resource=https://api.calvana.com/mcp (RFC 8707) on the authorization request, or leave resource out, which means the same. One trailing slash is allowed. Any other value, the API base URL https://api.calvana.com and https://api.calvana.com/v1 included, gets invalid_target. /v1 takes API keys only and answers an OAuth token with 401 invalid_credentials.

Tokens are opaque strings with a fixed prefix: access tokens start calvana_oat_, refresh tokens calvana_ort_ and authorization codes calvana_oac_. Store tokens as secrets: encrypted at rest, and never in a URL or a log.

The flow

  1. Register the client once, if it has no client ID yet.
  2. Make a PKCE pair. The code_verifier is 43 to 128 characters from A-Z a-z 0-9 - . _ ~. The code_challenge is the base64url SHA-256 of the verifier, without padding.
  3. Send the member's browser to the consent page with these parameters, each once:
Authorization request
https://app.calvana.com/oauth/authorize?response_type=code&client_id=mcp_oq8kzhigXnDL9mKt0Bsn4eAZ&redirect_uri=http%3A%2F%2F127.0.0.1%3A33418%2Fcallback&code_challenge=h6D2Yj_hU6eRAUjgW494i9H51V9CuGR8PH2Ivkw8Na4&code_challenge_method=S256&scope=bookings%3Aread%20prospects%3Aread&state=f3Kp8QzR1vXy&resource=https%3A%2F%2Fapi.calvana.com%2Fmcp
ParameterValue
response_typecode
client_idThe client ID registration answered.
redirect_uriOne of the client's redirect URIs, character for character. An http URI on localhost, 127.0.0.1 or [::1] may name any port.
code_challengeThe PKCE challenge: 43 base64url characters.
code_challenge_methodS256
scopeOptional. MCP scopes separated by spaces, %20 in the URL. Without it the client asks for all six.
stateOptional, but send it: an unguessable value you check when the browser comes back.
resourceOptional. https://api.calvana.com/mcp, the only value Calvana takes, and the one it uses when you leave it out.
  1. The member signs in, picks one of their workspaces, sees which tools the client asks for and which their role lets it use, and clicks Allow or Deny. Every request waits for that choice, even for a client already connected. The page refuses a workspace outside the API beta, and it won't load inside a frame.
  2. Calvana sends the browser back to redirect_uri. The URI keeps its own query, then gets code, state exactly as you sent it (left out if you sent none) and iss, which equals the discovery document's issuer. When the member clicks Deny, error=access_denied takes the place of code.
Back to the client
http://127.0.0.1:33418/callback?code=calvana_oac_HF0yHW7Gkp1xdwov...&state=f3Kp8QzR1vXy&iss=https%3A%2F%2Fapi.calvana.com
Denied
http://127.0.0.1:33418/callback?error=access_denied&state=f3Kp8QzR1vXy&iss=https%3A%2F%2Fapi.calvana.com
  1. Before you redeem the code, check that state matches the one you sent and that iss is https://api.calvana.com. Drop the code if either differs: someone else started that flow.
  2. Trade the code at the token endpoint within 10 minutes. Send the same redirect_uri, character for character, and the code_verifier whose hash is the challenge.
Token request
curl https://api.calvana.com/oauth/token \
  -d grant_type=authorization_code \
  -d client_id=mcp_oq8kzhigXnDL9mKt0Bsn4eAZ \
  -d code=calvana_oac_HF0yHW7Gkp1xdwov... \
  --data-urlencode redirect_uri=http://127.0.0.1:33418/callback \
  -d code_verifier=kq9TzW3vY_8bLr2N-xHcJ5mEaPd0fUoG7sQiV4yBnK1tXwZe6
Token answer
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache

{
  "access_token": "calvana_oat_UcnRU8RgJKeMr6aS...",
  "token_type": "Bearer",
  "expires_in": 3600,
  "refresh_token": "calvana_ort_NCaNk0HQC4x52Nsy...",
  "scope": "bookings:read prospects:read"
}

scope in the answer lists what the tokens may use now: the scopes the member approved that their role allows. A code works once, and only for the client it was issued to. A second trade answers invalid_grant and revokes the grant, so the tokens from the first trade stop too.

A broken request never reaches the client. The consent page shows an error instead of sending the browser back for an unknown client_id, a redirect_uri the client didn't register or one holding a fragment or a backslash, a scope that isn't an MCP scope, another resource, a missing or malformed code_challenge, a response_type other than code or a code_challenge_method other than S256, and a link that repeats a parameter.

Tokens, refresh and revoke

Send the access token as Authorization: Bearer calvana_oat_... on /mcp, the only place it works. It lasts 1 hour, the expires_in of 3600 seconds in the token answer.

  • A token can do what its scopes allow and its member's role allows now. Calvana checks both on every call.
  • A token whose member left the workspace, or whose user account was deactivated, answers 401 with error="invalid_token".
  • The workspace must be in the API beta. Otherwise a token answers 403 api_access_not_enabled. OAuth tokens have no IP allowlist.

Refreshing

Refresh request
curl https://api.calvana.com/oauth/token \
  -d grant_type=refresh_token \
  -d client_id=mcp_oq8kzhigXnDL9mKt0Bsn4eAZ \
  -d refresh_token=calvana_ort_NCaNk0HQC4x52Nsy...
  • A refresh answers a new access token and a new refresh token, in the same shape as the first trade. Keep the new refresh token: the old one is spent.
  • A refresh token lasts 60 days from the refresh that minted it, so a client used at least every 60 days stays connected.
  • For 60 seconds after a refresh, the previous refresh token answers the same new pair, so two refreshes in parallel agree. After that, Calvana treats a reuse as a stolen token and revokes the whole grant.
  • A refresh for a member who has left the workspace answers invalid_grant, as does one for a revoked grant.
  • A token request may send resource again, but only as https://api.calvana.com/mcp, one trailing slash aside. Any other answers invalid_target, and the code stays unused or the refresh token unspent.

Revoking

Revoke request
curl https://api.calvana.com/oauth/revoke \
  -d client_id=mcp_oq8kzhigXnDL9mKt0Bsn4eAZ \
  -d token=calvana_ort_yHYCi-ncMEAitKVl...
  • Revoking a refresh token at /oauth/revoke ends the whole grant. Every token of the grant stops, and Team Activity records it.
  • Revoking an access token ends only that token. The refresh token still works.
  • The endpoint answers 200 with {} for a token it doesn't know, an expired one, or one already revoked, so the answer says nothing about the token. It ignores token_type_hint.

Request rules

  • Every client is public, the method the discovery document calls none: it sends client_id alone and proves itself with PKCE. A client_secret, a client_assertion, or any Authorization: Basic header, answers 401 invalid_client.
  • Token and revoke requests take an application/x-www-form-urlencoded body in UTF-8. A JSON body, a repeated parameter, a NUL byte in any parameter, or a body over 1 MB answers 400 invalid_request. Leave out a parameter you don't send. An empty value answers invalid_request, except an empty client_id, which counts as left out.
  • grant_type is compared exactly, with no spaces trimmed. Any value but authorization_code or refresh_token answers unsupported_grant_type.
  • Every answer to a POST to the token, revoke and register endpoints carries Cache-Control: no-store and Pragma: no-cache. Any other method answers 405. A refusal holds error and error_description and nothing else.
  • These three endpoints send no CORS headers, so call them from the client's own process, never a web page. The discovery documents allow any origin.
  • Each has its own rate limits, listed under OAuth endpoints.
A refusal
HTTP/1.1 400 Bad Request
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache

{
  "error": "invalid_grant",
  "error_description": "The code is unknown, used or expired."
}

Client registration

Every MCP client registers itself with Dynamic Client Registration (RFC 7591). Calvana registers no client by hand and gives out no client secret.

Register
curl https://api.calvana.com/oauth/register \
  -H "Content-Type: application/json" \
  -d '{
    "client_name": "Acme assistant",
    "client_uri": "https://acme.example",
    "redirect_uris": ["http://127.0.0.1:33418/callback"],
    "token_endpoint_auth_method": "none"
  }'
Registered
HTTP/1.1 201 Created

{
  "client_id": "mcp_oq8kzhigXnDL9mKt0Bsn4eAZ",
  "client_name": "Acme assistant",
  "redirect_uris": ["http://127.0.0.1:33418/callback"],
  "grant_types": ["authorization_code", "refresh_token"],
  "response_types": ["code"],
  "token_endpoint_auth_method": "none",
  "client_id_issued_at": 1795186800
}
  • Each redirect URI must be https with a host, or http on localhost, 127.0.0.1 or ::1 (written [::1] in a URL), with no fragment, no user name or password, and no backslash. Anything else answers 400 invalid_redirect_uri, and so does a list with no URI.
  • The client is public: send token_endpoint_auth_method none, or leave it out. Any other method answers 400 invalid_client_metadata. The client gets no secret, sends client_id alone, and must use PKCE.
  • client_name is cut to 120 characters, and is MCP client when left out. client_uri shows on the consent page as the assistant's website. Calvana ignores every other field.
  • The body is JSON. One Calvana can't read, or one holding a NUL byte, answers 400 invalid_client_metadata.

A client picks its own name, so any client can call itself Claude. The consent page says the assistant registered itself, which means Calvana hasn't reviewed it, and shows the host it will send you back to. Approve only an assistant whose host you expect, such as claude.ai for Claude.

Sign-in errors

The token, revoke and register endpoints answer errors as RFC 6749 does: error and error_description, never the /v1 problem document. The consent page shows its own errors to the member instead of redirecting, apart from access_denied.

ErrorStatusWhenWhat to do
access_deniedRedirectThe redirect back. The member clicked Deny.Tell the user the connection was refused. Start the flow again only when they ask.
invalid_request400Token, revoke, and the consent page. On the consent page, a redirect_uri the client didn't register, one that isn't https or loopback, or one holding a fragment or a backslash. At the token and revoke endpoints, a missing or empty grant_type, code, redirect_uri, code_verifier, refresh_token or token, an empty resource, a repeated parameter, a body that isn't a form, a NUL byte, or a body over 1 MB.Fix the request. Sending it again unchanged gets the same answer.
invalid_client401Token, revoke. An unknown client_id, a client_secret, a client_assertion, or any Authorization: Basic header, since every client is public. A client that sent Basic also gets WWW-Authenticate: Basic realm="calvana".Send the client_id registration answered, alone. Register again if Calvana doesn't know it.
invalid_grant400Token. The code is unknown, used, expired or another client's, its redirect_uri or code_verifier doesn't match, the refresh token is unknown, spent, revoked or expired, the grant was revoked, or its member left.Send the member through the authorization flow again. A reused code or refresh token also revoked the grant.
unsupported_grant_type400Token. grant_type is sent but isn't exactly authorization_code or refresh_token, such as client_credentials or one with a trailing space.Send one of the two.
invalid_scopeConsent pageThe consent page. scope names a value that isn't one of the six MCP scopes, such as webhooks:read. The page shows the error and doesn't send the browser back.Ask only for MCP scopes, or leave scope out to ask for all six.
invalid_target400Token, and the consent page. resource isn't https://api.calvana.com/mcp, such as the API base URL or /v1. At the token endpoint, a resource other than the one the code or refresh token was issued for.Send https://api.calvana.com/mcp, or leave resource out.
invalid_redirect_uri400Register. A redirect URI that isn't https with a host or http on a loopback address, or that holds a fragment, a user name or a backslash, or an empty redirect_uris list.Register https URIs, or loopback ones for a client on the user's machine.
invalid_client_metadata400Register. A body that isn't JSON metadata Calvana can read, such as one without redirect_uris, redirect_uris that isn't a list of strings, a token_endpoint_auth_method other than none, a NUL byte, or a body over 1 MB.Fix the JSON, and register the client as public.
slow_down429Token, revoke, register. Over a limit on the OAuth endpoints, with Retry-After in seconds.Wait Retry-After seconds, then send the request again.
temporarily_unavailable503Token, revoke, register. Calvana can't reach the store that holds its rate limits, with Retry-After in seconds. Nothing was minted, revoked or registered.Wait Retry-After seconds, then send the request again.

Protocol

The server speaks MCP protocol versions 2025-11-25, 2025-06-18 and 2025-03-26. initialize answers the version the client asked for when it is one of those, else 2025-11-25, so a client that asks for a newer version can carry on with that one. It offers the tools capability alone, with listChanged false.

  • Every request is a POST. The server keeps no session and sends no Mcp-Session-Id, so GET, which would open an event stream, and DELETE, which would end a session, answer 405 with Allow: POST.
  • After initialize, send the agreed version in MCP-Protocol-Version. A version the server doesn't speak, a newer one included, answers 400 with -32600, so start again with initialize.
  • Any request with an Origin header, empty or null included, answers 403 before the credential is read. Browsers send that header, and refusing it stops a web page reaching the server through DNS rebinding. /mcp sends no CORS headers.
  • Under 2025-03-26, or with no MCP-Protocol-Version header, a body may be a batch: an array answered by an array, one response per request, or 202 when it holds only notifications. Under 2025-06-18 and 2025-11-25, which have no batches, an array answers 400 with -32600. So do an empty batch and a batch holding initialize under any version.
  • JSON-RPC is read strictly. jsonrpc, method and a tool's name match only character for character, a request's id comes back exactly as sent, and _meta changes nothing. tools/list sent with a cursor answers -32602.
  • A message whose jsonrpc isn't "2.0", whose method isn't a string, whose params isn't an object, or whose id is null, a boolean, a decimal such as 1.0 or an object, answers 400 with -32600. So does a posted response, since the server sends no requests. In a batch that also holds a request, such a message gets its own -32600 entry and the requests run.
  • Every answer carries Cache-Control: no-store, since it may hold a prospect's personal data.
StatusWhen
200Every request message: a JSON-RPC result, a tool result with isError true or false, or a JSON-RPC error such as -32601 or -32602
202A notification, a message without an id. It answers no body and runs nothing.
400A JSON-RPC error with id null: -32700 for a body that isn't JSON, -32600 for one that isn't a JSON-RPC message, names a member twice, holds a batch its protocol version doesn't allow, or sends an MCP-Protocol-Version other than the three above
401No credential, or a refused one. WWW-Authenticate names /.well-known/oauth-protected-resource/mcp and the MCP scopes.
403An Origin header, checked before the credential. Also api_access_not_enabled for a workspace outside the API beta, and ip_not_allowed for a key called from outside its allowlist.
405GET, DELETE and every other method but POST, with Allow: POST
406, 413, 415An Accept header that rules out JSON, a body over 1 MB, or a Content-Type other than application/json. Each is a JSON-RPC error -32600 with id null.
429A message that runs no tool, over the credential's api_read budget, as a JSON-RPC error -32000 whose data.code is rate_limited. Also a failed lookup after 30 in a minute from one IP with the same key or token prefix, as plain JSON with code rate_limited and Retry-After. See Rate limits.
500, 503A failure in the MCP layer itself, as a JSON-RPC error -32603