> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Model Context Protocol (MCP)

> Connect Claude Desktop, ChatGPT, and custom AI agents securely to your Posttu workspace using our first-party Model Context Protocol (MCP) server.

The **Model Context Protocol (MCP)** is an open standard that enables AI models and assistants to interact securely with your workspace tools.

Posttu provides a secure, first-party MCP server built directly into your account at `/api/v1/mcp`. By delegating access, you can equip LLMs and AI agents with the ability to schedule posts, manage your unified inbox, monitor workflows, and operate your connected platform accounts on your behalf.

***

## Authentication & Connection Flow

Posttu supports two authentication methods for connecting external clients and AI assistants to `/api/v1/mcp`:

1. **Developer API Keys (Recommended for Desktop & IDEs)**: Static credentials generated from your dashboard. Ideal for Claude Desktop, Cursor, Zed, CLI tools, scripts, and server-to-server workflows.
2. **OAuth 2.1 with Dynamic Discovery (Recommended for Autonomous AI Platforms)**: RFC 9728 & RFC 8414 compliant authentication with PKCE. Ideal for multi-tenant AI agents, ChatGPT custom GPTs, Claude.ai connectors, and automated client onboarding.

> [tab] Developer API Key (Desktop & IDEs)
>
> The fastest way to connect Claude Desktop, Cursor, Zed, or custom scripts is using a workspace Developer API Key:
>
> **1. 1. Generate an API Key**
>
> Navigate to **Dashboard → Settings → API Keys** and click **Create New Key**. Choose an expiration window and assign the required scopes (such as `posts:write`, `inbox:read`, or full workspace access). Copy your secret key.
>
> **2. 2. Add to Client Configuration**
>
> Configure your MCP client with the Posttu endpoint and pass the key in the `Authorization` header:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "posttu": {
>       "url": "https://posttu.com/api/v1/mcp",
>       "headers": {
>         "Authorization": "Bearer YOUR_POSTTU_API_KEY"
>       }
>     }
>   }
> }
> ```
>
> **3. 3. Execute MCP Tools**
>
> The client initiates a connection to `https://posttu.com/api/v1/mcp`. All tool requests are authenticated directly against your organization without requiring browser redirects or token refresh handshakes.

> [tab] OAuth 2.1 & OIDC (AI Agent Platforms)
>
> For automated agent platforms and multi-tenant services, Posttu implements standard **OAuth 2.1** with RFC 9728 discovery and PKCE:
>
> **1. 1. Initial Discovery Handshake (RFC 9728)**
>
> The MCP client initiates a request to the MCP server endpoint without credentials:
>
> ```http theme={null}
> POST https://posttu.com/api/v1/mcp
> ```
>
> The server responds with `401 Unauthorized` containing the Protected Resource Metadata pointer:
>
> ```http theme={null}
> HTTP/1.1 401 Unauthorized
> WWW-Authenticate: Bearer resource_metadata="https://posttu.com/.well-known/oauth-protected-resource/api/v1/mcp"
> ```
>
> **2. 2. Discover Authorization Metadata (RFC 8414 & RFC 7591)**
>
> The client fetches `/.well-known/oauth-protected-resource/api/v1/mcp` to locate the authorization server (`https://posttu.com/api/auth`), then queries `/.well-known/oauth-authorization-server/api/auth` (or `/api/auth/.well-known/openid-configuration`) to retrieve endpoints:
>
> * **Authorization Endpoint**: `https://posttu.com/api/auth/oauth2/authorize`
> * **Token Endpoint**: `https://posttu.com/api/auth/oauth2/token`
> * **Registration Endpoint**: `https://posttu.com/api/auth/oauth2/register` (Dynamic Client Registration)
>
> Clients without a pre-registered `client_id` dynamically register via RFC 7591 at the registration endpoint.
>
> **3. 3. User Consent & Workspace Selection (PKCE)**
>
> The client redirects the user to the authorization endpoint with PKCE parameters:
>
> ```text theme={null}
> GET https://posttu.com/api/auth/oauth2/authorize?response_type=code&client_id=<CLIENT_ID>&redirect_uri=<REDIRECT_URI>&scope=posts:read%20inbox:read&resource=https://posttu.com/api/v1/mcp&code_challenge=<CODE_CHALLENGE>&code_challenge_method=S256
> ```
>
> Once signed in, the user sees a consent screen displaying the active workspace logo and name, reviews requested scopes, and clicks **Authorize**.
>
> **4. 4. Token Exchange (PKCE)**
>
> Posttu redirects back to the client's `redirect_uri` with an authorization `code`. The client exchanges this code and its `code_verifier` for a JWT access token:
>
> ```bash theme={null}
> curl -X POST https://posttu.com/api/auth/oauth2/token \
>   -H "Content-Type: application/x-www-form-urlencoded" \
>   -d "grant_type=authorization_code" \
>   -d "client_id=<CLIENT_ID>" \
>   -d "code=<AUTHORIZATION_CODE>" \
>   -d "code_verifier=<CODE_VERIFIER>" \
>   -d "redirect_uri=<REDIRECT_URI>"
> ```
>
> Posttu issues a short-lived access token and refresh token:
>
> ```json theme={null}
> {
>   "access_token": "<jwt_access_token>",
>   "token_type": "Bearer",
>   "expires_in": 3600,
>   "refresh_token": "<refresh_token>",
>   "scope": "posts:read inbox:read"
> }
> ```
>
> **5. 5. Authenticated MCP Tool Invocations**
>
> The client passes the access token in the `Authorization` header on every request to `/api/v1/mcp`:
>
> ```http theme={null}
> POST https://posttu.com/api/v1/mcp
> Authorization: Bearer <jwt_access_token>
> ```

***

## Available AI Tools

Once authorized, your AI assistant inherits a suite of standard tools to manage your workspace. Every tool supports dual execution as both a first-party MCP tool and a REST API route under `/api/v1`:

### [Posts & Scheduling Tools](https://docs.posttu.com/mcp-reference/core/posts.md)

* **[`list_posts`](https://docs.posttu.com/mcp-reference/core/posts#list-posts)**: List drafts, scheduled posts, and items in the approval queue.
* **[`create_post`](https://docs.posttu.com/mcp-reference/core/posts#create-post)**: Draft new social posts, queue scheduled content, or submit items for post-approval.
* **[`update_post`](https://docs.posttu.com/mcp-reference/core/posts#update-post)**: Update the content, media, schedule time, or settings of an existing post.
* **[`bulk_upload_posts`](https://docs.posttu.com/mcp-reference/core/posts#bulk-upload-posts)**: Bulk create and schedule posts using either a JSON payload or a multipart CSV/JSON file upload.
* **[`approve_posts`](https://docs.posttu.com/mcp-reference/core/posts#approve-posts)**: Approve queued posts in your workspace's approval pool.
* **[`reject_posts`](https://docs.posttu.com/mcp-reference/core/posts#reject-posts)**: Reject queued posts and provide feedback/reasons.
* **[`move_post_to_draft`](https://docs.posttu.com/mcp-reference/core/posts#move-post-to-draft)**: Revert scheduled or approved posts back to drafts for editing.
* **[`generate_fansly_permissions`](https://docs.posttu.com/mcp-reference/core/posts#generate-fansly-permissions)**: Generate the complex permissions payload required by Fansly to apply paywalls, subscription gates, or tip constraints.

### [Calendar & Workspace Tools](https://docs.posttu.com/mcp-reference/core/calendar.md)

* **[`get_schedule`](https://docs.posttu.com/mcp-reference/core/calendar#get-schedule)**: Retrieve your structured calendar schedule grouped by day.
* **[`list_tags`](https://docs.posttu.com/mcp-reference/core/calendar#list-tags)**: List all tags defined in the workspace.
* **[`create_tag`](https://docs.posttu.com/mcp-reference/core/calendar#create-tag)**: Create a custom tag with specified hex colors.
* **[`tag_item`](https://docs.posttu.com/mcp-reference/core/calendar#tag-item)**: Attach a tag to a social post, inbox item, workflow, or media.

### [Unified Inbox Tools](https://docs.posttu.com/mcp-reference/core/inbox.md)

* **[`list_inbox`](https://docs.posttu.com/mcp-reference/core/inbox#list-inbox)**: List conversations, comments, direct messages, and mentions.
* **[`send_message`](https://docs.posttu.com/mcp-reference/core/inbox#send-message)**: Send a direct message inside a thread.
* **[`send_comment`](https://docs.posttu.com/mcp-reference/core/inbox#send-comment)**: Post a comment on a published post or reply to an existing comment.
* **[`mark_thread_read`](https://docs.posttu.com/mcp-reference/core/inbox#mark-thread-read)**: Mark conversations as read or unread.
* **[`update_thread_pin`](https://docs.posttu.com/mcp-reference/core/inbox#update-thread-pin)**: Pin or unpin threads in your inbox.
* **[`update_thread_priority`](https://docs.posttu.com/mcp-reference/core/inbox#update-thread-priority)**: Update the priority level of an inbox thread or item.
* **[`list_tracked_keywords`](https://docs.posttu.com/mcp-reference/core/inbox#list-tracked-keywords)**: Retrieve all monitored social listening keywords and match counts.
* **[`create_tracked_keyword`](https://docs.posttu.com/mcp-reference/core/inbox#create-tracked-keyword)**: Create a new social listening keyword monitor across 12 social platforms.
* **[`get_listening_analytics`](https://docs.posttu.com/mcp-reference/core/inbox#get-listening-analytics)**: Retrieve social listening metrics, mention trends, and sentiment distribution.

### [Automation Workflows Tools](https://docs.posttu.com/mcp-reference/core/workflows.md)

* **[`list_workflows`](https://docs.posttu.com/mcp-reference/core/workflows#list-workflows)**: List active and draft automation workflows with run statistics.
* **[`create_workflow`](https://docs.posttu.com/mcp-reference/core/workflows#create-workflow)**: Initialize a new automation workflow container with an empty draft.
* **[`get_workflow`](https://docs.posttu.com/mcp-reference/core/workflows#get-workflow)**: Retrieve details, draft trigger, step graph, and recent runs of a workflow.
* **[`update_workflow`](https://docs.posttu.com/mcp-reference/core/workflows#update-workflow)**: Update workflow metadata or canvas graph definition.
* **[`delete_workflow`](https://docs.posttu.com/mcp-reference/core/workflows#delete-workflow)**: Delete an automation workflow and its execution history.
* **[`activate_workflow`](https://docs.posttu.com/mcp-reference/core/workflows#activate-workflow)**: Toggle active/inactive production status of a workflow.
* **[`set_workflow_trigger`](https://docs.posttu.com/mcp-reference/core/workflows#set-workflow-trigger)**: Configure or update the trigger node (schedule, webhook, RSS, app event).
* **[`upsert_workflow_step`](https://docs.posttu.com/mcp-reference/core/workflows#upsert-workflow-step)**: Add or update step nodes in a workflow canvas using `{{...}}` expressions.
* **[`delete_workflow_step`](https://docs.posttu.com/mcp-reference/core/workflows#delete-workflow-step)**: Delete a step node from a workflow draft canvas.
* **[`test_workflow`](https://docs.posttu.com/mcp-reference/core/workflows#test-workflow)**: Execute an isolated test run of a workflow draft.
* **[`get_workflow_runs`](https://docs.posttu.com/mcp-reference/core/workflows#get-workflow-runs)**: List historical execution run logs for a workflow.
* **[`get_workflow_run_details`](https://docs.posttu.com/mcp-reference/core/workflows#get-workflow-run-details)**: Retrieve detailed per-step execution inputs, outputs, and logs.
* **[`list_pieces`](https://docs.posttu.com/mcp-reference/core/workflows#list-pieces)**: List and search available workflow triggers and actions across 75+ integrations.

### Connected Platform Channel APIs

Beyond workspace management, the MCP server exposes **462 tools** that operate on your **connected platform channels** — the Instagram, Fanvue, TikTok (etc.) accounts you connected in the dashboard. Each platform has a dedicated MCP reference page detailing tool names, parameters, scopes, and schemas:

| Platform | Tools | Example tools |
| :- | :- | :- |
| [Mastodon](https://docs.posttu.com/mcp-reference/platforms/mastodon.md) | 38 | `mastodon_account_me`, `mastodon_users_statuses`, `mastodon_account_update` |
| [LinkedIn](https://docs.posttu.com/mcp-reference/platforms/linkedin.md) | 19 | `linkedin_user_get_me`, `linkedin_post_get`, `linkedin_organization_find` |
| [Instagram](https://docs.posttu.com/mcp-reference/platforms/instagram.md) | 19 | `instagram_account_me`, `instagram_conversations`, `instagram_conversations_message_send` |
| [Bluesky](https://docs.posttu.com/mcp-reference/platforms/bluesky.md) | 23 | `bluesky_auth_user_get_me`, `bluesky_post_global_find`, `bluesky_user_message_send` |
| [Facebook](https://docs.posttu.com/mcp-reference/platforms/facebook.md) | 22 | `facebook_user_get_me`, `facebook_user_analytics`, `facebook_user_message_send` |
| [Fanvue](https://docs.posttu.com/mcp-reference/platforms/fanvue.md) | 104 | `fanvue_me`, `fanvue_chat_message_send`, `fanvue_insights_earnings` |
| [Fansly](https://docs.posttu.com/mcp-reference/platforms/fansly.md) | 81 | `fansly_me`, `fansly_user_profile_get`, `fansly_wallet_transactions` |
| [OnlyFans](https://docs.posttu.com/mcp-reference/platforms/onlyfans.md) | 24 | `onlyfans_me`, `onlyfans_user_chats`, `onlyfans_user_message_send` |
| [X (Twitter)](https://docs.posttu.com/mcp-reference/platforms/twitter.md) | 15 | `twitter_user_get_me`, `twitter_post_list`, `twitter_user_message_send` |
| [TikTok](https://docs.posttu.com/mcp-reference/platforms/tiktok.md) | 13 | `tiktok_user_get_me`, `tiktok_post_list`, `tiktok_post_comment_create` |
| [Threads](https://docs.posttu.com/mcp-reference/platforms/threads.md) | 17 | `threads_user_get_me`, `threads_post_list`, `threads_post_comment_create` |
| [YouTube](https://docs.posttu.com/mcp-reference/platforms/youtube.md) | 8 | `youtube_user_me`, `youtube_post_list`, `youtube_media_upload` |
| [Pinterest](https://docs.posttu.com/mcp-reference/platforms/pinterest.md) | 22 | `pinterest_user_get_me`, `pinterest_user_get_boards`, `pinterest_post_save` |
| [Reddit](https://docs.posttu.com/mcp-reference/platforms/reddit.md) | 19 | `reddit_user_get_me`, `reddit_post_list`, `reddit_post_comment_create` |
| [Profile](https://docs.posttu.com/mcp-reference/platforms/profile.md) | 1 | `profile_overview` — cross-platform creator profile resolution |
| [RedGifs](https://docs.posttu.com/mcp-reference/platforms/redgifs.md) | 12 | `redgifs_me`, `redgifs_post_list`, `redgifs_tags` |
| [Google Business](https://docs.posttu.com/mcp-reference/platforms/google-business.md) | 11 | `google_business_user_get_me`, `google_business_posts_list` |
| [Snapchat](https://docs.posttu.com/mcp-reference/platforms/snapchat.md) | 14 | `snapchat_user_get_me`, `snapchat_post_list` |

These tools require the target channel to be connected in your workspace. For full parameter schemas and scopes, explore the [Platform Channel Tools](https://docs.posttu.com/mcp-reference/platforms/mastodon.md) reference.

### [Public Social Media Scrapers](https://docs.posttu.com/mcp-reference/scrapers/overview.md)

Posttu's first-party MCP server includes **164 tools** to scrape public data from 27+ social media platforms without requiring OAuth channel authentication. These tools are prefixed with `scrape_`:

* **TikTok Scraper**: `scrape_tiktok_profile`, `scrape_tiktok_profile_videos`, search, and metadata.
* **Instagram Scraper**: `scrape_instagram_profile`, `scrape_instagram_posts`, reels, and stories.
* **YouTube Scraper**: `scrape_youtube_channel`, `scrape_youtube_video`, playlists, and transcripts.
* **X (Twitter) Scraper**: `scrape_twitter_profile`, search, and tweets.
* **Other Platforms**: Search, profiles, and feeds on Reddit, Threads, Spotify, Twitch, Snapchat, Pinterest, and more.

Explore the complete [Public Scrapers MCP Reference](https://docs.posttu.com/mcp-reference/scrapers/overview.md).

***

## Client Transport Standards

Posttu's first-party MCP server runs on **stateless Streamable HTTP** across two supported protocol eras: **`2026-07-28`** (modern stateless core) and **`2025-11-25`** (backwards-compatible stateless Streamable HTTP).

### MCP 2026-07-28 Stateless Features

* **Per-Request Metadata (`_meta`)**: Every request is evaluated independently. Metadata such as `io.modelcontextprotocol/protocolVersion` (`"2026-07-28"`), `io.modelcontextprotocol/clientCapabilities`, and `progressToken` live inside `params._meta`.
* **Header Mirroring & Validation**: Modern HTTP requests include headers mirrored from the request body so intermediaries can route without body parsing:
  * `MCP-Protocol-Version`: Declares protocol version (`2026-07-28` or `2025-11-25`).
  * `Mcp-Method`: Declares JSON-RPC method name (e.g. `tools/call`).
  * `Mcp-Name`: Declares target tool or resource identifier (e.g. `list_posts`). Non-ASCII names use RFC 2047 Base64 encoding (`=?base64?...?=`).
* **`server/discover` Endpoint**: Clients call `POST /api/v1/mcp` with method `"server/discover"` to query supported versions (`["2026-07-28", "2025-11-25"]`), server metadata, and advertised capabilities.
* **Scope-Filtered & Paginated Tool Discovery**: `tools/list` returns only tools permitted by the caller's token scopes, paginated in pages of 100 (`cursor` / `nextCursor`), with `ToolAnnotations` (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`) on every tool.
* **Structured Tool Outputs & MCP Apps**: `tools/call` returns both human-readable `content` and machine-readable `structuredContent` alongside interactive MCP App UI resources (`ui://posttu/*`).
* **Native MCP Skills Extension**: Compatible clients can discover and read Posttu's first-party agent skills (`posttu`, `posttu-platform`, `posttu-scraper`) directly over MCP via `skills/list`, `skills/get`, and `resources/directory/read`.
* **Stateless `2025-11-25` Compatibility**: Clients negotiating `2025-11-25` via `initialize` work seamlessly over stateless `POST /api/v1/mcp` without requiring session affinity or SSE streams.

***

## Connection Examples

You can authenticate connections using either a **Developer API Key** (generated from **Dashboard → Settings → API Keys**) or a valid **OAuth 2.1 access token**.

### 1. Claude Desktop

To connect Claude Desktop to your Posttu workspace, add the following to your `claude_desktop_config.json` file (located at `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS or `%APPDATA%\Claude\claude_desktop_config.json` on Windows):

```json theme={null}
{
  "mcpServers": {
    "posttu": {
      "url": "https://posttu.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_POSTTU_API_KEY"
      }
    }
  }
}
```

***

### 2. Cursor & IDE Tools

For Cursor, Zed, n8n, or any client with remote MCP support, configure the server in `.cursor/mcp.json` or your IDE settings:

```json theme={null}
{
  "mcpServers": {
    "posttu-workspace": {
      "type": "http",
      "url": "https://posttu.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_POSTTU_API_KEY"
      }
    }
  }
}
```

Use `"type": "http"` (Streamable HTTP).

***

### 3. Custom Node.js Script

Connect programmatically using the official `@modelcontextprotocol/client` v2 SDK with `StreamableHTTPClientTransport`:

```typescript theme={null}
import { Client, StreamableHTTPClientTransport } from "@modelcontextprotocol/client";

const token = process.env.POSTTU_API_KEY || "YOUR_POSTTU_API_KEY_OR_TOKEN";

const transport = new StreamableHTTPClientTransport(
  new URL("https://posttu.com/api/v1/mcp"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${token}`,
      },
    },
  }
);

const client = new Client(
  { name: "posttu-agent", version: "1.0.0" },
  { capabilities: {} }
);

await client.connect(transport);

// Auto-paginates across all tools permitted by your token scopes
const { tools } = await client.listTools();
console.log(`Connected! ${tools.length} tools available.`);
```

***

### 4. Codex & OpenClaw Setup

Codex and OpenClaw support connecting to remote Streamable HTTP MCP servers in both CLI and IDE extensions. Configure Posttu inside your `config.toml`:

```toml theme={null}
[mcp_servers.posttu]
url = "https://posttu.com/api/v1/mcp"
bearer_token_env_var = "POSTTU_API_KEY"
```

If you prefer interactive OAuth 2.1 login via the CLI rather than a static API key:

```bash theme={null}
codex mcp login posttu
```

***

### 5. Anthropic Messages API (Claude MCP Connector)

Connect Posttu's MCP server directly from Anthropic's **Claude Messages API** by supplying the `mcp_servers` and `tools` parameters:

> [tab] cURL
>
> ```bash theme={null}
> curl https://api.anthropic.com/v1/messages \
>   -H "Content-Type: application/json" \
>   -H "X-API-Key: $ANTHROPIC_API_KEY" \
>   -H "anthropic-version: 2023-06-01" \
>   -H "anthropic-beta: mcp-client-2025-11-20" \
>   -d '{
>     "model": "claude-opus-4-7",
>     "max_tokens": 1000,
>     "messages": [{"role": "user", "content": "Draft a post about our summer product launch and schedule it for next Monday at 10 AM."}],
>     "mcp_servers": [
>       {
>         "type": "url",
>         "url": "https://posttu.com/api/v1/mcp",
>         "name": "posttu-mcp",
>         "authorization_token": "YOUR_POSTTU_API_KEY"
>       }
>     ],
>     "tools": [
>       {
>         "type": "mcp_toolset",
>         "mcp_server_name": "posttu-mcp"
>       }
>     ]
>   }'
> ```

> [tab] Node.js / TypeScript
>
> ```typescript theme={null}
> import Anthropic from "@anthropic-ai/sdk";
>
> const anthropic = new Anthropic();
>
> const response = await anthropic.beta.messages.create({
>   model: "claude-opus-4-7",
>   max_tokens: 1000,
>   messages: [
>     {
>       role: "user",
>       content: "Draft a post about our summer product launch and schedule it for next Monday at 10 AM."
>     }
>   ],
>   mcp_servers: [
>     {
>       type: "url",
>       url: "https://posttu.com/api/v1/mcp",
>       name: "posttu-mcp",
>       authorization_token: process.env.POSTTU_API_KEY || "YOUR_POSTTU_API_KEY"
>     }
>   ],
>   tools: [
>     {
>       type: "mcp_toolset",
>       mcp_server_name: "posttu-mcp"
>     }
>   ],
>   betas: ["mcp-client-2025-11-20"]
> });
>
> console.log(response);
> ```

> [tab] Python
>
> ```python theme={null}
> import os
> import anthropic
>
> client = anthropic.Anthropic()
>
> response = client.beta.messages.create(
>     model="claude-opus-4-7",
>     max_tokens=1000,
>     messages=[{"role": "user", "content": "Draft a post about our summer product launch and schedule it for next Monday at 10 AM."}],
>     mcp_servers=[
>         {
>             "type": "url",
>             "url": "https://posttu.com/api/v1/mcp",
>             "name": "posttu-mcp",
>             "authorization_token": os.environ.get("POSTTU_API_KEY", "YOUR_POSTTU_API_KEY"),
>         }
>     ],
>     tools=[{"type": "mcp_toolset", "mcp_server_name": "posttu-mcp"}],
>     betas=["mcp-client-2025-11-20"],
> )
>
> print(response)
> ```

***

## Troubleshooting & Protocol Error Codes

* **`401 Unauthorized`**: Your access token or API key is missing, invalid, or expired. Follow the `WWW-Authenticate` `resource_metadata` pointer (`https://posttu.com/.well-known/oauth-protected-resource/api/v1/mcp`) or verify your API key.
* **`403 Forbidden` (`insufficient_scope`)**: Your token lacks the required scope for the requested tool. Inspect the `scope` parameter in the `WWW-Authenticate` response header and request an updated grant or API key.
* **`400 Bad Request` (-32020 `HeaderMismatch`)**: An HTTP header value (e.g. `Mcp-Method` or `MCP-Protocol-Version`) does not match the JSON-RPC body payload. Ensure mirrored headers match body values exactly.
* **`400 Bad Request` (-32022 `UnsupportedProtocolVersion`)**: The client requested an unsupported protocol version. Use `2026-07-28` or `2025-11-25`.
* **`405 Method Not Allowed`**: Posttu's MCP endpoint is stateless Streamable HTTP (`POST /api/v1/mcp`). Legacy `GET` SSE session streams are not supported.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.