Metadata-Version: 2.4
Name: scp-py-client
Version: 0.0.1
Summary: SCP Client - SCP协议客户端库，支持流式和非流式通信
Author: hanxiaozuo
License-Expression: MIT
Project-URL: Homepage, https://github.com/hanxiaozuo/scp-client
Project-URL: Repository, https://github.com/hanxiaozuo/scp-client
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: mcp>=1.25.0
Requires-Dist: httpx>=0.28.0
Requires-Dist: httpx-sse>=0.4.0

# 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())
```
