Skip to content
Français

McpServer

import type { McpServer } from "@elie-laloum/outpost";

The fields below cover all variants; the signature specifies their allowed combinations.

  • commandVariant-dependent
    string
    Executable started in the sandbox. Literal text; it cannot contain ${ or NUL.
  • argumentsVariant-dependent
    readonly string[] | undefined
    Literal arguments passed to the command, without ${ references.
  • environmentVariant-dependent
    Readonly<Record<string, string>> | undefined
    Non-secret environment values set for the server, written verbatim into the configuration.
  • variablesVariant-dependent
    readonly string[] | undefined
    Names of declared variables forwarded to the server. Values never appear in arguments or files; a missing variable fails before the agent starts.
  • toolsOptional
    McpToolFilter | undefined
    Tool filter by exact MCP tool name. include keeps only the listed tools and exclude removes tools afterwards. Harnesses that cannot apply a part refuse it when the agent is composed.
  • startupTimeoutMsOptional
    number | undefined
    Server start limit in milliseconds, 1 to 2147483647; the built-in harness defaults to 60000. Codex and Kimi apply it per server, Claude Code as one MCP_TIMEOUT that must be equal on every server that sets it, and Copilot and Antigravity refuse it.
  • urlVariant-dependent
    string
    Absolute http or https URL of a Streamable HTTP MCP endpoint, without embedded credentials.
  • headersVariant-dependent
    Readonly<Record<string, string>> | undefined
    Non-secret HTTP headers sent with every request. Use bearerTokenVariable for an Authorization token.
  • bearerTokenVariableVariant-dependent
    string | undefined
    Name of a declared variable whose value is sent as Authorization: Bearer. It cannot be combined with an Authorization header.
  • oauthVariant-dependent
    "login" | McpClientCredentials | undefined
    “login” copies the MCP OAuth login that Claude Code, Codex or Kimi stored on the host; client credentials work only in the built-in harness, which requests the token from the sandbox. Excludes bearerTokenVariable and an Authorization header.
export type McpServer = McpStdioServer | McpHttpServer;