untappd-mcp 1.8.1 → 1.8.2

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.
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "metadata": {
9
9
  "description": "MCP server for Untappd — beers, breweries, venues, check-ins, wishlists, and your friend feed",
10
- "version": "1.8.1"
10
+ "version": "1.8.2"
11
11
  },
12
12
  "plugins": [
13
13
  {
@@ -15,7 +15,7 @@
15
15
  "displayName": "Untappd",
16
16
  "source": "./",
17
17
  "description": "MCP server for Untappd — search beers/breweries/venues, read profiles/check-ins/wishlists, and post check-ins, toasts, and comments",
18
- "version": "1.8.1",
18
+ "version": "1.8.2",
19
19
  "author": {
20
20
  "name": "Chris Hall"
21
21
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "untappd-mcp",
3
3
  "displayName": "Untappd",
4
- "version": "1.8.1",
4
+ "version": "1.8.2",
5
5
  "description": "MCP server for Untappd — search beers/breweries/venues, read check-ins and wishlists, and post check-ins, toasts, and comments",
6
6
  "author": {
7
7
  "name": "Chris Hall",
package/dist/bundle.js CHANGED
@@ -23048,17 +23048,33 @@ function normalizeObjectSchema(schema) {
23048
23048
  }
23049
23049
  return void 0;
23050
23050
  }
23051
+ function getDotPath(path) {
23052
+ if (path.length === 0) {
23053
+ return "object root";
23054
+ }
23055
+ return path.reduce((acc, seg, index) => {
23056
+ if (index === 0) {
23057
+ return String(seg);
23058
+ }
23059
+ if (typeof seg === "number") {
23060
+ return `${acc}[${seg}]`;
23061
+ }
23062
+ return `${acc}.${seg}`;
23063
+ }, "");
23064
+ }
23051
23065
  function getParseErrorMessage(error51) {
23052
23066
  if (error51 && typeof error51 === "object") {
23067
+ if ("issues" in error51 && Array.isArray(error51.issues) && error51.issues.length > 0) {
23068
+ return error51.issues.map((i) => {
23069
+ if (!i.path?.length) {
23070
+ return i.message;
23071
+ }
23072
+ return `${i.message} at ${getDotPath(i.path)}`;
23073
+ }).join("\n");
23074
+ }
23053
23075
  if ("message" in error51 && typeof error51.message === "string") {
23054
23076
  return error51.message;
23055
23077
  }
23056
- if ("issues" in error51 && Array.isArray(error51.issues) && error51.issues.length > 0) {
23057
- const firstIssue = error51.issues[0];
23058
- if (firstIssue && typeof firstIssue === "object" && "message" in firstIssue) {
23059
- return String(firstIssue.message);
23060
- }
23061
- }
23062
23078
  try {
23063
23079
  return JSON.stringify(error51);
23064
23080
  } catch {
@@ -29673,16 +29689,7 @@ var Server = class extends Protocol {
29673
29689
  if (!methodSchema) {
29674
29690
  throw new Error("Schema is missing a method literal");
29675
29691
  }
29676
- let methodValue;
29677
- if (isZ4Schema(methodSchema)) {
29678
- const v4Schema = methodSchema;
29679
- const v4Def = v4Schema._zod?.def;
29680
- methodValue = v4Def?.value ?? v4Schema.value;
29681
- } else {
29682
- const v3Schema = methodSchema;
29683
- const legacyDef = v3Schema._def;
29684
- methodValue = legacyDef?.value ?? v3Schema.value;
29685
- }
29692
+ const methodValue = getLiteralValue(methodSchema);
29686
29693
  if (typeof methodValue !== "string") {
29687
29694
  throw new Error("Schema method literal must be a string");
29688
29695
  }
@@ -30870,8 +30877,17 @@ var EMPTY_COMPLETION_RESULT = {
30870
30877
  import process3 from "node:process";
30871
30878
 
30872
30879
  // node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
30880
+ var STDIO_DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
30873
30881
  var ReadBuffer = class {
30882
+ constructor(options) {
30883
+ this._maxBufferSize = options?.maxBufferSize ?? STDIO_DEFAULT_MAX_BUFFER_SIZE;
30884
+ }
30874
30885
  append(chunk) {
30886
+ const newSize = (this._buffer?.length ?? 0) + chunk.length;
30887
+ if (newSize > this._maxBufferSize) {
30888
+ this.clear();
30889
+ throw new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);
30890
+ }
30875
30891
  this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
30876
30892
  }
30877
30893
  readMessage() {
@@ -30899,18 +30915,24 @@ function serializeMessage(message) {
30899
30915
 
30900
30916
  // node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
30901
30917
  var StdioServerTransport = class {
30902
- constructor(_stdin = process3.stdin, _stdout = process3.stdout) {
30918
+ constructor(_stdin = process3.stdin, _stdout = process3.stdout, options) {
30903
30919
  this._stdin = _stdin;
30904
30920
  this._stdout = _stdout;
30905
- this._readBuffer = new ReadBuffer();
30906
30921
  this._started = false;
30907
30922
  this._ondata = (chunk) => {
30908
- this._readBuffer.append(chunk);
30909
- this.processReadBuffer();
30923
+ try {
30924
+ this._readBuffer.append(chunk);
30925
+ this.processReadBuffer();
30926
+ } catch (error51) {
30927
+ this.onerror?.(error51);
30928
+ this.close().catch(() => {
30929
+ });
30930
+ }
30910
30931
  };
30911
30932
  this._onerror = (error51) => {
30912
30933
  this.onerror?.(error51);
30913
30934
  };
30935
+ this._readBuffer = new ReadBuffer({ maxBufferSize: options?.maxBufferSize });
30914
30936
  }
30915
30937
  /**
30916
30938
  * Starts listening for messages on stdin.
@@ -31190,7 +31212,7 @@ function toolAnnotations(opts = {}) {
31190
31212
  }
31191
31213
 
31192
31214
  // src/version.ts
31193
- var VERSION = "1.8.1";
31215
+ var VERSION = "1.8.2";
31194
31216
 
31195
31217
  // src/client.ts
31196
31218
  import { dirname, join } from "path";
package/dist/version.js CHANGED
@@ -3,4 +3,4 @@
3
3
  // json's `extra-files`), and `versionSyncTest` guards that it stays equal to
4
4
  // package.json. Import VERSION wherever the version is needed rather than
5
5
  // re-declaring it.
6
- export const VERSION = '1.8.1'; // x-release-please-version
6
+ export const VERSION = '1.8.2'; // x-release-please-version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "untappd-mcp",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "mcpName": "io.github.chrischall/untappd-mcp",
5
5
  "description": "Untappd MCP server for Claude — developed and maintained by AI (Claude Code)",
6
6
  "author": "Claude Code (AI) <https://www.anthropic.com/claude>",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@chrischall/mcp-connector": "^1.1.1",
54
- "@cloudflare/vitest-pool-workers": "^0.18.4",
54
+ "@cloudflare/vitest-pool-workers": "^0.19.0",
55
55
  "@cloudflare/workers-oauth-provider": "^0.8.1",
56
56
  "@cloudflare/workers-types": "^5.20260708.1",
57
57
  "@types/node": "^26.1.1",
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/chrischall/untappd-mcp",
7
7
  "source": "github"
8
8
  },
9
- "version": "1.8.1",
9
+ "version": "1.8.2",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "untappd-mcp",
14
- "version": "1.8.1",
14
+ "version": "1.8.2",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },