Skip to content

Commit 1a02b36

Browse files
IvanBirukclaude
andcommitted
Change MCP endpoint path from /mcp/ to /api/
- Update HTTP transport path to use cleaner /api/ endpoint - Maintains separation from /health endpoint to avoid conflicts - Tested locally: both /health and /api/ endpoints work correctly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 9768c18 commit 1a02b36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codealive_mcp_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ async def search_code(
740740

741741
# Run the server with the selected transport
742742
if args.transport == "http":
743-
# Use root path instead of /mcp/
744-
mcp.run(transport="http", host=args.host, port=args.port, path="/")
743+
# Use /api path to avoid conflicts with health endpoint
744+
mcp.run(transport="http", host=args.host, port=args.port, path="/api")
745745
else:
746746
mcp.run(transport="stdio")

0 commit comments

Comments
 (0)