ACP v2 (Preview) TypeScript SDK — UNSTABLE - v2.12.1
    Preparing search index...

    Type Alias MessageMcpResponseExperimental

    MessageMcpResponse:
        | { result: unknown; _meta?: { [key: string]: unknown }
        | null }
        | { error: McpError; _meta?: { [key: string]: unknown } | null }

    UNSTABLE

    The successful outer ACP mcp/message response carries exactly one inner MCP outcome: an opaque result (including JSON null), or an MCP error. Outer ACP errors are reserved for binding and runtime failures.

    Both branches require their carrier key. An error MUST be a non-null object. Unknown outer fields are ignored. Inner result and error fields are preserved. Carrier _meta is optional. Omitted and null are equivalent. Senders MUST include exactly one outcome.

    Type Declaration

    • { result: unknown; _meta?: { [key: string]: unknown } | null }
      • result: unknown

        Required, even if JSON null.

      • Optional_meta?: { [key: string]: unknown } | null

        The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted and null are equivalent and mean no metadata. Implementations MUST NOT assign meaning to keys they do not recognize. This is ACP metadata, not the inner MCP message's _meta.

        See protocol docs: Extensibility

    • { error: McpError; _meta?: { [key: string]: unknown } | null }
      • error: McpError

        Required, non-null MCP error object.

      • Optional_meta?: { [key: string]: unknown } | null

        The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted and null are equivalent and mean no metadata. Implementations MUST NOT assign meaning to keys they do not recognize. This is ACP metadata, not the inner MCP message's _meta.

        See protocol docs: Extensibility