MCPcopy Create free account
hub / github.com/Noumena-Network/code / toScopedConfig

Function toScopedConfig

src/cli/print.ts:5356–5363  ·  view source on GitHub ↗

* Converts a process transport config to a scoped config. * The types are structurally compatible, so we just add the scope.

(
  config: McpServerConfigForProcessTransport,
)

Source from the content-addressed store, hash-verified

5354 * The types are structurally compatible, so we just add the scope.
5355 */
5356function 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.

Callers 1

reconcileMcpServersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected