Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthDir ¶
func AuthDir() string
AuthDir returns the directory for OAuth token storage: ~/.config/compressed-mcp-proxy/auth/
func CachePath ¶
func CachePath() string
CachePath returns the default cache file path: ~/.config/compressed-mcp-proxy/cache/tools.json
func DefaultPath ¶
func DefaultPath() string
DefaultPath returns the default config file path: ~/.config/compressed-mcp-proxy/config.json
func FindClaudeCodeConfigPath ¶
FindClaudeCodeConfigPath returns the path to Claude Code's config file. It checks common locations and returns the first one that exists and contains MCP servers.
Types ¶
type ClaudeCodeConfig ¶
type ClaudeCodeConfig struct {
MCPServers map[string]types.ServerConfig `json:"mcpServers"`
}
ClaudeCodeConfig represents the relevant portion of Claude Code's config.
func LoadClaudeCodeConfig ¶
func LoadClaudeCodeConfig() (*ClaudeCodeConfig, error)
LoadClaudeCodeConfig reads and parses Claude Code's MCP server configuration. It checks common config locations in order.
func LoadClaudeCodeConfigFrom ¶
func LoadClaudeCodeConfigFrom(path string) (*ClaudeCodeConfig, error)
LoadClaudeCodeConfigFrom reads and parses Claude Code config from a specific path.