Skip to main content

Module mcp

Module mcp 

Source
Expand description

Plugin MCP server implementation - ported from ~/claudecode/openclaudecode/src/utils/plugins/mcpPluginIntegration.ts

This module provides MCP server management for plugins, including:

  • Loading MCP server configs from plugin manifests
  • Server lifecycle management (start, stop, status)
  • Support for stdio and SSE transport types

Structs§

PluginMcpServer
Plugin MCP server instance
PluginMcpServerConfig
Plugin MCP server configuration
PluginMcpServerManager
Plugin MCP server manager

Enums§

PluginMcpServerStatus
Status of a plugin MCP server
PluginMcpTransport
Transport type for MCP server

Functions§

add_plugin_scope_to_servers
Add plugin scope to MCP server configs (prefix server names)
load_mcp_servers_from_file
Load MCP server configs from a JSON file in the plugin directory
load_plugin_mcp_servers
Load MCP servers from plugin manifest mcpServers field