2ly MCP client for LangChain agents
Project description
Twoly
2ly MCP client for python LangChain agents.
Install
pip install twoly
Usage
from twoly import TwolyMCP
#...
tools = await TwolyMCP("Hello world").tools();
agent = create_react_agent(llm, tools)
Development
Prepare your venv
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
python -m build
Test local installation
pip install dist/twoly-0.1.0-py3-none-any.whl
Run the examples
List tools
python examples/list_tools.py
Agent call
python examples/agent_call.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
twoly-0.0.2.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
twoly-0.0.2-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file twoly-0.0.2.tar.gz.
File metadata
- Download URL: twoly-0.0.2.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11bff3e157fbcd5b28600172ad4d85bc8ae7e856341f10864cc444c574db7bdf
|
|
| MD5 |
8b7ef9118201aaccdc908cc05617d164
|
|
| BLAKE2b-256 |
c619d67ee0b973fa61213a8b509aafd53dfeb7caffe69324acbb6582c44b1b7b
|
File details
Details for the file twoly-0.0.2-py3-none-any.whl.
File metadata
- Download URL: twoly-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe6f1521f791737a78b2452da9b697798b5e59c1cd1dc0795ee11d8b286690fe
|
|
| MD5 |
e6e700edb59a3f46e3ba014bd31783b3
|
|
| BLAKE2b-256 |
720fcf1c795ac0d1f411e60416dde4e4663ac58271af4d691d28bfad2c5bec4c
|