Change config path from .claude/mcp-browser to .config/mcp-browser
This commit is contained in:
parent
546c5ed0a7
commit
67f41e5a81
|
|
@ -651,7 +651,7 @@ Examples:
|
|||
mcp-browser --mode server # Run as MCP server (stdin/stdout)
|
||||
|
||||
Configuration:
|
||||
Default config: ~/.claude/mcp-browser/config.yaml
|
||||
Default config: ~/.config/mcp-browser/config.yaml
|
||||
First run creates default configuration with examples
|
||||
|
||||
Environment:
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"""
|
||||
Default configuration files for MCP Browser.
|
||||
|
||||
Creates and manages default config directory at ~/.claude/mcp-browser/
|
||||
Creates and manages default config directory at ~/.config/mcp-browser/
|
||||
with all necessary files including config, onboarding, patterns, etc.
|
||||
"""
|
||||
|
||||
|
|
@ -214,7 +214,7 @@ $.tools[?(@.name == 'brave_web_search')]
|
|||
|
||||
## 🔧 Configuration
|
||||
|
||||
Configuration file: `~/.claude/mcp-browser/config.yaml`
|
||||
Configuration file: `~/.config/mcp-browser/config.yaml`
|
||||
|
||||
Key settings:
|
||||
- `default_server` - Server to use by default
|
||||
|
|
@ -234,7 +234,7 @@ mcp-browser --config ~/myconfig.yaml --mode server
|
|||
```
|
||||
|
||||
### Custom Configurations
|
||||
1. Edit `~/.claude/mcp-browser/config.yaml`
|
||||
1. Edit `~/.config/mcp-browser/config.yaml`
|
||||
2. Add your MCP servers
|
||||
3. Set environment variables as needed
|
||||
4. Restart mcp-browser
|
||||
|
|
@ -327,7 +327,7 @@ class ConfigManager:
|
|||
if config_dir:
|
||||
self.config_dir = Path(config_dir)
|
||||
else:
|
||||
self.config_dir = Path.home() / ".claude" / "mcp-browser"
|
||||
self.config_dir = Path.home() / ".config" / "mcp-browser"
|
||||
|
||||
def ensure_config_directory(self) -> None:
|
||||
"""Ensure config directory exists with all default files."""
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ class MemoryServer(BaseMCPServer):
|
|||
identity_dir.mkdir(exist_ok=True)
|
||||
|
||||
# Check if we should symlink to cmem storage
|
||||
claude_dir = Path.home() / ".claude"
|
||||
claude_dir = Path.home() / ".config"
|
||||
if claude_dir.exists():
|
||||
# Try to find cmem session data
|
||||
cmem_session_dirs = list(claude_dir.glob("sessions/*/"))
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -186,7 +186,7 @@ class GenerateApiDocs(Command):
|
|||
import os
|
||||
|
||||
# Initialize MCP Browser with config from standard location
|
||||
config_path = Path.home() / ".claude" / "mcp-browser" / "config.yaml"
|
||||
config_path = Path.home() / ".config" / "mcp-browser" / "config.yaml"
|
||||
|
||||
print(f"Loading config from: {config_path}")
|
||||
if not config_path.exists():
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ class TestCmemIntegration:
|
|||
with patch('subprocess.run') as mock_run:
|
||||
mock_run.return_value.returncode = 0 # cmem available
|
||||
|
||||
# Create mock .claude directory
|
||||
claude_dir = Path(self.temp_dir) / ".claude"
|
||||
# Create mock .config directory
|
||||
claude_dir = Path(self.temp_dir) / ".config"
|
||||
claude_dir.mkdir()
|
||||
sessions_dir = claude_dir / "sessions" / "test_session"
|
||||
sessions_dir.mkdir(parents=True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue