Skip to content

Phase 1: Implement Core MCP Aggregation #278

Description

@AlexMikhalev

Goal

Enable multiple MCP server aggregation within roles

Tasks

  • Create new crate terraphim_mcp_proxy
  • Implement McpProxy struct for server aggregation
  • Add namespace support for grouping MCP servers
  • Implement tool prefixing (ServerName__toolName)
  • Build routing logic to direct tool calls to correct servers
  • Update terraphim_config with McpNamespace struct
  • Extend Role to support multiple MCP namespaces
  • Add tool override configuration
  • Support environment variable interpolation
  • Create McpServerPool for connection management
  • Add idle session pre-allocation
  • Implement health monitoring and auto-reconnection
  • Add timeout and retry logic

Success Criteria

  • Can aggregate multiple MCP servers into a single namespace
  • Tool calls route to correct servers based on prefix
  • Connection pooling reduces latency
  • Configuration supports namespaces

Timeline

Week 1-2

Related to MetaMCP feature parity: https://github.com/metatool-ai/metamcp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions