Spaces:
Sleeping
Sleeping
Download registry.py from EMsurya/mcp-python-server: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/spaces/EMsurya/mcp-python-server/resolve/main/registry.py
- Command line
-
hf download hf://spaces/EMsurya/mcp-python-server/registry.py
-
curl -L -o registry.py https://huggingface.co/spaces/EMsurya/mcp-python-server/resolve/main/registry.py
295 Bytes
| import inspect | |
| from primitives import tools | |
| def get_tool_functions(): | |
| "Only get async function and function is tool from tools.py" | |
| return { | |
| name: func | |
| for name, func in inspect.getmembers(tools, inspect.iscoroutinefunction) | |
| if not name.startswith("_") | |
| } | |