Local MCP gateway to Gemini (grounded search) and Perplexity Sonar.
Project description
idea-vault-gateway
Local MCP server that proxies tool calls to Gemini (with google_search grounding) and Perplexity Sonar. Designed to bypass the Bash-tool timeout that affects long-running research scripts in Claude Code.
Install
Via Homebrew (recommended once published)
brew tap turek/idea-vault-gateway
brew install idea-vault-gateway
From source (works today)
uv tool install git+https://github.com/turek/idea-vault-mcp
Drops idea-vault-gateway onto your $PATH via ~/.local/bin. Run uv tool update-shell once if the binary isn't found.
Setup (3 commands)
# 1. Save your API keys (interactive prompt; writes ~/.config/idea-vault-gateway/.env, mode 0600)
idea-vault-gateway init
# 2. Register with Claude Code
claude mcp add idea-vault-gateway idea-vault-gateway mcp --scope user
# 3. Restart Claude Code, then verify
# /mcp → should list `idea-vault-gateway` with two tools
That's it. No JSON editing, no manual config files.
Power-user alternative: keys in the MCP config
If you'd rather skip the .env file (e.g. for CI, or to keep config in a single place), pass keys via the registration command:
claude mcp add idea-vault-gateway idea-vault-gateway mcp --scope user \
--env GEMINI_API_KEY=... \
--env PERPLEXITY_API_KEY=...
Env vars in the MCP config take precedence over the .env file. Optional knobs: GEMINI_MODEL (default gemini-2.5-pro), PERPLEXITY_MODEL (default sonar-pro).
Tools
gemini_research(prompt, model?)— Gemini with grounded search; retries on 429/503, falls back togemini-2.5-flash.perplexity_research(prompt, model?, deep?)— Perplexity Sonar;deep=trueswitches tosonar-deep-research.
Develop locally
uv venv && uv pip install -e .
idea-vault-gateway mcp
Releasing (maintainer notes)
Distribution is via a personal Homebrew tap at turek/homebrew-idea-vault-gateway. The formula source lives in this repo at homebrew/Formula/idea-vault-gateway.rb for reference, but Homebrew reads it from the tap repo.
Per-release flow:
- Bump version in
pyproject.tomlandsrc/idea_vault_gateway/__init__.py. Commit. - Tag and push:
git tag v0.1.0 && git push origin v0.1.0
GitHub auto-creates the tarball athttps://github.com/turek/idea-vault-mcp/archive/refs/tags/v0.1.0.tar.gz. No manual tarballing. - Publish to PyPI (one-time setup:
uvreadsUV_PUBLISH_TOKENor~/.pypirc):uv build && uv publish
- Compute the tarball SHA:
curl -sL https://github.com/turek/idea-vault-mcp/archive/refs/tags/v0.1.0.tar.gz | shasum -a 256
- Update the tap repo (
turek/homebrew-idea-vault-gateway): bumpversion,url, andsha256inFormula/idea-vault-gateway.rb. Commit, push. - Users get the new version on their next
brew update && brew upgrade idea-vault-gateway.
First-time tap repo setup (do this once):
gh repo create turek/homebrew-idea-vault-gateway --public --clone
cd homebrew-idea-vault-gateway
mkdir Formula
cp ../idea-vault-mcp/homebrew/Formula/idea-vault-gateway.rb Formula/
# fill in the real sha256 from step 4 above
git add . && git commit -m "Add idea-vault-gateway formula" && git push
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file idea_vault_gateway-0.1.0.tar.gz.
File metadata
- Download URL: idea_vault_gateway-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
540722435dd762f06cdb7c51f1a566c09ad30c2c2803995aedf93e952c9dac24
|
|
| MD5 |
e406935e8d7f91ef39b2250f0338c84c
|
|
| BLAKE2b-256 |
5a63be8bc7718e8553d172ba41f930de4c6bc61cc8191035d49a3220f335ddc8
|
File details
Details for the file idea_vault_gateway-0.1.0-py3-none-any.whl.
File metadata
- Download URL: idea_vault_gateway-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
251dd02717828c3cc487385674e8ce2a59c31685d2060d6c045cd9865602033d
|
|
| MD5 |
23b86e2953b9ef0c70a8d14152385abb
|
|
| BLAKE2b-256 |
0de6ccf4cf6e6f7a58b8cd803676d3e4ae9392dc63f84c071db9d9c953d07729
|