config

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 5 Imported by: 0

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

func FindClaudeCodeConfigPath() (string, error)

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.

func Load

func Load(path string) (*types.ProxyConfig, error)

Load reads and validates a proxy config from the given path.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL