# scp-client

SCP（Science Context Protocol）相关服务的客户端工具库。

## 安装

```bash
pip install scp-client
```

## 使用

### 非流式（streamable-http / sse）

```python
import asyncio
from scp_client import fetch_scp_Client


async def main():
    client = fetch_scp_Client(
        server_url="https://your-mcp-server.example.com/mcp",
        transport_type="streamable-http",  # or "sse"
        headers_config={},
    )
    await client.connect()
    await client.list_tools()
    await client.disconnect()


if __name__ == "__main__":
    asyncio.run(main())
```

### 流式（streamable-http）

```python
import asyncio
from scp_client import stream_scp_Client


async def main():
    client = stream_scp_Client(
        server_url="https://your-mcp-server.example.com/mcp",
        headers_config={},
    )
    await client.connect()
    await client.list_tools()
    await client.disconnect()


if __name__ == "__main__":
    asyncio.run(main())
```
