(
// For stdio transport
readonly command?: string,
readonly args?: string[],
readonly env?: Record<string, string>,
readonly cwd?: string,
// For sse transport
readonly url?: string,
// For streamable http transport
readonly httpUrl?: string,
readonly headers?: Record<string, string>,
// For websocket transport
readonly tcp?: string,
// Common
readonly timeout?: number,
readonly trust?: boolean,
// Metadata
readonly description?: string,
readonly includeTools?: string[],
readonly excludeTools?: string[],
readonly extensionName?: string,
// OAuth configuration
readonly oauth?: MCPOAuthConfig,
readonly authProviderType?: AuthProviderType,
)
| 105 | }; |
| 106 | export class MCPServerConfig { |
| 107 | constructor( |
| 108 | // For stdio transport |
| 109 | readonly command?: string, |
| 110 | readonly args?: string[], |
| 111 | readonly env?: Record<string, string>, |
| 112 | readonly cwd?: string, |
| 113 | // For sse transport |
| 114 | readonly url?: string, |
| 115 | // For streamable http transport |
| 116 | readonly httpUrl?: string, |
| 117 | readonly headers?: Record<string, string>, |
| 118 | // For websocket transport |
| 119 | readonly tcp?: string, |
| 120 | // Common |
| 121 | readonly timeout?: number, |
| 122 | readonly trust?: boolean, |
| 123 | // Metadata |
| 124 | readonly description?: string, |
| 125 | readonly includeTools?: string[], |
| 126 | readonly excludeTools?: string[], |
| 127 | readonly extensionName?: string, |
| 128 | // OAuth configuration |
| 129 | readonly oauth?: MCPOAuthConfig, |
| 130 | readonly authProviderType?: AuthProviderType, |
| 131 | ) {} |
| 132 | } |
| 133 | |
| 134 | export enum AuthProviderType { |
nothing calls this directly
no outgoing calls
no test coverage detected