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 97799316ca46717c6a09691a2b4e0c56a19e1790
parent 87aec0b90c6e75a362bc691fd7d3f5749ff4f30d
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sun, 26 Jul 2026 03:59:50 +0000

feat: mcp custom routes

Diffstat:
Mmain.py | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/main.py b/main.py @@ -75,6 +75,16 @@ if __name__ == "__main__": mcp = FastMCP("AgentBrowser", auth=auth()) + @mcp.custom_route("/healthz", methods=["GET"]) + async def health_check(request: Request) -> PlainTextResponse: + return PlainTextResponse("OK") + + @mcp.custom_route("/", methods=["GET"]) + async def health_check(request: Request) -> PlainTextResponse: + if os.getenv("REDIRECT_URL"): + return RedirectResponse(url=os.getenv("REDIRECT_URL"), status_code=301) + return PlainTextResponse("OK") + async def setup(): for tool in await proxy.list_tools(): mcp.add_tool(