Skip to content

Commit a6c77a3

Browse files
Merge pull request #9 from PolicyEngine/fix-mcp-http-transport
Use streamable HTTP transport for MCP
2 parents 111839d + 27c3322 commit a6c77a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/policyengine_api/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ async def lifespan(app: FastAPI):
6262
app.include_router(api_router)
6363

6464
# Mount MCP server - exposes all API endpoints as MCP tools at /mcp
65+
# Using mount_http() for streamable HTTP transport (required by Claude Code)
6566
mcp = FastApiMCP(app)
66-
mcp.mount()
67+
mcp.mount_http()
6768

6869

6970
@app.get("/health")

0 commit comments

Comments
 (0)