Skip to content

Operation not available in MCP (operation-not-available)

PubNio operation-not-available problem, HTTP 403: An execute script calls an operation that streams binary data, which MCP Code Mode does not expose.

HTTP 403 Operation not available in MCP. An execute script calls an operation that streams binary data, which MCP Code Mode does not expose.

When it happens

Only codemode.request() in the MCP execute tool returns it, as data with ok: false.

Response body

{
  "type": "https://pubnio.com/docs/problems/operation-not-available/",
  "status": 403,
  "title": "Operation not available in MCP",
  "detail": "media.upload uses binary streaming and is not exposed in MCP Code Mode.",
  "code": "operation_not_available",
  "nextAction": "Use POST /api/v1/media/import (HTTPS URL) or POST /api/v1/media/inline (base64 up to 8 MiB) instead.",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
Field Type Always present
param string No
nextAction string Yes

Recovery for agents

  • Do what nextAction says.
  • param is the field to change.

Retryable

No: no SDK runs in the sandbox and no Retry-After header comes back. Run unchanged, the same script fails the same way.

Limits

  • Match on type or code, not on detail.

Type to search…

↑↓ navigate↵ selectEsc close