We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9162e80 + 2e1005b commit 2982fe9Copy full SHA for 2982fe9
1 file changed
open_terminal/mcp_server.py
@@ -1,7 +1,15 @@
1
"""MCP server — exposes every FastAPI endpoint as an MCP tool."""
2
3
from fastmcp import FastMCP
4
-
5
from open_terminal.main import app
+from open_terminal.env import API_KEY
6
7
-mcp = FastMCP.from_fastapi(app=app, name="Open Terminal")
+mcp = FastMCP.from_fastapi(
8
+ app=app,
9
+ name="Open Terminal",
10
+ httpx_client_kwargs={
11
+ "headers": {
12
+ "Authorization": f"Bearer {API_KEY}",
13
+ }
14
+ },
15
+)
0 commit comments