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