MCPcopy Index your code
hub / github.com/codeaashu/claude-code / toScopedConfig

Function toScopedConfig

src/cli/print.ts:5316–5323  ·  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

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

Callers 1

reconcileMcpServersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected