# MCP protocol reference

Source: https://projectfeed.app/docs/agents/mcp/protocol-reference

Read discovery endpoints, transport behavior, supported methods, and current limits.

-   [Plan Pro or Enterprise](https://projectfeed.app/docs/billing)

## Discover OAuth metadata

Text

```
https://projectfeed.app/.well-known/oauth-protected-resource
```

Text

```
https://projectfeed.app/.well-known/oauth-authorization-server
```

A client can also find the server before it connects. The AI Catalog lists the Server Card, which gives the endpoint URL, the protocol versions it accepts, and the API key header. A workspace URL has its own card at `/api/mcp/w/<slug>/server-card`. Neither needs a credential.

Text

```
https://projectfeed.app/.well-known/ai-catalog.json
https://projectfeed.app/api/mcp/server-card
```

## Use the transport

The 2026 transport is stateless. Send the protocol version and client capabilities with each request. It does not use `Mcp-Session-Id`. Clients that negotiate a supported 2025 version use the compatibility session flow.

HTTP

```
POST /api/mcp
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/list
Authorization: Bearer <OAuth access token>

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list",
  "params": {
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientInfo": {
        "name": "example-client",
        "version": "1.0.0"
      },
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}
```

### Keep one compatibility session

A client that negotiates a 2025 protocol version calls `initialize` once. The response carries an `Mcp-Session-Id` header. Send that header with every later request in the run. A session belongs to the workspace it was opened for, so use one session per credential and workspace. Each call to `initialize` starts a new session, so do not call it before each tool call.

When the run ends, send `DELETE /api/mcp` with the session's `Mcp-Session-Id`. The server answers 204. A session you leave open expires 24 hours after its last request. A `GET` request returns 405, because the server does not open a stream. A browser that opens the server URL without a credential gets a short page with setup steps.

HTTP

```
DELETE /api/mcp
MCP-Protocol-Version: 2025-11-25
Mcp-Session-Id: <session ID from initialize>
Authorization: Bearer <API token>
```

The `initialize` result and the 2026 `server/discover` result include `instructions` that repeat the polling and retry rules for the model. The [integration guidelines](https://projectfeed.app/docs/agents/guidelines) explain each one.

## Supported methods

-   `server/discover` for protocol and capability discovery.
-   `tools/list` and `tools/call` for Project Feed actions.
-   `resources/list`, `resources/templates/list`, and `resources/read`.
-   `prompts/list`, `prompts/get`, and `completion/complete`.

## Read tool results

List and get tools for tasks, subtasks, posts, comments, docs, canvases, projects and chat messages accept `response_format`. The default, `concise`, returns plain-text fields and leaves out Plate JSON, emails and avatar URLs. Task and subtask lists also leave out descriptions; `get_task` returns one task's description. Long text is cut. The result sets `truncated` to true and adds a `hint` that names the tool to call again. Set `detailed` to get every field and the full text. Create and update tools always return the detailed shape.

A tool result puts the same JSON in the text block and in `structuredContent`. The text block has no indentation. Tools with a stable result shape publish an `outputSchema` in `tools/list`, and their results match it in both formats. A result links at most ten items as `resource_link` blocks.

`tools/list` returns tools in a fixed order. Follow `nextCursor` when it is present by passing it back as `cursor`. A cursor the server does not accept returns error `-32602`.

## Field limits

Read each tool's input schema from `tools/list` before sending work. Handoff text limits count Unicode code points after trimming; an emoji counts as one code point. Tool names are NFC-normalized first. Skill names are also lowercased and deduplicated. Limits and normalization rules are included in `x-project-feed-text-limit` metadata. Standard string-length keywords apply to raw JSON strings, so fields measured after normalization publish their limits only in metadata. Skill arrays use `x-project-feed-array-limit` for counts after normalization and deduplication. Limits shared by several arrays appear in `x-project-feed-combined-item-limits` at the input schema root; add the lengths of its listed fields before sending.

Chat content publishes `x-project-feed-content-limits-by-route`. Use the agent route when agentId is set. Otherwise root messages and threads without a source binding use native; source-backed replies use the post, task or doc route. Read the thread binding first. Agent routes support root messages and threads without a source binding. Edits use the stored message source. Agent messages cannot be edited.

Handoff instructions

1–8,000 code points after trimming.

Questions and answers

1–8,000 code points each after trimming.

Result summary

1–8,000 code points after trimming.

Request and claim IDs

1–128 code points after trimming. Reuse only for the same operation.

Personal tool name

1–80 code points after NFC normalization and trimming; one line without control characters.

Evidence links

At most 10 HTTPS links, each 1–2,048 code points in both the trimmed input and normalized URL. Percent encoding can increase the length. URLs cannot contain credentials.

Required skills

At most 10 unique skills, each up to 40 code points after normalization.

Clarification rounds

At most 10 answered questions per handoff.

Whole handoff

Up to 900 KiB of serialized UTF-8 JSON, including its context and history. Questions and answers leave 100 KiB for the result. Each question also reserves room for a full answer. Start a new handoff when further content would exceed the remaining budget.

### Rich-text content

These limits count visible text after Markdown or Plate parsing and sanitization in UTF-16 code units; an emoji outside the basic Unicode plane counts as two. The serialized JSON byte cap applies before and after normalization. Raw Markdown length is not the visible-text length, so content schemas use `x-project-feed-content-limit` metadata instead of a raw `maxLength`. Existing posts over the visible-text limit can be saved only when the new content is shorter.

Posts

25,000 visible UTF-16 code units; 512 KiB serialized UTF-8 JSON.

Post comments and annotations

5,000 visible UTF-16 code units; 128 KiB serialized UTF-8 JSON.

Task comments

10,000 visible UTF-16 code units; 128 KiB serialized UTF-8 JSON.

Doc comments

50,000 visible UTF-16 code units; 128 KiB serialized UTF-8 JSON.

Native chat messages and new discussions

4,000 visible UTF-16 code units; 31.25 KiB serialized UTF-8 JSON.

Chat input before routing

128,000 visible UTF-16 code units; 128 KiB serialized UTF-8 JSON.

Native chat messages also have a 32,000-byte storage cap. Replies to a source-backed discussion must fit the corresponding post, task, or doc comment limit; the chat input ceiling does not raise that limit. Agent messages allow 4,000 visible code units and 128 KiB of serialized JSON.

### Other write fields

Task and subtask titles

Up to 500 UTF-16 code units.

Post titles

MCP create and update allow 500 UTF-16 code units after trimming. REST and post-version publishing allow 200; publishing checks before trimming.

Version change notes

Up to 500 UTF-16 code units.

Checklist item text

Up to 500 UTF-16 code units.

Webhook names

Up to 100 UTF-16 code units after trimming.

Task assignees

At most 20 entries.

Task and post tags

tagIds and tagNames together may contain at most 50 entries.

Bulk task updates

1–50 task IDs in one call.

Post version files

mediaIds and uploads together may contain at most 10 files. Omitting mediaIds keeps the current files, which also count toward this limit. Pass an explicit list to control what carries over. mediaIds must be unique and each ID is 1–200 UTF-16 code units.

Annotation selected text

lines.selectedText allows up to 5,000 UTF-16 code units. The complete annotation allows 256 KiB of serialized UTF-8 JSON.

Chat object links

At most 5 links per message.

Idempotency keys

Post creation and publishing a version allow up to 100 UTF-16 code units. Comment and chat operations allow up to 128. These are separate from handoff requestKey and claimId.

### Bound a dispatcher round

Normal MCP requests have a 1 MiB JSON envelope limit. Upload tools use their separate file limits. Task descriptions allow 512 KiB and doc content allows 1 MiB of serialized UTF-8 JSON, subject to the request envelope limit. Neither has a separate visible-text limit.

Request work on one existing task at a time. Include its identifier, expected result and constraints; read the board separately instead of embedding every open task in each handoff. If a length check fails, shorten or split the request. Repeating the same oversized input does not resolve a validation error. Errors name the field and measured length without repeating its content. Text-length failures include `field`, `actualLength` and `maxLength`; argument errors return these in JSON-RPC error `data`. Collection-count errors include `actualItems` and `minItems` or `maxItems`. A bounded scan of retained post files may also return `actualItemsIsLowerBound: true`; that count is the minimum observed, rather than the full legacy file count. Byte-limit errors include `actualBytes` and `maxBytes`.

Each inbox status page scans at most 4 handoffs. Multi-status reads share a 20-item budget. Rows larger than 32 KiB are previews marked `detailsTruncated` with `clarificationCount`. Use `get_tool_handoff` for full instructions, context, clarifications and evidence before approving work, answering a question or using a result. Claims also return full context. Continue each status with its own cursor until `isDone`, including empty pages. Keep cursor strings unchanged. A split page can be empty while its continuation retries a smaller range.

The saved task description is bounded to 8,000 UTF-16 code units. A larger description is marked `contextTruncated` and `context.descriptionTruncated`. Read the full task with `get_task` when it is needed to assess the requested scope.

### Retry the same operation safely

Request

Reuse requestKey only with the same normalized work. A successful replay returns the existing handoff and consumes no new creation token.

Claim

Reuse claimId while that claim is live. Retain its attempt; a later attempt is different work.

Question or result

Retry with the same claimId, attempt and normalized content. Changed content is a conflict.

Answer

The same person can replay the same normalized answer for its attempt. A saved answer cannot be replaced, and a replay does not request another approval.

Honor `retryAfterSeconds` and HTTP `Retry-After` for throttles. Validation errors and JSON-RPC `-32602` require an input change. Scope backoff to the affected credential and budget so a dispatcher refusal does not prevent another active tool from renewing its claim.

### Separate creation and API budgets

Peer handoffs and open handoffs for other people share 10 requests per hour for a person in a workspace, across their keys. Targeted self-handoffs and own-audience open handoffs from a tool use 60 per hour for the source connection and 120 per hour for its owner in that workspace. These buckets refill continuously. General compatibility API-key budgets also apply: 1,000 requests per minute per key and, for account API tokens, 2,000 per minute across the owner. Free workspace keys use 60 per minute and a fixed daily workspace budget of 1,000. Changing keys does not reset the handoff creation budget. Check `get_tool_connection` for advisory creation budgets. Inbox polling has a separate front-door budget of one first-page poll per minute for each key or token and direction; wait 60 seconds between polls or 120 seconds when empty, and respect retryAfterSeconds. Local agents can use pf handoffs wait to keep waiting outside the model.

## Current limits

-   Sampling and elicitation are not exposed.
-   The stateless transport does not advertise inline media upload; use the REST file upload flow.
-   Resources are curated workspace, notification, project, task, and post views rather than a mirror of every REST endpoint.
-   Choose a workspace before the first request with the server URL's workspace parameter or the x-project-feed-workspace header.

## Fix failed requests

If the server connects but a request fails, repeat a read-only request and inspect the returned error before retrying a write. Use the [API error reference](https://projectfeed.app/docs/api/errors) for authentication, authorization, validation, rate-limit, and server failures.
