agent-browser-mcp

Proxy agent-browser MCP stdio over HTTP/SSE using FastMCP.
git clone https://unitehenry.com/git/agent-browser-mcp.git
Log | Files | Refs | README

commit 2b01391517b9cede9e042aed1ba09aae66eb7847
parent bc0892346db04bb33095f07acda86f7838e4416e
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sat, 25 Jul 2026 02:17:30 +0000

feat: authorized github username

Diffstat:
Mmain.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/main.py b/main.py @@ -18,8 +18,8 @@ class AuthMiddleware(Middleware): if token is None: raise AuthorizationError("Unauthorized") - if token.claims.get("login") != "unitehenry": - print(token.claims) + if token.claims.get("login") != os.getenv("GITHUB_USERNAME", "").strip(): + raise AuthorizationError("Unauthorized") result = await call_next(context) @@ -31,6 +31,8 @@ def auth(): return None if not os.getenv("GITHUB_CLIENT_SECRET"): return None + if not os.getenv("GITHUB_USERNAME"): + return None if not os.getenv("BASE_URL"): return None