mix mcpixir (Mcpixir v0.1.0)

View Source

Mcpixir example tasks demonstrating the library's capabilities.

Mcpixir is an Elixir library to connect LLMs (Language Learning Models) to MCP (Machine Control Protocol) servers.

Available Tasks

API Keys

To use these examples, you'll need valid API keys for either OpenAI or Anthropic. Set them in your environment variables:

export OPENAI_API_KEY=your-openai-key
export ANTHROPIC_API_KEY=your-anthropic-key

Global Options

Most tasks support these common options:

  • --provider=[openai|anthropic] - LLM provider to use
  • --model=MODEL - Specific LLM model to use
  • --query=QUERY - The query to send to the LLM

Examples

mix mcpixir               # Show this help
mix mcpixir.chat          # Run chat example with OpenAI
mix mcpixir.airbnb --provider=anthropic  # Run Airbnb example with Anthropic