Skip to content

RFC: MCP Optimizer migration to vMCP#22

Merged
JAORMX merged 3 commits intomainfrom
rfc/0022-optimizer-migration-to-vmcp
Jan 14, 2026
Merged

RFC: MCP Optimizer migration to vMCP#22
JAORMX merged 3 commits intomainfrom
rfc/0022-optimizer-migration-to-vmcp

Conversation

@aponcedeleonch
Copy link
Copy Markdown
Member

This RFC proposes migrating MCP-Optimizer functionality from a standalone Python service to native vMCP tools, unifying the codebase and enabling full integration with ToolHive's authentication, authorization, and observability infrastructure.

Add two new optimizer tools as vMCP-native MCP tools:

  • optim.find_tool: Semantic and keyword-based tool discovery using hybrid search (embeddings + BM25)
  • optim.call_tool: Dynamic tool invocation on any backend server

These tools operate on vMCP's internal state and provide meta-capabilities over aggregated backend tools.

  • Storage: SQLite as the default embedding storage backend with a flexible interface for future providers
  • Embeddings: HuggingFace Text Embeddings Inference (TEI) as the initial embedding provider, with interface supporting future vLLM/OpenAI
  • Authentication: Full reuse of vMCP's two-boundary auth model with no modifications required
  • Scope: One-to-one relationship between optimizer and vMCP instance (no cross-vMCP search)

This RFC proposes migrating MCP-Optimizer functionality from a standalone
Python service to native vMCP tools, unifying the codebase and enabling
full integration with ToolHive's authentication, authorization, and
observability infrastructure.

Add two new optimizer tools as vMCP-native MCP tools:
- `optim.find_tool`: Semantic and keyword-based tool discovery using
  hybrid search (embeddings + BM25)
- `optim.call_tool`: Dynamic tool invocation on any backend server

These tools operate on vMCP's internal state and provide meta-capabilities
over aggregated backend tools.

- **Storage**: SQLite as the default embedding storage backend with a
  flexible interface for future providers
- **Embeddings**: HuggingFace Text Embeddings Inference (TEI) as the
  initial embedding provider, with interface supporting future vLLM/OpenAI
- **Authentication**: Full reuse of vMCP's two-boundary auth model with
  no modifications required
- **Scope**: One-to-one relationship between optimizer and vMCP instance
  (no cross-vMCP search)
Copy link
Copy Markdown

@ptelang ptelang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment thread rfcs/THV-0022-optimizer-migration-to-vmcp.md Outdated
Comment thread rfcs/THV-0022-optimizer-migration-to-vmcp.md Outdated
Comment thread rfcs/THV-0022-optimizer-migration-to-vmcp.md
@JAORMX JAORMX merged commit 0560d87 into main Jan 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants