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

    Type Alias MessageMcpRequestExperimental

    UNSTABLE

    Request parameters for mcp/message, sent from consumer to provider.

    sessionId and toolCallId name the session and tool call the request was sent for. Both are optional. The provider can use sessionId to choose which session the request runs for, and toolCallId to show the request with the tool call that the Agent reports. Neither field grants permission to run the request.

    See RFD: MCP-over-ACP

    type MessageMcpRequest = {
        serverId: McpServerAcpId;
        requestId: McpRequestId;
        method: string;
        params?: { [key: string]: unknown } | null;
        sessionId?: SessionId | null;
        toolCallId?: ToolCallId | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    serverId: McpServerAcpId

    The declared ACP MCP server receiving this request.

    requestId: McpRequestId

    The caller-generated identifier for the inner MCP request.

    method: string

    The inner MCP method name.

    params?: { [key: string]: unknown } | null

    Optional inner MCP params. Null is equivalent to omission.

    sessionId?: SessionId | null

    The session whose work caused this request. It is the sessionId the Agent uses on session/update for that work. For a child session's work, that is the child's ID.

    Optional. Omitted and null are equivalent and mean the Agent supplied no session. The Agent SHOULD include it when it knows the session, and MUST NOT send another session's ID when it does not. A provider that needs the session to run the request MAY reject a request without it.

    toolCallId?: ToolCallId | null

    The tool call in that session that this request is part of. It is the toolCallId the Agent uses to report the call in session/update. The Agent SHOULD report the tool call before it sends the request.

    Optional. Omitted and null are equivalent and mean the Agent supplied no tool call. The Agent MUST NOT send it without sessionId. More than one request can name the same tool call.

    _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