Skip to main content

AlphaAvatar MCP Plugin

A high-performance Model Context Protocol (MCP) orchestration layer for AlphaAvatar.

This plugin provides a unified, parallel, and latency-optimized interface for discovering and invoking tools exposed by one or more MCP servers — without relying on LiveKit’s native MCP tool injection chain.

We intentionally disable LiveKit’s native “inject each MCP tool into Agent as separate tool” mechanism.

Why?

  • Too many tools degrade Agent reasoning performance.
  • Serial tool calls increase latency.
  • Tool explosion harms LLM decision quality.

Instead, we provide a single unified MCP interface that:

  • Supports tool discovery
  • Enables parallel execution
  • Coordinates multi-server workflows
  • Improves overall Agent tool-call performance

Overview

The MCP Plugin acts as a Tool Orchestrator Middleware between AlphaAvatar Agents and external MCP servers.

It enables:

  • 🔍 Tool discovery across heterogeneous MCP servers
  • ⚡ Parallel tool execution (concurrent dispatch)
  • 🧠 Workflow coordination across multiple servers
  • 🔗 Unified abstraction for diverse capabilities (RAG, search, automation, data APIs, etc.)

Unlike traditional tool injection approaches, this design:

  • Prevents exponential tool growth inside the Agent
  • Reduces reasoning noise
  • Avoids serial execution bottlenecks
  • Improves scalability for multi-server MCP deployments

Core Architecture

AlphaAvatar Agent
        │
        ▼
    MCPHost (Unified Tool)
        │
        ├── search_tools()
        └── call_tools()
                │
                ├── MCP Server A
                ├── MCP Server B
                └── MCP Server C

The Agent only sees one tool: MCP.

Internally, MCPHost:

  1. Discovers relevant tools
  2. Validates schemas
  3. Dispatches calls in parallel
  4. Aggregates structured responses

Performance Design Philosophy

❌ What We Avoid

  • Injecting hundreds of tools into the Agent
  • Serial tool invocation chains
  • Tool schema explosion
  • Repeated LLM tool selection loops

✅ What We Enable

  • Single unified MCP interface
  • Parallel tool dispatch
  • Multi-server orchestration
  • Scalable architecture

Installation

pip install alpha-avatar-plugins-mcp

Usage

Step 1️⃣ Enable MCP in Configuration

Enable MCP and register remote MCP servers inside your yaml configuration file.

enable_mcp: true

mcp_servers:
  livekit-docs:
    url: "https://docs.livekit.io/mcp"
    instruction: >
      LiveKit Docs MCP Server provides unified access to the LiveKit ecosystem,
      allowing you to search documentation, explore GitHub code across livekit
      and livekit-examples repositories, retrieve package changelogs, and browse
      Python Agents SDK examples—all in one place.

  github-copilot:
    url: "https://api.githubcopilot.com/mcp/"
    headers:
      Authorization: "Bearer <GITHUB_PAT>"
    instruction: >
      The GitHub MCP server (via GitHub Copilot) enables AI agents to interact
      with repositories, issues, pull requests, and code through a standardized
      MCP interface.

🔐 Environment Variables

Sensitive credentials such as <GITHUB_PAT> should be injected via environment variables:

export GITHUB_PAT=your_personal_access_token

At runtime:

  • The system automatically resolves <GITHUB_PAT>
  • Injects it into the request headers
  • Keeps secrets out of version-controlled config files

Step 2️⃣ Start AlphaAvatar

Once MCP is enabled and servers are configured:

alphaavatar serve <yarm-file-path>

During startup:

  1. MCPHost initializes
  2. All configured MCP servers are connected
  3. Server metadata is injected into MCP tool description
  4. MCP becomes available as a unified tool inside the Agent

Metadata

Release files for alpha-avatar-plugins-mcp 0.6.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alpha-avatar-plugins-mcp 0.6.7
File Size Uploaded Provenance
alpha_avatar_plugins_mcp-0.6.7.tar.gz 15.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for alpha-avatar-plugins-mcp 0.6.7
File Interpreter ABI Platform
alpha_avatar_plugins_mcp-0.6.7-py3-none-any.whl Python 3 none any Details

Total release size: 34.6 kB

Release files / alpha_avatar_plugins_mcp-0.6.7.tar.gz

Download URL alpha_avatar_plugins_mcp-0.6.7.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
83f812cc47dcfc80d67a0248416c4d03d11493ff33d77b853674ec50b3aecab4
BLAKE2b-256 checksum
How to use checksums
9b5b71849b1ea7c51266c6d168b6cb106c6035803bcaa691d44d8cf2e5dc78d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / alpha_avatar_plugins_mcp-0.6.7-py3-none-any.whl

Download URL alpha_avatar_plugins_mcp-0.6.7-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07485e99772cd8f8d66ad19911a2b56a80d1d7a855ff640869c6ae45f7ef5dd4
BLAKE2b-256 checksum
How to use checksums
9a32a02057af04d3cd371a1e5c42cb9204ca19806cb7211d0aabf9e6b94bcae0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for alpha-avatar-plugins-mcp 0.6.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page