Skip to docs content

MCP server

The same seventeen reads as Model Context Protocol tools under an API key, and, for an app you sign in with 42six, nine tools that preview and apply changes.

Endpoint

MCP URL
https://auth.42six.ai/functions/v1/mcp
  • Streamable HTTP, POST only, one JSON-RPC 2.0 message per request, protocol version 2025-06-18. initialize always answers with that version.
  • Authorization: Bearer ftx_YOUR_KEY on every request. The key decides which workspace the tools read.
  • Stateless: no session id is issued or required.
  • Seventeen read tools under a key, listed on the Tool reference pages. A key never changes your books over MCP. No resources, no prompts.

A key works in clients that let you set a request header. ChatGPT, Claude.ai and other apps that sign in connect with OAuth instead of a key; see Signing in with 42six.

Signing in with 42six

MCP URL
https://42six.ai/mcp
  • An app that supports MCP sign-in (OAuth) connects to this address with no key: it sends you to 42six to sign in and approve it.
  • You choose which books it reads. An app that asks to make changes may make them on those books once you approve.
  • An app that may make changes also gets nine change tools. Every change is a preview you confirm before it is applied; see Changes: preview and apply.
  • Disconnect the app, or see what it can do, under Settings › Connected apps.

OAuth discovery

Sign-in uses 42six's own OAuth 2.1 server: the authorization code flow with PKCE, for public clients only. Most MCP clients do these steps for you. The resource is https://42six.ai/mcp and the authorization server is https://42six.ai.

  • Protected-resource metadata (RFC 9728): https://42six.ai/.well-known/oauth-protected-resource/mcp, also served at https://42six.ai/.well-known/oauth-protected-resource. It names the resource, the authorization server and the scopes.
  • Authorization-server metadata (RFC 8414): https://42six.ai/.well-known/oauth-authorization-server. It names the authorization endpoint https://42six.ai/oauth/authorize, the token endpoint https://42six.ai/oauth/token and the registration endpoint https://42six.ai/oauth/register.
  • A request to the MCP address without a valid token answers 401 with a WWW-Authenticate header that points to the protected-resource metadata.
  • A step-by-step guide for agents is at https://42six.ai/auth.md.

Registration and authorization

  • Register with a POST of JSON to https://42six.ai/oauth/register (RFC 7591). The fields read are redirect_uris, client_name, token_endpoint_auth_method, grant_types and response_types; anything else is ignored.
  • Clients are public: token_endpoint_auth_method is none. A token request that carries an Authorization header answers 401 invalid_client.
  • Authorize with response_type=code and PKCE: code_challenge_method=S256 and a code_challenge. No other flow and no other challenge method is accepted.
  • resource is optional. When sent, it must be https://42six.ai/mcp; anything else answers invalid_target.
  • Send token requests as application/x-www-form-urlencoded. The grants are authorization_code and refresh_token.

Scopes

  • books:read: read the books the person approved. Every token has it.
  • books:write: propose and apply changes, only on the books the person approved for an app that asked for changes.
  • Ask for books:read, optionally with books:write. A scope 42six does not issue answers invalid_scope; it is never dropped quietly. A request with no scope asks for both.
  • The person approves the books and the scopes, never more than the app asked for.
  • A token without books:write that calls a change tool answers 403 insufficient_scope.

Tokens

  • An authorization code lasts 10 minutes and works once.
  • An access token lasts 1 hour (expires_in 3600). Send it as Authorization: Bearer to https://42six.ai/mcp.
  • A refresh token lasts 30 days and works once: each refresh returns a new access token and a new refresh token. Sending a used or revoked refresh token again ends the whole sign-in, and the app has to sign in again.
  • One sign-in lasts at most 90 days from its first token. No refresh token outlives it; after that the app signs in again.
  • A refresh may narrow the scopes, never widen them. A refresh is refused when the person can no longer reach one of the approved books.
  • Token answers are never cached (Cache-Control: no-store). An error is JSON, { "error": "...", "error_description": "..." }. Too many requests answer 429 with Retry-After: 60; when 42six is busy, the answer is 503 with Retry-After: 2.
  • Tokens work only on the MCP server, never on the REST API or the app, and 42six stores only their digests.

Disconnecting an app

There is no OAuth revocation endpoint. The person disconnects the app under Settings › Connected apps. That ends, at once, every book the app was given, every token it holds and any sign-in it has not finished. Its next call answers 401, and a plan it previewed earlier is refused. To use it again, connect it again.

Claude Code

Shell
claude mcp add --transport http fortytwosix https://auth.42six.ai/functions/v1/mcp \
  --header "Authorization: Bearer ftx_YOUR_KEY"

Cursor

Add the server to ~/.cursor/mcp.json, or .cursor/mcp.json in a project:

JSON
{
  "mcpServers": {
    "fortytwosix": {
      "url": "https://auth.42six.ai/functions/v1/mcp",
      "headers": { "Authorization": "Bearer ftx_YOUR_KEY" }
    }
  }
}

VS Code

Add the server to .vscode/mcp.json. VS Code asks for the key once and stores it, so it never sits in the file:

JSON
{
  "inputs": [
    { "type": "promptString", "id": "ftx-key", "description": "42six API key", "password": true }
  ],
  "servers": {
    "fortytwosix": {
      "type": "http",
      "url": "https://auth.42six.ai/functions/v1/mcp",
      "headers": { "Authorization": "Bearer ${input:ftx-key}" }
    }
  }
}

Other clients

Any MCP client that supports Streamable HTTP and a custom header works: point it at the MCP URL and send Authorization: Bearer ftx_YOUR_KEY.