From 7a154cfe1dce33d9eadd8e0934fe4f82e961510a Mon Sep 17 00:00:00 2001 From: Dmitry Shilov Date: Sun, 18 Oct 2026 11:42:06 +0300 Subject: [PATCH] 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 --- mcp/fetch.toml | 8 ++++++-- mcp/git.toml | 22 ++++++++++------------ mcp/sqlite-mcp.toml | 11 ++++++----- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/mcp/fetch.toml b/mcp/fetch.toml index e81b239..77d0e0c 100644 --- a/mcp/fetch.toml +++ b/mcp/fetch.toml @@ -7,8 +7,8 @@ tags = ["web", "fetch", "scraping", "markdown", "http"] [transport] type = "stdio" -command = "npx" -args = ["-y", "@modelcontextprotocol/server-fetch@latest"] +command = "uvx" +args = ["mcp-server-fetch"] [health_check] interval_secs = 60 @@ -17,6 +17,10 @@ unhealthy_threshold = 3 setup_instructions = """ No API key required. Fetches any publicly accessible URL and returns the content as Markdown. +Requires `uv` (Python package manager): +- macOS/Linux: `curl -LsSf https://astral.sh/uv/install.sh | sh` +- Or: `pip install uv` + For JavaScript-rendered pages (SPAs), use the Puppeteer integration instead. """ diff --git a/mcp/git.toml b/mcp/git.toml index bed99da..b960db3 100644 --- a/mcp/git.toml +++ b/mcp/git.toml @@ -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. """ diff --git a/mcp/sqlite-mcp.toml b/mcp/sqlite-mcp.toml index c1b8b7a..d1bf85d 100644 --- a/mcp/sqlite-mcp.toml +++ b/mcp/sqlite-mcp.toml @@ -8,12 +8,12 @@ tags = ["database", "sql", "relational", "sqlite", "local", "embedded"] [transport] type = "stdio" command = "npx" -args = ["-y", "@modelcontextprotocol/server-sqlite"] +args = ["-y", "mcp-sqlite", "$SQLITE_DB_PATH"] [[required_env]] name = "SQLITE_DB_PATH" label = "SQLite Database Path" -help = "Absolute path to the SQLite database file (e.g., /home/user/data/mydb.sqlite)" +help = "Absolute path to the SQLite database file (e.g., ~/.agent-arka/data/sqlite-mcp.db)" is_secret = false get_url = "" @@ -22,9 +22,10 @@ interval_secs = 60 unhealthy_threshold = 3 setup_instructions = """ -1. Locate the SQLite database file you want to connect to on your local filesystem. -2. Enter the absolute path to the database file in the SQLITE_DB_PATH field above. -3. Ensure the file has appropriate read/write permissions for the LibreFang process. +1. Choose an absolute path for the SQLite database file (e.g. ~/.agent-arka/data/sqlite-mcp.db). +2. Enter it in the SQLITE_DB_PATH field above. +3. The database file is created automatically if it does not yet exist. +4. Ensure the LibreFang process has read/write access to that path. """