* Converts a process transport config to a scoped config. * The types are structurally compatible, so we just add the scope.
( config: McpServerConfigForProcessTransport, )
| 5354 | * The types are structurally compatible, so we just add the scope. |
| 5355 | */ |
| 5356 | function toScopedConfig( |
| 5357 | config: McpServerConfigForProcessTransport, |
| 5358 | ): ScopedMcpServerConfig { |
| 5359 | // McpServerConfigForProcessTransport is a subset of McpServerConfig |
| 5360 | // (it excludes IDE-specific types like sse-ide and ws-ide) |
| 5361 | // Adding scope makes it a valid ScopedMcpServerConfig |
| 5362 | return { ...config, scope: 'dynamic' } as ScopedMcpServerConfig |
| 5363 | } |
| 5364 | |
| 5365 | /** |
| 5366 | * State for SDK MCP servers that run in the SDK process. |
no outgoing calls
no test coverage detected