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

Function isMcpConfigured

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

Source from the content-addressed store, hash-verified

47
48type McpConfigured = ConfigMCPV1.Info
49function isMcpConfigured(config: McpEntry): config is McpConfigured {
50 return typeof config === "object" && config !== null && "type" in config
51}
52
53type McpRemote = Extract<McpConfigured, { type: "remote" }>
54function isMcpRemote(config: McpEntry): config is McpRemote {

Callers 2

isMcpRemoteFunction · 0.70
configuredServersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected