@genkit-ai/mcp 1.17.1 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -17,7 +17,7 @@ npm i genkit @genkit-ai/mcp
17
17
  To connect to one or more MCP servers, you use the `createMcpHost` function. This function returns a `GenkitMcpHost` instance that manages connections to the configured MCP servers.
18
18
 
19
19
  ```ts
20
- import { googleAI } from '@genkit-ai/googleai';
20
+ import { googleAI } from '@genkit-ai/google-genai';
21
21
  import { createMcpHost } from '@genkit-ai/mcp';
22
22
  import { genkit } from 'genkit';
23
23
 
@@ -63,7 +63,7 @@ The `createMcpHost` function initializes a `GenkitMcpHost` instance, which handl
63
63
  - **`version`**: (optional, string) The version of the MCP host plugin. Defaults to "1.0.0".
64
64
  - **`rawToolResponses`**: (optional, boolean) When `true`, tool responses are returned in their raw MCP format; otherwise, they are processed for Genkit compatibility. Defaults to `false`.
65
65
  - **`mcpServers`**: (required, object) An object where each key is a client-side name (namespace) for an MCP server, and the value is the configuration for that server.
66
-
66
+
67
67
  Each server configuration object can include:
68
68
  - **`disabled`**: (optional, boolean) If `true`, this server connection will not be attempted. Defaults to `false`.
69
69
  - One of the following server connection configurations:
@@ -80,7 +80,7 @@ The `createMcpHost` function initializes a `GenkitMcpHost` instance, which handl
80
80
  For scenarios where you only need to connect to a single MCP server, or prefer to manage client instances individually, you can use `createMcpClient`.
81
81
 
82
82
  ```ts
83
- import { googleAI } from '@genkit-ai/googleai';
83
+ import { googleAI } from '@genkit-ai/google-genai';
84
84
  import { createMcpClient } from '@genkit-ai/mcp';
85
85
  import { genkit } from 'genkit';
86
86
 
@@ -146,7 +146,7 @@ MCP tools return a `content` array as opposed to a structured response like most
146
146
  You can also expose all of the tools and prompts from a Genkit instance as an MCP server using the `createMcpServer` function.
147
147
 
148
148
  ```ts
149
- import { googleAI } from '@genkit-ai/googleai';
149
+ import { googleAI } from '@genkit-ai/google-genai';
150
150
  import { createMcpServer } from '@genkit-ai/mcp';
151
151
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
152
152
  import { genkit, z } from 'genkit/beta';
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "genai",
10
10
  "generative-ai"
11
11
  ],
12
- "version": "1.17.1",
12
+ "version": "1.19.0",
13
13
  "description": "A Genkit plugin that provides interoperability between Genkit and Model Context Protocol (MCP). Both client and server use cases are supported.",
14
14
  "main": "./lib/index.js",
15
15
  "types": "./lib/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "license": "Apache-2.0",
32
32
  "peerDependencies": {
33
33
  "@modelcontextprotocol/sdk": "^1.13.0",
34
- "genkit": "^1.17.1"
34
+ "genkit": "^1.19.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "get-port": "^5.1.0",