mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
add mcp routes
This commit is contained in:
parent
f44a5a86db
commit
8909e24efc
1 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue