module

ClaudePersona::McpHandler

Constants

CLAUDE_PROJECT_CONFIG_PATH = Path.new(ENV.fetch("CLAUDE_PROJECT_CONFIG_PATH", (Path[Dir.current] / ".claude.json").to_s))
CLAUDE_USER_CONFIG_PATH = Path.new(ENV.fetch("CLAUDE_USER_CONFIG_PATH", (Path.home / ".claude.json").to_s))

Claude config file paths (with env var overrides for testing)

Class methods

available_project_mcps

Get available MCPs from project-scope Claude config

Source
available_user_mcps

Get available MCPs from user-scope Claude config

Source
display_available

Display available MCPs from both scopes

Source
import(name : String) : Bool

Import MCP config from Claude config files

Source
import_all

Import all MCPs from Claude config files

Source
list

List imported MCP configs (in claude-persona's mcp directory)

Source
resolve_mcp_paths(config_names : Array(String)) : Array(String)

Resolve MCP config names to full file paths (for imported configs)

Source