Spaces:
Sleeping
Sleeping
| from mcp.server.fastmcp import FastMCP | |
| mcp = FastMCP( | |
| name = 'Calculator tool', | |
| host='0.0.0.0', | |
| port='8080' | |
| ) | |
| def addTool(a:int,b:int)->int: | |
| return a+b | |
| def greetingPrompt(style :str,userName:str)->str: | |
| context = f""" | |
| The user called : {userName} | |
| answer with a greeting respecting this style : {style} | |
| don't add any additional explinations. | |
| """ | |
| return context | |
| mcp.run('sse') |