MCPcopy Index your code
hub / github.com/simstudioai/sim / resolveConfigEnvVars

Method resolveConfigEnvVars

apps/sim/lib/mcp/service.ts:105–116  ·  view source on GitHub ↗
(
    config: McpServerConfig,
    userId: string,
    workspaceId?: string
  )

Source from the content-addressed store, hash-verified

103 }
104
105 private async resolveConfigEnvVars(
106 config: McpServerConfig,
107 userId: string,
108 workspaceId?: string
109 ): Promise<{ config: McpServerConfig; resolvedIP: string | null }> {
110 const { config: resolvedConfig } = await resolveMcpConfigEnvVars(config, userId, workspaceId, {
111 strict: true,
112 })
113 validateMcpDomain(resolvedConfig.url)
114 const resolvedIP = await validateMcpServerSsrf(resolvedConfig.url)
115 return { config: resolvedConfig, resolvedIP }
116 }
117
118 private async getServerConfig(
119 serverId: string,

Callers 4

executeToolMethod · 0.95
discoverToolsMethod · 0.95
getServerSummariesMethod · 0.95

Calls 3

resolveMcpConfigEnvVarsFunction · 0.90
validateMcpDomainFunction · 0.90
validateMcpServerSsrfFunction · 0.90

Tested by

no test coverage detected