Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

feat: add Google Vertex AI support for Claude models - #146

Merged
ezynda3 merged 1 commit into
mark3labs:mainfrom
shanemcd:feat/google-vertex-anthropic-provider
Jan 10, 2026
Merged

feat: add Google Vertex AI support for Claude models#146
ezynda3 merged 1 commit into
mark3labs:mainfrom
shanemcd:feat/google-vertex-anthropic-provider

Conversation

@shanemcd

Copy link
Copy Markdown
Contributor

Summary

This PR adds support for using Claude models via Google Cloud Vertex AI through the google-vertex-anthropic provider. This enables users who have Claude access through their Google Cloud account to use mcphost with Vertex AI authentication.

Changes

  • Add google-vertex-anthropic provider case and createVertexAnthropicProvider() function
  • Support multiple env var names for project/region to match eino-claude and Claude Code:
    • Project: ANTHROPIC_VERTEX_PROJECT_ID, GOOGLE_CLOUD_PROJECT, GCLOUD_PROJECT
    • Region: CLOUD_ML_REGION (defaults to "global" if not set)
  • Upgrade eino from v0.5.11 to v0.7.11 (required by eino-claude v0.1.12)
  • Migrate schema API from OpenAPI v3 to JSON Schema (eino v0.7.11 API change)

Usage

# Authenticate with Google Cloud
gcloud auth application-default login

# Set required environment variables
export ANTHROPIC_VERTEX_PROJECT_ID="your-project-id"
export CLOUD_ML_REGION="us-east5"  # or use default "global"

# Run mcphost
mcphost --model google-vertex-anthropic:claude-opus-4-5@20251101

Dependencies

This PR depends on Vertex AI support added to eino-claude:

Reference

Test Plan

  • Build succeeds
  • All existing tests pass
  • Manual testing with Vertex AI authentication

🤖 Generated with Claude Code

@shanemcd
shanemcd force-pushed the feat/google-vertex-anthropic-provider branch from 41e7c1a to d128d1c Compare December 26, 2025 21:52
shanemcd added a commit to tndrl/tndrl that referenced this pull request Dec 26, 2025
Use mcphost fork with google-vertex-anthropic provider until
mark3labs/mcphost#146 merges. Add vertex.yaml example config.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
shanemcd added a commit to tndrl/tndrl that referenced this pull request Dec 26, 2025
Use mcphost fork with google-vertex-anthropic provider until
mark3labs/mcphost#146 merges. Add vertex.yaml example config.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add support for using Claude models via Google Cloud Vertex AI through
the `google-vertex-anthropic` provider. This enables users who have
Claude access through their Google Cloud account to use mcphost with
Vertex AI authentication.

Changes:
- Add `google-vertex-anthropic` provider case and createVertexAnthropicProvider()
- Support multiple env var names for project/region to match eino-claude:
  - Project: ANTHROPIC_VERTEX_PROJECT_ID, GOOGLE_CLOUD_PROJECT, GCLOUD_PROJECT
  - Region: CLOUD_ML_REGION (defaults to "global" if not set)
- Upgrade eino from v0.5.11 to v0.7.11 (required by eino-claude v0.1.12)
- Migrate schema API from OpenAPI v3 to JSON Schema (eino v0.7.11 change)

Usage:
  # Authenticate with Google Cloud
  gcloud auth application-default login

  # Set required environment variables
  export ANTHROPIC_VERTEX_PROJECT_ID="your-project-id"
  export CLOUD_ML_REGION="us-east5"  # or use default "global"

  # Run mcphost
  mcphost --model google-vertex-anthropic:claude-sonnet-4@20250514

Reference: https://docs.anthropic.com/en/docs/claude-code/google-vertex-ai

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@shanemcd
shanemcd force-pushed the feat/google-vertex-anthropic-provider branch from d128d1c to 4088422 Compare January 9, 2026 18:49
@ezynda3
ezynda3 merged commit c4aa911 into mark3labs:main Jan 10, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants