Metadata-Version: 2.3
Name: litemcp
Version: 0.1.0
Summary: A minimal, lightweight client designed to simplify SDK (e.g., LangChain, Agent SDK) adoption into MCP.
Author: myan
Author-email: myan@redhat.com
Requires-Python: >=3.11
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: commentjson (>=0.9.0,<0.10.0)
Requires-Dist: mcp (>=1.4.1,<2.0.0)
Requires-Dist: openai-agents (>=0.0.6,<0.0.7)
Requires-Dist: rich (>=13.9.4,<14.0.0)
Description-Content-Type: text/markdown

# ✨ litemcp

A minimal, lightweight client designed to simplify SDK adoption into MCP.

litemcp enables rapid and intuitive integration of various AI SDKs (e.g., LangChain, Agent SDK) into your MCP projects, emphasizing simplicity, flexibility, and minimal dependencies.

## 🌟 Key Features

- **Simplicity:** Streamlined interfaces ensure easy integration.
- **Flexibility:** Quickly adopt diverse SDKs with minimal effort.
- **Lightweight:** Designed with minimal dependencies to maximize clarity and performance.

## 🛠 Installation

Install via pip:

```bash
pip install litemcp
```

## 🚀 Quick Start

Here's a concise example demonstrating integration with OpenAI Agent SDK:

```python
import asyncio
import sys
from mcp_server import MCPServerManager
from openai_agent_sdk import Agent, Runner

async def main():
    async with MCPServerManager(sys.argv[1]) as server_manager:
        mcp_server_tools = await server_manager.agent_sdk_tools()
        agent = Agent(
            name="assistant",
            instructions="You are an AI assistant.",
            tools=mcp_server_tools,
        )
        result = await Runner.run(agent, "List all the kubernetes clusters")
        print(result.final_output)

if __name__ == "__main__":
    asyncio.run(main())
```

## 📖 MCP Configuration Schema

Configure your MCP environment with optional server enabling and tool exclusion:

```json
{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": ["mcp-server-fetch"]
    },
    "youtube": {
      "command": "npx",
      "args": ["-y", "github:anaisbetts/mcp-youtube"],
      "exclude_tools": ["..."]
    },
    "mcp-server-commands": {
      "command": "npx",
      "args": ["mcp-server-commands"],
      "requires_confirmation": [
        "run_command",
        "run_script"
      ],
      "enabled": false
    },
     "multicluster-mcp-server": {
      "command": "node",
      "args": [".../multicluster-mcp-server/build/index.js"],
      "enabled": false
    }
  }
}
```

- Use `"enabled": true/false` to activate or deactivate servers.
- Use `"exclude_tools"` to omit unnecessary tools from the current MCP server.

## 📖 Documentation

Detailed documentation coming soon!

## 📢 Contributing

Contributions and suggestions are welcome! Please open an issue or submit a pull request.

## 📜 License

liteMCP is available under the MIT License.

