Metadata-Version: 2.4
Name: langchain-mcp-m2m
Version: 0.1.0
Summary: LangChain-compatible MCP client with OAuth 2.0 Client Credentials (M2M) flow support
Project-URL: Homepage, https://paywithlocus.com
Project-URL: Repository, https://github.com/LocusTechnologies/langchain-mcp-m2m
Project-URL: Issues, https://github.com/LocusTechnologies/langchain-mcp-m2m/issues
Author: Locus Technologies
License: MIT
License-File: LICENSE
Keywords: anthropic,auth,authentication,client-credentials,cognito,langchain,m2m,machine-to-machine,mcp,model-context-protocol,oauth,oauth2
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Requires-Dist: langchain-mcp-adapters>=0.1.0
Requires-Dist: mcp>=1.0.0
Provides-Extra: dev
Requires-Dist: black>=24.0.0; extra == 'dev'
Requires-Dist: mypy>=1.8.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: ruff>=0.3.0; extra == 'dev'
Description-Content-Type: text/markdown

# langchain-mcp-m2m

LangChain MCP client with OAuth 2.0 Client Credentials (M2M) support.

## Install

```bash
pip install langchain-mcp-m2m
```

## Usage

```python
from langchain_mcp_m2m import MCPClientCredentials

client = MCPClientCredentials({
    "server": {
        "url": "http://localhost:3301/mcp",
        "transport": "streamable_http",
        "auth": {
            "client_id": "your-client-id",
            "client_secret": "your-client-secret"
        }
    }
})

await client.initialize()
tools = await client.get_tools()
```

Full documentation: https://github.com/LocusTechnologies/langchain-mcp-m2m

## License

MIT
