Skip to content
Français

HarnessMcpContext

import type { HarnessMcpContext } from "@elie-laloum/outpost";
  • promptRequired
    (server: string, name: string, promptArguments: Readonly<Record<string, string>>) => Promise<string>
    Renders a prompt of a running MCP server as role-prefixed text. Fails with code configuration when the server is not declared or offers no prompts.
export interface HarnessMcpContext {
  prompt(
    server: string,
    name: string,
    promptArguments: Readonly<Record<string, string>>,
  ): Promise<string>;
}