Skip to content

Fix MCP proxy broken by toolhive v0.12.2#69

Merged
JAORMX merged 1 commit intomainfrom
fix/mcp-session-factory
Mar 19, 2026
Merged

Fix MCP proxy broken by toolhive v0.12.2#69
JAORMX merged 1 commit intomainfrom
fix/mcp-session-factory

Conversation

@JAORMX
Copy link
Copy Markdown
Contributor

@JAORMX JAORMX commented Mar 19, 2026

Summary

  • Fix: Toolhive v0.12.2 made SessionFactory a required field on vmcpserver.Config. The VMCPProvider wasn't setting it, causing Services() to fail with "SessionFactory is required but was not provided" — surfaced as "MCP unavailable, continuing without MCP support".
  • Integration test: Add provider_integration_test.go that calls Services() end-to-end against a live ToolHive instance, covering all built-in authz profiles. Skips gracefully when thv is absent or no servers are running.
  • CI job: New integration-test job provisions ToolHive and a fetch MCP server via toolhive-actions so the integration test runs on every PR.

Test plan

  • task test — all existing tests pass
  • task lint — no issues
  • Manual bbox claude-code run confirms MCP tools are discovered
  • Integration tests pass locally against running ToolHive
  • CI integration-test job passes with toolhive-actions provisioned server

🤖 Generated with Claude Code

Toolhive v0.12.2 made SessionFactory a required field on
vmcpserver.Config. Wire a session factory into the VMCPProvider so
the vmcp server can be created successfully again.

Add an integration test that verifies Services() end-to-end against
a live ToolHive instance, and a CI job that provisions one via
toolhive-actions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JAORMX JAORMX force-pushed the fix/mcp-session-factory branch from d9048a5 to dcf30b3 Compare March 19, 2026 06:42
@JAORMX JAORMX merged commit 8fbea03 into main Mar 19, 2026
8 checks passed
@JAORMX JAORMX deleted the fix/mcp-session-factory branch March 19, 2026 06:53
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.

1 participant