mirror of
https://github.com/Shubhamsaboo/awesome-llm-apps.git
synced 2026-11-16 12:06:36 -06:00
[PR #733] [MERGED] feat(browser_mcp_agent): document and unblock local Ollama / OpenAI-compatible providers #5326
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/Shubhamsaboo/awesome-llm-apps/pull/733
Author: @RyanAlberts
Created: 4/17/2026
Status: ✅ Merged
Merged: 4/19/2026
Merged by: @Shubhamsaboo
Base:
main← Head:feat/browser-mcp-agent-local-ollama📝 Commits (1)
664e65cfeat(browser_mcp_agent): document and unblock local Ollama / OpenAI-compatible providers📊 Changes
4 files changed (+68 additions, -9 deletions)
View changed files
📝
mcp_ai_agents/browser_mcp_agent/README.md(+38 -5)📝
mcp_ai_agents/browser_mcp_agent/main.py(+13 -3)📝
mcp_ai_agents/browser_mcp_agent/mcp_agent.config.yaml(+11 -0)📝
mcp_ai_agents/browser_mcp_agent/mcp_agent.secrets.yaml.example(+6 -1)📄 Description
Summary
Issue #329 (7 comments, unresolved) asked how to run
browser_mcp_agentagainst a local Ollama instance. As @AndrewHoh (mcp-agent maintainer) noted in that thread, the framework already supports this — Ollama's/v1endpoint is OpenAI-compatible, so no new dependency is required. The friction is:main.pyhas a hardcodedos.getenv(\"OPENAI_API_KEY\")gate that unconditionally rejects users who correctly configured credentials viamcp_agent.secrets.yaml— both OpenAI and Ollama users hit this spurious error.mcp_agent.config.yaml/mcp_agent.secrets.yaml.example.export OPENAI_API_KEY=...in step 4 but the on-page UI text says "Enter your OpenAI API key in your mcp_agent.secrets.yaml file" — two contradictory setup paths.This PR fixes all three with minimal code churn.
Changes
main.py: the env-var gate now accepts a presentmcp_agent.secrets.yamlas valid credentials. Error message points users to both paths (env var or secrets file) and mentions Ollama.mcp_agent.config.yaml: added a commented Ollama example block showingbase_url: http://localhost:11434/v1+default_model: llama3.2. OpenAI default is unchanged.mcp_agent.secrets.yaml.example: added commented Ollama example noting Ollama ignores api_key.README.md: new "Running with a local Ollama model" section; step 4 now clearly offers env var or secrets.yaml (pick one), which matches the on-page help text.Test plan
main.pyparses with `ast.parse`; no new importsNo functional change for existing OpenAI-env-var users.
Refs #329
Credit to @AndrewHoh for the framework-level pointer that made this a config + docs change rather than a code rewrite.
Made with Cursor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.