Spaces:
Running
Running
| """Sample code for FastMCP using MCPMixin.""" | |
| from fastmcp import FastMCP | |
| from fastmcp.contrib.bulk_tool_caller import BulkToolCaller | |
| mcp = FastMCP() | |
| def echo_tool(text: str) -> str: | |
| """Echo the input text""" | |
| return text | |
| bulk_tool_caller = BulkToolCaller() | |
| bulk_tool_caller.register_tools(mcp) | |