Spaces:
Sleeping
Sleeping
Download src/mcp/__main__.py from hashir-qt/tasklert-api: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/spaces/hashir-qt/tasklert-api/resolve/main/src/mcp/__main__.py
- Command line
-
hf download hf://spaces/hashir-qt/tasklert-api/src/mcp/__main__.py
-
curl -L -o __main__.py https://huggingface.co/spaces/hashir-qt/tasklert-api/resolve/main/src/mcp/__main__.py
414 Bytes
| """Entry point for ``python -m src.mcp`` — starts the MCP server in stdio mode.""" | |
| import asyncio | |
| from mcp.server.stdio import stdio_server | |
| from .server import server | |
| async def main(): | |
| async with stdio_server() as (read_stream, write_stream): | |
| await server.run( | |
| read_stream, | |
| write_stream, | |
| server.create_initialization_options(), | |
| ) | |
| asyncio.run(main()) | |