refactor: better implementation for the mcp mode

This commit is contained in:
Karim shoair
2025-09-28 20:14:04 +03:00
parent 0b729176bc
commit 74f20d2a0e
2 changed files with 28 additions and 12 deletions
+2 -2
View File
@@ -154,8 +154,8 @@ def install(force): # pragma: no cover
def mcp(http, host, port):
from scrapling.core.ai import ScraplingMCPServer
server = ScraplingMCPServer(host, port)
server.run(transport="stdio" if not http else "streamable-http")
server = ScraplingMCPServer()
server.serve(http, host, port)
@command(help="Interactive scraping console")