@graphql-hive/plugin-mcp 0.2.3-rc-6d3ff29f1cc6b375129e9007c48f7ab2ea8b1704 → 0.2.3

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,10 +1,15 @@
1
1
  # @graphql-hive/plugin-mcp
2
2
 
3
- ## 0.2.3-rc-6d3ff29f1cc6b375129e9007c48f7ab2ea8b1704
3
+ ## 0.2.3
4
4
  ### Patch Changes
5
5
 
6
+
7
+
8
+ - [#2657](https://github.com/graphql-hive/gateway/pull/2657) [`c3d7794`](https://github.com/graphql-hive/gateway/commit/c3d77944aea67b53a18cd3688dc3a5dd6aae75be) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix MCP tool calls failing on Bun with GraphQL Yoga v5.24+
9
+
10
+ The JSON-RPC body is now read from a clone of the request, leaving the original body untouched for Yoga's request body size limit.
6
11
  - Updated dependencies [[`5267e90`](https://github.com/graphql-hive/gateway/commit/5267e90a49891730ffb29ab599badd11dc01ce4f), [`5267e90`](https://github.com/graphql-hive/gateway/commit/5267e90a49891730ffb29ab599badd11dc01ce4f)]:
7
- - @graphql-hive/logger@1.2.0-rc-6d3ff29f1cc6b375129e9007c48f7ab2ea8b1704
12
+ - @graphql-hive/logger@1.2.0
8
13
 
9
14
  ## 0.2.2
10
15
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -2023,7 +2023,7 @@ function useMCP(ctx, config) {
2023
2023
  }
2024
2024
  let body;
2025
2025
  try {
2026
- const bodyText = await request.text();
2026
+ const bodyText = await request.clone().text();
2027
2027
  const parsed = JSON.parse(bodyText);
2028
2028
  if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
2029
2029
  throw new Error("Expected a JSON object");
package/dist/index.js CHANGED
@@ -2021,7 +2021,7 @@ function useMCP(ctx, config) {
2021
2021
  }
2022
2022
  let body;
2023
2023
  try {
2024
- const bodyText = await request.text();
2024
+ const bodyText = await request.clone().text();
2025
2025
  const parsed = JSON.parse(bodyText);
2026
2026
  if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
2027
2027
  throw new Error("Expected a JSON object");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/plugin-mcp",
3
- "version": "0.2.3-rc-6d3ff29f1cc6b375129e9007c48f7ab2ea8b1704",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@graphql-hive/core": "0.22.1",
63
- "@graphql-hive/logger": "1.2.0-rc-6d3ff29f1cc6b375129e9007c48f7ab2ea8b1704",
63
+ "@graphql-hive/logger": "^1.2.0",
64
64
  "@graphql-tools/graphql-file-loader": "^8.1.12",
65
65
  "@graphql-tools/load": "^8.1.8",
66
66
  "@whatwg-node/promise-helpers": "^1.3.2",
@@ -69,7 +69,7 @@
69
69
  "tslib": "^2.8.1"
70
70
  },
71
71
  "devDependencies": {
72
- "@graphql-hive/gateway-runtime": "2.13.6-rc-6d3ff29f1cc6b375129e9007c48f7ab2ea8b1704",
72
+ "@graphql-hive/gateway-runtime": "^2.14.0",
73
73
  "@langfuse/client": "^5.0.2",
74
74
  "@opentelemetry/api": "^1.9.1",
75
75
  "graphql": "^16.13.2",