Metadata-Version: 2.4
Name: maton-agent-toolkit
Version: 0.1.1
Summary: Maton Agent Toolkit
Author-email: Maton <support@maton.ai>
License: The MIT License (MIT)
        
        Copyright (c) 2026 Maton
        
        Copyright (c) 2025 Stripe
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Bug Tracker, https://github.com/maton-ai/agent-toolkit/issues
Project-URL: Source Code, https://github.com/maton-ai/agent-toolkit
Project-URL: Documentation, https://maton.ai
Keywords: maton,api,automation,mcp,agents
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pydantic>=2.0.0
Requires-Dist: mcp>=1.0.0
Provides-Extra: openai
Requires-Dist: openai>=1.0.0; extra == "openai"
Requires-Dist: agents>=0.0.84; extra == "openai"
Provides-Extra: langchain
Requires-Dist: langchain>=0.1.0; extra == "langchain"
Provides-Extra: crewai
Requires-Dist: crewai>=0.1.0; extra == "crewai"
Provides-Extra: strands
Requires-Dist: strands-agents>=1.0.0; extra == "strands"
Provides-Extra: all
Requires-Dist: maton-agent-toolkit[openai]; extra == "all"
Requires-Dist: maton-agent-toolkit[langchain]; extra == "all"
Requires-Dist: maton-agent-toolkit[crewai]; extra == "all"
Requires-Dist: maton-agent-toolkit[strands]; extra == "all"
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: pyright>=1.1.0; extra == "dev"
Dynamic: license-file

# Maton Agent Toolkit - Python

The Maton Agent Toolkit connects popular agent frameworks — OpenAI's Agents SDK, LangChain, CrewAI, and Strands — to the [Maton MCP server](https://mcp.maton.ai) through function calling. Instead of bundling a fixed set of actions, the toolkit connects to the remote Maton MCP server, discovers the available tools, and exposes them in each framework's native tool format. This lets your agent connect and automate 150+ apps (Google Workspace, Microsoft 365, GitHub, Notion, Slack, HubSpot, and more).

## Installation

You don't need this source code unless you want to modify the package. If you just want to use the package, just run:

```sh
uv pip install maton-agent-toolkit
```

### Requirements

-   Python 3.11+

## Usage

The library needs to be configured with your Maton API key. You can create one at [maton.ai](https://maton.ai), or set the `MATON_API_KEY` environment variable. The toolkit connects to `https://mcp.maton.ai` with your key in the `Authorization: Bearer` header.

```python
from maton_agent_toolkit.openai.toolkit import create_maton_agent_toolkit

async def main():
    toolkit = await create_maton_agent_toolkit(api_key="YOUR_MATON_API_KEY")
    tools = toolkit.get_tools()
    # ... use tools ...
    await toolkit.close()  # Clean up when done
```

The toolkit works with OpenAI's Agents SDK, LangChain, CrewAI, and Strands and can be passed as a list of tools. For example:

```python
from agents import Agent

async def main():
    toolkit = await create_maton_agent_toolkit(api_key="YOUR_MATON_API_KEY")

    maton_agent = Agent(
        name="Maton Agent",
        instructions="You are an expert at automating apps with Maton",
        tools=toolkit.get_tools()
    )
    # ... use agent ...
    await toolkit.close()
```

Import from the framework-specific module you need:

- `maton_agent_toolkit.openai.toolkit`
- `maton_agent_toolkit.langchain.toolkit`
- `maton_agent_toolkit.crewai.toolkit`
- `maton_agent_toolkit.strands.toolkit`

### Context

You can provide a default `connection` that all requests route through (sent as the `Maton-Connection` header). If omitted, Maton uses the newest active connection for the target app.

```python
toolkit = await create_maton_agent_toolkit(
    api_key="YOUR_MATON_API_KEY",
    configuration={
        "context": {
            "connection": "conn_123"
        }
    }
)
```

## Development

```
uv venv --python 3.11
source .venv/bin/activate
uv pip install -r requirements.txt
```
