mcpwn API
    Preparing search index...

    Interface AgentAdapter

    The agent-under-test. An adapter maps an AgentObservation to the next AgentAction. Implementations must be side-effect-free w.r.t. the wire (the harness performs all tool calls) and must not block indefinitely (the harness still bounds every call with a timeout).

    interface AgentAdapter {
        name: string;
        close?(): void | Promise<void>;
        next(obs: AgentObservation): AgentAction | Promise<AgentAction>;
    }

    Implemented by

    Index
    name: string
    • Optional teardown (kill any persistent child); called once at the end.

      Returns void | Promise<void>