Metadata-Version: 2.4
Name: twoly
Version: 0.0.2
Summary: 2ly MCP client for LangChain agents
Author-email: Eiger AI <eiger@alpinai.ch>
License: Apache-2.0
Project-URL: Homepage, https://github.com/yourusername/twoly
Project-URL: Issues, https://github.com/yourusername/twoly/issues
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp
Requires-Dist: langchain-core
Requires-Dist: langchain-mcp-adapters
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
Requires-Dist: build>=0.10; extra == "dev"
Requires-Dist: twine>=5.0; extra == "dev"
Provides-Extra: examples
Requires-Dist: langgraph>=0.2.0; extra == "examples"
Requires-Dist: langchain-openai>=0.2.0; extra == "examples"
Requires-Dist: pydantic>=2.0.0; extra == "examples"
Requires-Dist: python-dotenv>=1.0.0; extra == "examples"
Provides-Extra: all
Requires-Dist: twoly[dev]; extra == "all"
Requires-Dist: twoly[examples]; extra == "all"
Dynamic: license-file

# Twoly

2ly MCP client for python LangChain agents.

## Install

```bash
pip install twoly
```

## Usage

```python
from twoly import TwolyMCP
#...
tools = await TwolyMCP("Hello world").tools();
agent = create_react_agent(llm, tools)
```

# Development

## Prepare your venv

```bash
cd packages/twoly
python3.11 -m venv .venv # any version python3.10+ will do
source .venv/bin/activate
pip install --upgrade pip
pip install ".[all]"
```

## Build locally

```bash
python -m build
```

## Test local installation

```bash
pip install dist/twoly-0.1.0-py3-none-any.whl
```

## Run the examples

**List tools**

```bash
python examples/list_tools.py
```

**Agent call**

```bash
python examples/agent_call.py
```
