Added LiteLLM to the stack
This commit is contained in:
20
Development/litellm/tests/mcp_tests/mcp_server.py
Normal file
20
Development/litellm/tests/mcp_tests/mcp_server.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# math_server.py
|
||||
from mcp.server.fastmcp import FastMCP
|
||||
|
||||
mcp = FastMCP("Math")
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
def add(a: int, b: int) -> int:
|
||||
"""Add two numbers"""
|
||||
return a + b
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
def multiply(a: int, b: int) -> int:
|
||||
"""Multiply two numbers"""
|
||||
return a * b
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
mcp.run(transport="stdio")
|
Reference in New Issue
Block a user