Commit Graph
3 Commits
Author SHA1 Message Date
Classic298 83bafddf87 auth: verify MCP HTTP clients against the API key (#181)
The MCP server now gates its HTTP transports with a token verifier that
requires the connecting client to present the API key, compared with
hmac.compare_digest to match the FastAPI layer. The stdio transport is
local and does not pass through the HTTP auth layer, so it keeps working
unchanged. Raises the fastmcp floor to >=4.0.0, where the auth API used
here is available.
2026-09-23 12:38:11 -04:00
hussein 2e1005b60a fix: pass API key as Bearer token in MCP server httpx client
FastMCP.from_fastapi() uses an internal httpx client to call the
FastAPI routes. Without auth headers, every tool call (run_command,
read_file, etc.) hits the verify_api_key guard and returns 401.

Fixes tool calls returning: 'HTTP error 401: Unauthorized - Invalid API key'
2026-04-04 02:02:10 +02:00
Timothy Jaeryang Baek edbaf27df7 v0.2.3: optional MCP server mode via open-terminal mcp 2026-02-15 17:02:52 -06:00