fix(mcp): repair stdio server templates for fetch, sqlite, and git
- fetch: switch to `uvx mcp-server-fetch` (the old @modelcontextprotocol/server-fetch package 404s on npm) - sqlite-mcp: switch to `npx -y mcp-sqlite` and forward the declared SQLITE_DB_PATH as the database path argument (old package 404s on npm) - git: replace `--repository .` (which resolves to the daemon CWD) with a required GIT_REPOSITORY_PATH install parameter
This commit is contained in:
1 parent
abfebbbd1d
commit
7a154cfe1d
3 files changed
+22
-19
No files matched your search
+10
-12
@@ -8,7 +8,14 @@ tags = ["git", "version-control", "commits", "diff", "history", "blame"]
|
||||
[transport]
|
||||
type = "stdio"
|
||||
command = "uvx"
|
||||
args = ["mcp-server-git", "--repository", "."]
|
||||
args = ["mcp-server-git", "--repository", "$GIT_REPOSITORY_PATH"]
|
||||
|
||||
[[required_env]]
|
||||
name = "GIT_REPOSITORY_PATH"
|
||||
label = "Git Repository Path"
|
||||
help = "Absolute path to the Git repository to inspect (e.g., /home/user/projects/my-repo)"
|
||||
is_secret = false
|
||||
get_url = ""
|
||||
|
||||
[health_check]
|
||||
interval_secs = 60
|
||||
@@ -19,17 +26,8 @@ Requires `uv` (Python package manager):
|
||||
- macOS/Linux: `curl -LsSf https://astral.sh/uv/install.sh | sh`
|
||||
- Or: `pip install uv`
|
||||
|
||||
The `--repository .` argument uses the current working directory. To point at a specific repo:
|
||||
|
||||
```toml
|
||||
[[mcp_servers]]
|
||||
name = "git"
|
||||
|
||||
[mcp_servers.transport]
|
||||
type = "stdio"
|
||||
command = "uvx"
|
||||
args = ["mcp-server-git", "--repository", "/path/to/your/repo"]
|
||||
```
|
||||
Enter the absolute path to the Git repository you want to inspect in the
|
||||
GIT_REPOSITORY_PATH field above.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user