MCPcopy Index your code
hub / github.com/anomalyco/opencode / isMcpRemote

Function isMcpRemote

packages/opencode/src/cli/cmd/mcp.ts:54–56  ·  view source on GitHub ↗
(config: McpEntry)

Source from the content-addressed store, hash-verified

52
53type McpRemote = Extract<McpConfigured, { type: "remote" }>
54function isMcpRemote(config: McpEntry): config is McpRemote {
55 return isMcpConfigured(config) && config.type === "remote"
56}
57
58function configuredServers(config: ConfigV1.Info) {
59 return Object.entries(config.mcp ?? {}).filter((entry): entry is [string, McpConfigured] => isMcpConfigured(entry[1]))

Callers 2

oauthServersFunction · 0.85
mcp.tsFile · 0.85

Calls 1

isMcpConfiguredFunction · 0.70

Tested by

no test coverage detected