* Converts a process transport config to a scoped config. * The types are structurally compatible, so we just add the scope.
( config: McpServerConfigForProcessTransport, )
| 5314 | * The types are structurally compatible, so we just add the scope. |
| 5315 | */ |
| 5316 | function toScopedConfig( |
| 5317 | config: McpServerConfigForProcessTransport, |
| 5318 | ): ScopedMcpServerConfig { |
| 5319 | // McpServerConfigForProcessTransport is a subset of McpServerConfig |
| 5320 | // (it excludes IDE-specific types like sse-ide and ws-ide) |
| 5321 | // Adding scope makes it a valid ScopedMcpServerConfig |
| 5322 | return { ...config, scope: 'dynamic' } as ScopedMcpServerConfig |
| 5323 | } |
| 5324 | |
| 5325 | /** |
| 5326 | * State for SDK MCP servers that run in the SDK process. |
no outgoing calls
no test coverage detected