toolcraft 0.0.347 → 0.0.348

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/composition.json CHANGED
@@ -98,7 +98,7 @@
98
98
  },
99
99
  {
100
100
  "name": "tiny-http-mcp-server",
101
- "version": "0.1.75",
101
+ "version": "0.1.76",
102
102
  "license": "MIT"
103
103
  },
104
104
  {
@@ -113,7 +113,7 @@
113
113
  },
114
114
  {
115
115
  "name": "toolcraft",
116
- "version": "0.0.347",
116
+ "version": "0.0.348",
117
117
  "license": "MIT"
118
118
  },
119
119
  {
@@ -123,7 +123,7 @@
123
123
  },
124
124
  {
125
125
  "name": "toolcraft-schema",
126
- "version": "0.0.347",
126
+ "version": "0.0.348",
127
127
  "license": "MIT"
128
128
  },
129
129
  {
@@ -98,7 +98,7 @@
98
98
  },
99
99
  {
100
100
  "name": "tiny-http-mcp-server",
101
- "version": "0.1.75",
101
+ "version": "0.1.76",
102
102
  "license": "MIT"
103
103
  },
104
104
  {
@@ -113,7 +113,7 @@
113
113
  },
114
114
  {
115
115
  "name": "toolcraft",
116
- "version": "0.0.347",
116
+ "version": "0.0.348",
117
117
  "license": "MIT"
118
118
  },
119
119
  {
@@ -123,7 +123,7 @@
123
123
  },
124
124
  {
125
125
  "name": "toolcraft-schema",
126
- "version": "0.0.347",
126
+ "version": "0.0.348",
127
127
  "license": "MIT"
128
128
  },
129
129
  {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  {
20
20
  "name": "tiny-http-mcp-server",
21
- "version": "0.1.75",
21
+ "version": "0.1.76",
22
22
  "license": "MIT"
23
23
  },
24
24
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiny-http-mcp-server",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
4
4
  "description": "Minimal MCP server over HTTP built on tiny-stdio-mcp-server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,6 +36,9 @@ Unsupported pins fail before connection setup.
36
36
  `Tool` includes MCP `outputSchema` when a server advertises typed tool output.
37
37
  `CallToolResult.structuredContent` preserves modern JSON values; legacy servers
38
38
  require an object. Complete `content[]` blocks remain available in either case.
39
+ `callTool` captures its signal and progress token when called. Later edits to
40
+ the options object cannot leave a finished call's progress token active; progress
41
+ notifications remain available while that call is pending.
39
42
 
40
43
  Set `requestTimeoutMs` on `McpClient` or `timeoutMs` on individual requests.
41
44
  Numeric deadlines must be finite, nonnegative and no greater than
@@ -111,6 +114,9 @@ You can also call `discoverOAuthMetadata(resourceUrl, options)` directly, or ins
111
114
  Resource/issuer binding mismatches and exhausted authorization-server discovery
112
115
  expose `OAuthMetadataError.phase` while retaining complete SDK messages.
113
116
  Protected-resource metadata HTTP failures also expose their numeric `status`.
117
+ Advertised resource identities reject named and empty fragments before issuer
118
+ discovery; malformed shared-cache identities are evicted. Resource queries and
119
+ percent-escaped hash data remain part of the exact resource identity.
114
120
  Rejected metadata bodies start cleanup without delaying failure or caller
115
121
  cancellation. Host cleanup may finish later; its rejection remains observed.
116
122
  `OAuthMetadataError.is(value)` recognizes separately bundled native copies.
@@ -6294,6 +6294,9 @@ function validateProtectedResourceMetadata(value, resourceUrl) {
6294
6294
  if (typeof value.resource !== "string" || value.resource.length === 0) {
6295
6295
  throw new Error("Protected resource metadata must include a resource string");
6296
6296
  }
6297
+ if (value.resource.includes("#")) {
6298
+ throw new OAuthMetadataError("protected-resource", "Protected resource metadata resource must not include fragment");
6299
+ }
6297
6300
  const normalizedResource = canonicalizeResourceIndicator(value.resource);
6298
6301
  if (normalizedResource !== resourceUrl) {
6299
6302
  throw new OAuthMetadataError(
@@ -7116,6 +7119,7 @@ var McpClient = class {
7116
7119
  };
7117
7120
  }
7118
7121
  async callTool(params, options = {}) {
7122
+ options = { ...options };
7119
7123
  const messageLayer = this.getMessageLayerOrThrow();
7120
7124
  const serverCapabilities = this.getServerCapabilitiesOrThrow();
7121
7125
  if (serverCapabilities.tools === void 0) {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "toolcraft-schema",
11
- "version": "0.0.347",
11
+ "version": "0.0.348",
12
12
  "license": "MIT"
13
13
  }
14
14
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-schema",
3
- "version": "0.0.347",
3
+ "version": "0.0.348",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft",
3
- "version": "0.0.347",
3
+ "version": "0.0.348",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -158,7 +158,7 @@
158
158
  "yaml"
159
159
  ],
160
160
  "optionalDependencies": {
161
- "toolcraft-schema": "0.0.347",
161
+ "toolcraft-schema": "0.0.348",
162
162
  "toolcraft-design": "*",
163
163
  "@poe-code/frontmatter": "*",
164
164
  "@poe-code/agent-mcp-config": "*",