Skip to content

Interface: ExpositionConfig

Defined in: packages/core/src/exposition/types.ts:40

Configuration for the Topology Compiler's exposition strategy.

Example

typescript
registry.attachToServer(server, {
    contextFactory: createContext,
    toolExposition: 'flat',      // Each action = 1 MCP tool
    actionSeparator: '_',        // projects_list, projects_create
});

Properties

actionSeparator?

ts
optional actionSeparator: string;

Defined in: packages/core/src/exposition/types.ts:61

Delimiter for deterministic naming interpolation in flat mode. Used to join {toolName}{separator}{actionKey}.

Default

ts
'_'

Example

typescript
// With separator '_': projects_list, projects_create
// With separator '.': projects.list, projects.create
// With separator '-': projects-list, projects-create

toolExposition?

ts
optional toolExposition: ToolExposition;

Defined in: packages/core/src/exposition/types.ts:46

Exposition strategy for projecting grouped tools onto the MCP wire format.

Default

ts
'flat'