MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isMcpServerEnabled

Function isMcpServerEnabled

packages/agent-core/src/plugin/manager.ts:437–443  ·  view source on GitHub ↗
(
  record: PluginRecord,
  name: string,
  config: McpServerConfig,
)

Source from the content-addressed store, hash-verified

435}
436
437function isMcpServerEnabled(
438 record: PluginRecord,
439 name: string,
440 config: McpServerConfig,
441): boolean {
442 return record.capabilities?.mcpServers?.[name]?.enabled ?? config.enabled !== false;
443}
444
445function pluginMcpServersInfo(record: PluginRecord): readonly PluginMcpServerInfo[] {
446 return Object.entries(record.manifest?.mcpServers ?? {})

Callers 2

enabledMcpServersMethod · 0.85
pluginMcpServerInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected