Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

define-config.ts

17 lines477 Bytes

1import type { TransportConfig } from '../transport'
2​
3export interface CodegenServerConfig {
4 transport: TransportConfig
5 /** Tool-name prefix; must match the runtime `createMCPClient({ prefix })`. */
6 prefix?: string
7}
8​
9export interface MCPCodegenConfig {
10 servers: Record<string, CodegenServerConfig>
11 /** Output file for the generated descriptor types. */
12 outFile: string
14​
15export function defineConfig(config: MCPCodegenConfig): MCPCodegenConfig {
16 return config