Skip to content
Français

ConfigurationFile

import type { ConfigurationFile } from "@elie-laloum/outpost";
  • pathRequired
    string
    Path relative to the agent home, without . or .. segments.
  • sectionOptional
    string | undefined
    Top-level object key that receives the entries, such as mcpServers; without it the entries are merged at the root. Other keys of the file are preserved.
  • entriesRequired
    Readonly<Record<string, unknown>>
    Entries added to the section or replacing existing entries with the same name. An unreadable file or a non-object section fails instead of being overwritten.
export interface ConfigurationFile {
  readonly path: string;
  readonly section?: string;
  readonly entries: Readonly<Record<string, unknown>>;
}