Agent Client Protocol - v0.28.0
    Preparing search index...

    Class ClientContext

    Context used by clients to call agent-side ACP methods.

    connectWith passes a ClientContext to the callback. Client handlers also receive one as ctx.agent when they need to call back into the agent.

    Hierarchy

    • AcpContext
      • ClientContext
    Index

    Methods

    • Creates a builder for starting and observing an ACP session.

      Pass a string for the common case where only cwd is needed, or pass a full NewSessionRequest when you need MCP servers, _meta, or additional session fields.

      Parameters

      • cwd: string

      Returns SessionBuilder

    • Creates a builder for starting and observing an ACP session.

      Pass a string for the common case where only cwd is needed, or pass a full NewSessionRequest when you need MCP servers, _meta, or additional session fields.

      Parameters

      Returns SessionBuilder