Skip to content

How to attach a deployed toolbox to Genkit? #702

Open
@antonyharfield

Description

@antonyharfield

Prerequisites

Question

I've deployed MCP Toolbox on Cloud Run and can connect to it from a client (e.g. Claude Desktop) - works really well.

Now I'm building a Firebase web app (hosting + functions) and I'd like to setup Genkit with the tools from MCP Toolbox. Perhaps like this:

import { gemini20Flash, vertexAI } from '@genkit-ai/vertexai'
import { genkit } from 'genkit'

const ai = genkit({
  plugins: [
    vertexAI({ location: 'us-central1', projectId: [] }),
  ],
  model: gemini20Flash,
  tools: [MY_MCP_TOOLBOX_HERE]
})

How do I define MY_MCP_TOOLBOX_HERE? I'd like it to connect use the MCP Toolbox that I've deployed on Cloud Run.

Code

No response

Additional Details

No response

Metadata

Metadata

Assignees

Labels

type: questionRequest for information or clarification.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions