@graphql-hive/gateway 2.5.6 → 2.5.7-alpha-9656d0c9f271c2c40a2cf03d5733c1c8ed201b6e

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
+ ## 2.5.7-alpha-9656d0c9f271c2c40a2cf03d5733c1c8ed201b6e
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#1932](https://github.com/graphql-hive/gateway/pull/1932) [`40f737c`](https://github.com/graphql-hive/gateway/commit/40f737cf4a84d5ea41d9537c4f0d1c586d06697a) Thanks [@adambenhassen](https://github.com/adambenhassen)! - dependencies updates:
9
+
10
+ - Added dependency [`@graphql-hive/plugin-mcp@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/plugin-mcp/v/workspace:^) (to `dependencies`)
11
+
3
12
  ## 2.5.6
4
13
  ### Patch Changes
5
14
 
package/dist/bin.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var module$1 = require('node:module');
4
4
  var logger = require('@graphql-hive/logger');
5
- var cli = require('./cli-Chyuaroz.cjs');
5
+ var cli = require('./cli-CFzVEdW_.cjs');
6
6
  require('node:cluster');
7
7
  require('node:os');
8
8
  require('node:path');
@@ -28,7 +28,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
28
28
 
29
29
  var module__default = /*#__PURE__*/_interopDefault(module$1);
30
30
 
31
- globalThis.__VERSION__ = '2.5.6';
31
+ globalThis.__VERSION__ = '2.5.7-alpha-9656d0c9f271c2c40a2cf03d5733c1c8ed201b6e';
32
32
  module__default.default.register("@graphql-hive/importer/hooks", {
33
33
  parentURL: (
34
34
  // @ts-ignore bob will complain when bundling for cjs
package/dist/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import module$1 from 'node:module';
3
3
  import { Logger } from '@graphql-hive/logger';
4
- import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-D53WPGN_.js';
4
+ import { e as enableModuleCachingIfPossible, h as handleNodeWarnings, r as run } from './cli-DmgMTSrU.js';
5
5
  import 'node:cluster';
6
6
  import 'node:os';
7
7
  import 'node:path';
@@ -22,7 +22,7 @@ import '@graphql-tools/code-file-loader';
22
22
  import '@graphql-tools/graphql-file-loader';
23
23
  import '@graphql-tools/load';
24
24
 
25
- globalThis.__VERSION__ = '2.5.6';
25
+ globalThis.__VERSION__ = '2.5.7-alpha-9656d0c9f271c2c40a2cf03d5733c1c8ed201b6e';
26
26
  module$1.register("@graphql-hive/importer/hooks", {
27
27
  parentURL: (
28
28
  // @ts-ignore bob will complain when bundling for cjs
@@ -200,6 +200,10 @@ async function getBuiltinPluginsFromConfig(config, ctx) {
200
200
  const { useJIT } = await import('@graphql-mesh/plugin-jit');
201
201
  plugins.push(useJIT());
202
202
  }
203
+ if (config.mcp) {
204
+ const { useMCP } = await import('@graphql-hive/plugin-mcp');
205
+ plugins.push(useMCP(config.mcp));
206
+ }
203
207
  if (config.awsSigv4) {
204
208
  const { useAWSSigv4 } = await import('@graphql-hive/plugin-aws-sigv4');
205
209
  plugins.push(useAWSSigv4(config.awsSigv4));
@@ -193,6 +193,10 @@ async function getBuiltinPluginsFromConfig(config, ctx) {
193
193
  const { useJIT } = await import('@graphql-mesh/plugin-jit');
194
194
  plugins.push(useJIT());
195
195
  }
196
+ if (config.mcp) {
197
+ const { useMCP } = await import('@graphql-hive/plugin-mcp');
198
+ plugins.push(useMCP(config.mcp));
199
+ }
196
200
  if (config.awsSigv4) {
197
201
  const { useAWSSigv4 } = await import('@graphql-hive/plugin-aws-sigv4');
198
202
  plugins.push(useAWSSigv4(config.awsSigv4));
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var cli = require('./cli-Chyuaroz.cjs');
3
+ var cli = require('./cli-CFzVEdW_.cjs');
4
4
  var logger = require('@graphql-hive/logger');
5
5
  var gatewayRuntime = require('@graphql-hive/gateway-runtime');
6
6
  var pubsub = require('@graphql-hive/pubsub');
package/dist/index.d.cts CHANGED
@@ -5,6 +5,7 @@ export * from '@graphql-hive/gateway-runtime';
5
5
  import { Logger } from '@graphql-hive/logger';
6
6
  export * from '@graphql-hive/logger';
7
7
  import { AWSSignv4PluginOptions } from '@graphql-hive/plugin-aws-sigv4';
8
+ import { MCPConfig } from '@graphql-hive/plugin-mcp';
8
9
  import { OpenTelemetryGatewayPluginOptions } from '@graphql-hive/plugin-opentelemetry';
9
10
  import { PubSub } from '@graphql-hive/pubsub';
10
11
  export * from '@graphql-hive/pubsub';
@@ -204,6 +205,12 @@ interface GatewayCLIBuiltinPluginConfig {
204
205
  * @default false
205
206
  */
206
207
  blockFieldSuggestions?: boolean;
208
+ /**
209
+ * Configure MCP (Model Context Protocol) server
210
+ *
211
+ * Exposes GraphQL operations as MCP tools for AI agents
212
+ */
213
+ mcp?: MCPConfig;
207
214
  }
208
215
  type GatewayCLILocalforageCacheConfig = YamlConfig.LocalforageConfig & {
209
216
  type: 'localforage';
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from '@graphql-hive/gateway-runtime';
5
5
  import { Logger } from '@graphql-hive/logger';
6
6
  export * from '@graphql-hive/logger';
7
7
  import { AWSSignv4PluginOptions } from '@graphql-hive/plugin-aws-sigv4';
8
+ import { MCPConfig } from '@graphql-hive/plugin-mcp';
8
9
  import { OpenTelemetryGatewayPluginOptions } from '@graphql-hive/plugin-opentelemetry';
9
10
  import { PubSub } from '@graphql-hive/pubsub';
10
11
  export * from '@graphql-hive/pubsub';
@@ -204,6 +205,12 @@ interface GatewayCLIBuiltinPluginConfig {
204
205
  * @default false
205
206
  */
206
207
  blockFieldSuggestions?: boolean;
208
+ /**
209
+ * Configure MCP (Model Context Protocol) server
210
+ *
211
+ * Exposes GraphQL operations as MCP tools for AI agents
212
+ */
213
+ mcp?: MCPConfig;
207
214
  }
208
215
  type GatewayCLILocalforageCacheConfig = YamlConfig.LocalforageConfig & {
209
216
  type: 'localforage';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { d as defaultOptions, a as defineConfig, e as enableModuleCachingIfPossible, g as getBuiltinPluginsFromConfig, b as getCacheInstanceFromConfig, h as handleNodeWarnings, r as run } from './cli-D53WPGN_.js';
1
+ export { d as defaultOptions, a as defineConfig, e as enableModuleCachingIfPossible, g as getBuiltinPluginsFromConfig, b as getCacheInstanceFromConfig, h as handleNodeWarnings, r as run } from './cli-DmgMTSrU.js';
2
2
  export * from '@graphql-hive/logger';
3
3
  export * from '@graphql-hive/gateway-runtime';
4
4
  export * from '@graphql-hive/pubsub';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway",
3
- "version": "2.5.6",
3
+ "version": "2.5.7-alpha-9656d0c9f271c2c40a2cf03d5733c1c8ed201b6e",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -98,6 +98,7 @@
98
98
  "@graphql-hive/importer": "^2.0.0",
99
99
  "@graphql-hive/logger": "^1.1.0",
100
100
  "@graphql-hive/plugin-aws-sigv4": "^2.0.30",
101
+ "@graphql-hive/plugin-mcp": "^0.0.0",
101
102
  "@graphql-hive/plugin-opentelemetry": "^1.4.4",
102
103
  "@graphql-hive/pubsub": "^2.1.1",
103
104
  "@graphql-mesh/cache-cfw-kv": "^0.105.16",