mcpspan 0.5.0 → 0.5.1

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/dist/index.cjs CHANGED
@@ -146,7 +146,7 @@ var EventQueue = class {
146
146
  * Single source of truth: `package.json` follows this constant, not the other
147
147
  * way round, and a unit test fails if the two ever drift apart.
148
148
  */
149
- const SDK_VERSION = "0.5.0";
149
+ const SDK_VERSION = "0.5.1";
150
150
  //#endregion
151
151
  //#region src/transport.ts
152
152
  /** Path the ingest API accepts batches on, appended to the configured endpoint. */
@@ -1859,7 +1859,7 @@ function classifyRefusal(entry, message) {
1859
1859
  const registered = entry?.registered;
1860
1860
  const enabled = entry !== void 0 && registered?.enabled !== false;
1861
1861
  const text = message ?? "";
1862
- if (enabled) return /validation/i.test(text) ? "arguments" : void 0;
1862
+ if (enabled) return /validation|invalid arguments for tool/i.test(text) ? "arguments" : void 0;
1863
1863
  return /not found|disabled/i.test(text) ? "unknown_tool" : void 0;
1864
1864
  }
1865
1865
  //#endregion
package/dist/index.mjs CHANGED
@@ -145,7 +145,7 @@ var EventQueue = class {
145
145
  * Single source of truth: `package.json` follows this constant, not the other
146
146
  * way round, and a unit test fails if the two ever drift apart.
147
147
  */
148
- const SDK_VERSION = "0.5.0";
148
+ const SDK_VERSION = "0.5.1";
149
149
  //#endregion
150
150
  //#region src/transport.ts
151
151
  /** Path the ingest API accepts batches on, appended to the configured endpoint. */
@@ -1858,7 +1858,7 @@ function classifyRefusal(entry, message) {
1858
1858
  const registered = entry?.registered;
1859
1859
  const enabled = entry !== void 0 && registered?.enabled !== false;
1860
1860
  const text = message ?? "";
1861
- if (enabled) return /validation/i.test(text) ? "arguments" : void 0;
1861
+ if (enabled) return /validation|invalid arguments for tool/i.test(text) ? "arguments" : void 0;
1862
1862
  return /not found|disabled/i.test(text) ? "unknown_tool" : void 0;
1863
1863
  }
1864
1864
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcpspan",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Self-hosted analytics for MCP servers: which tools, resources and prompts get used, by which client, how fast, and why they fail.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -62,9 +62,9 @@
62
62
  "prepublishOnly": "pnpm build && pnpm typecheck && pnpm test && pnpm check:readme"
63
63
  },
64
64
  "devDependencies": {
65
- "@modelcontextprotocol/client": "^2.1.0",
66
- "@modelcontextprotocol/sdk": "^1.30.0",
67
- "@modelcontextprotocol/server": "^2.1.0",
65
+ "@modelcontextprotocol/client": "^2.3.1",
66
+ "@modelcontextprotocol/sdk": "^1.32.1",
67
+ "@modelcontextprotocol/server": "^2.3.1",
68
68
  "@types/node": "^18.19.130",
69
69
  "@vitest/coverage-v8": "4.1.11",
70
70
  "tsdown": "^0.23.0",