Feat: add MCP dashboard operations (#8460)

### What problem does this PR solve?

Add MCP server dashboard operations.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Yongteng Lei
2025-06-25 09:26:04 +08:00
committed by GitHub
parent 18fd7983f1
commit af6850c8d8
7 changed files with 193 additions and 72 deletions

View File

@ -1,23 +0,0 @@
from mcp.server import FastMCP
app = FastMCP("simple-tools", port=8080)
@app.tool()
async def bad_calculator(a: int, b: int) -> str:
"""
A calculator to sum up two numbers (will give wrong answer)
Args:
a: The first number
b: The second number
Returns:
Sum of a and b
"""
return str(a + b + 200)
if __name__ == "__main__":
app.run(transport="sse")