API Reference Mcpixir v0.1.0

View Source

Modules

Mcpixir is a library for connecting LLMs (Language Learning Models) to MCP (Machine Control Protocol) servers.

Adapter to convert MCP tools to LangChain compatible tools.

Base behaviour for MCP agents.

Agent implementation that integrates LLMs with MCP tools.

Builds system prompts for MCP agents.

Templates for MCP agent prompts.

Application module for Mcpixir that handles LangChain integration and other application-level concerns.

Client for managing MCP connections and sessions.

Configuration types and utilities for MCP.

Base behaviour for MCP connectors.

HTTP connector for MCP.

Stdio connector for MCP.

WebSocket connector for MCP.

Represents an intermediate step in agent execution.

Client for interacting with LLM providers.

Anthropic-specific implementation of the LLM client.

Base behaviour for LLM clients.

LangChain-specific implementation of the LLM client.

Mock implementation of the LLM client.

OpenAI-specific implementation of the LLM client.

Logging functionality for MCP.

Represents a message in a conversation.

Manages server connections and tool availability.

Manages connections to MCP implementations.

Base behaviour for task managers.

Task manager that sends events using Server-Sent Events (SSE).

Task manager that outputs events to stdio.

Task manager that sends events over WebSocket.

Represents a tool that can be executed by MCP.

Mix Tasks

Mcpixir example tasks demonstrating the library's capabilities.

Demonstrates using Mcpixir to connect an LLM to Airbnb through MCP tools.

Demonstrates using Mcpixir to control Blender 3D via MCP.

Demonstrates using Mcpixir to control a web browser via Playwright MCP.

Demonstrates a basic chat interaction with an LLM using Mcpixir.

Demonstrates using Mcpixir to interact with the filesystem via MCP.

Demonstrates using Mcpixir to connect to an MCP server via HTTP.

Demonstrates using Mcpixir with multiple MCP servers at once.

Handles the release process for Mcpixir.