mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-24 16:27:13 +00:00
add mcp routes
This commit is contained in:
@@ -17,7 +17,15 @@ from litellm.proxy._experimental.mcp_server.tool_registry import (
|
||||
)
|
||||
from litellm.types.mcp_server.tool_registry import *
|
||||
|
||||
router = APIRouter()
|
||||
router = APIRouter(
|
||||
prefix="/mcp",
|
||||
tags=["MCP"],
|
||||
)
|
||||
|
||||
|
||||
@router.get("/")
|
||||
async def root():
|
||||
return {"message": "MCP Server is running"}
|
||||
|
||||
|
||||
@router.get("/tools/list", response_model=ListToolsResponse)
|
||||
|
||||
Reference in New Issue
Block a user