From 21ba8bc1e558e831f26b6f387013fe1085084326 Mon Sep 17 00:00:00 2001 From: Michel Osswald Date: Thu, 6 Mar 2025 20:58:39 +0100 Subject: [PATCH] removed client folder --- client/README.md | 1 - client/__init__.py | 0 client/__main__.py | 5 ----- client/client.py | 35 ----------------------------------- 4 files changed, 41 deletions(-) delete mode 100644 client/README.md delete mode 100644 client/__init__.py delete mode 100644 client/__main__.py delete mode 100644 client/client.py diff --git a/client/README.md b/client/README.md deleted file mode 100644 index 73ba44e..0000000 --- a/client/README.md +++ /dev/null @@ -1 +0,0 @@ -# debug client for testing diff --git a/client/__init__.py b/client/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/client/__main__.py b/client/__main__.py deleted file mode 100644 index ce013de..0000000 --- a/client/__main__.py +++ /dev/null @@ -1,5 +0,0 @@ -import sys - -from client import main - -sys.exit(main()) diff --git a/client/client.py b/client/client.py deleted file mode 100644 index 989137b..0000000 --- a/client/client.py +++ /dev/null @@ -1,35 +0,0 @@ -import asyncio -import json -import logging -import os -import shutil -from contextlib import AsyncExitStack -from typing import Any - -import httpx -from dotenv import load_dotenv -from mcp import ClientSession, StdioServerParameters -from mcp.client.sse import sse_client - -logging.basicConfig( - level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s" -) - - -async def main(): - async with sse_client( - url = "http://localhost:8000/sse", - ) as streams: - async with ClientSession(*streams) as session: - await session.initialize() - - # List available tools - tools = await session.list_tools() - print(tools) - - # Call the browser_use tool - result = await session.call_tool("browser_use", {"url": "https://example.com", "action": "save the title"}) - print(result) - - -asyncio.run(main()) \ No newline at end of file