Skip to main content

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 to gemini-2.5-flash.
  • perplexity_research(prompt, model?, deep?) — Perplexity Sonar; deep=true switches to sonar-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:

  1. Bump version in pyproject.toml and src/idea_vault_gateway/__init__.py. Commit.
  2. Tag and push:
    git tag v0.1.0 && git push origin v0.1.0
    
    GitHub auto-creates the tarball at https://github.com/turek/idea-vault-mcp/archive/refs/tags/v0.1.0.tar.gz. No manual tarballing.
  3. Publish to PyPI (one-time setup: uv reads UV_PUBLISH_TOKEN or ~/.pypirc):
    uv build && uv publish
    
  4. Compute the tarball SHA:
    curl -sL https://github.com/turek/idea-vault-mcp/archive/refs/tags/v0.1.0.tar.gz | shasum -a 256
    
  5. Update the tap repo (turek/homebrew-idea-vault-gateway): bump version, url, and sha256 in Formula/idea-vault-gateway.rb. Commit, push.
  6. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

idea_vault_gateway-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

idea_vault_gateway-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

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

Hashes for idea_vault_gateway-0.1.0.tar.gz
Algorithm Hash digest
SHA256 540722435dd762f06cdb7c51f1a566c09ad30c2c2803995aedf93e952c9dac24
MD5 e406935e8d7f91ef39b2250f0338c84c
BLAKE2b-256 5a63be8bc7718e8553d172ba41f930de4c6bc61cc8191035d49a3220f335ddc8

See more details on using hashes here.

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

Hashes for idea_vault_gateway-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 251dd02717828c3cc487385674e8ce2a59c31685d2060d6c045cd9865602033d
MD5 23b86e2953b9ef0c70a8d14152385abb
BLAKE2b-256 0de6ccf4cf6e6f7a58b8cd803676d3e4ae9392dc63f84c071db9d9c953d07729

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page