toolcraft 0.0.824 → 0.0.826
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 +3 -3
- package/dist/composition.json +3 -3
- package/node_modules/tiny-http-mcp-server/dist/composition.json +1 -1
- package/node_modules/tiny-http-mcp-server/package.json +1 -1
- package/node_modules/tiny-mcp-client/README.md +4 -0
- package/node_modules/tiny-mcp-client/dist/index.browser.js +3 -0
- package/node_modules/tiny-mcp-client/dist/index.js +3 -0
- package/node_modules/tiny-mcp-client/package.json +2 -1
- package/node_modules/tiny-stdio-mcp-server/dist/composition.json +1 -1
- package/node_modules/toolcraft-schema/package.json +1 -1
- package/package.json +2 -2
package/composition.json
CHANGED
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"name": "tiny-http-mcp-server",
|
|
126
|
-
"version": "0.1.
|
|
126
|
+
"version": "0.1.131",
|
|
127
127
|
"license": "MIT"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"name": "toolcraft",
|
|
141
|
-
"version": "0.0.
|
|
141
|
+
"version": "0.0.826",
|
|
142
142
|
"license": "MIT"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"name": "toolcraft-schema",
|
|
151
|
-
"version": "0.0.
|
|
151
|
+
"version": "0.0.826",
|
|
152
152
|
"license": "MIT"
|
|
153
153
|
},
|
|
154
154
|
{
|
package/dist/composition.json
CHANGED
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"name": "tiny-http-mcp-server",
|
|
126
|
-
"version": "0.1.
|
|
126
|
+
"version": "0.1.131",
|
|
127
127
|
"license": "MIT"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"name": "toolcraft",
|
|
141
|
-
"version": "0.0.
|
|
141
|
+
"version": "0.0.826",
|
|
142
142
|
"license": "MIT"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"name": "toolcraft-schema",
|
|
151
|
-
"version": "0.0.
|
|
151
|
+
"version": "0.0.826",
|
|
152
152
|
"license": "MIT"
|
|
153
153
|
},
|
|
154
154
|
{
|
|
@@ -97,6 +97,10 @@ make transport decisions without parsing error messages. Legacy HTTP/SSE
|
|
|
97
97
|
reporting ready. Completion failures reject the connection and expose
|
|
98
98
|
`rpcMethod: "notifications/initialized"`; they are not setup transport mismatches.
|
|
99
99
|
|
|
100
|
+
When automatic protocol discovery falls back to legacy initialization, the transport
|
|
101
|
+
aborts superseded discovery requests. Late probe responses or failures cannot
|
|
102
|
+
terminate the active legacy request, even when a custom fetch ignores abort.
|
|
103
|
+
|
|
100
104
|
`HttpTransport.closeReason` resolves with the original failure as disposal begins.
|
|
101
105
|
Client requests retain that reason even if session deletion is slow or fails.
|
|
102
106
|
Await `transport.closed` to finish cleanup; its reason reports a deletion failure
|
|
@@ -5196,6 +5196,9 @@ var HttpTransport = class {
|
|
|
5196
5196
|
const modern = isObjectRecord2(metadata) && typeof metadata["io.modelcontextprotocol/protocolVersion"] === "string";
|
|
5197
5197
|
if (modern) this.modernMode = true;
|
|
5198
5198
|
if (parsed.type === "request" && parsed.message.method === "initialize") {
|
|
5199
|
+
const superseded = [...this.modernRequests.values()];
|
|
5200
|
+
this.modernRequests.clear();
|
|
5201
|
+
for (const controller2 of superseded) controller2.abort();
|
|
5199
5202
|
this.modernMode = false;
|
|
5200
5203
|
this.initializationRequestId = parsed.message.id;
|
|
5201
5204
|
this.legacyProtocolVersion = MCP_PROTOCOL_VERSION;
|
|
@@ -8551,6 +8551,9 @@ var HttpTransport = class {
|
|
|
8551
8551
|
const modern = isObjectRecord5(metadata) && typeof metadata["io.modelcontextprotocol/protocolVersion"] === "string";
|
|
8552
8552
|
if (modern) this.modernMode = true;
|
|
8553
8553
|
if (parsed.type === "request" && parsed.message.method === "initialize") {
|
|
8554
|
+
const superseded = [...this.modernRequests.values()];
|
|
8555
|
+
this.modernRequests.clear();
|
|
8556
|
+
for (const controller2 of superseded) controller2.abort();
|
|
8554
8557
|
this.modernMode = false;
|
|
8555
8558
|
this.initializationRequestId = parsed.message.id;
|
|
8556
8559
|
this.legacyProtocolVersion = MCP_PROTOCOL_VERSION;
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "node scripts/build.mjs",
|
|
12
12
|
"typecheck:contracts": "node scripts/check-http-headers-type-contract.mjs",
|
|
13
|
-
"test:unit": "cd ../.. && vitest run packages/tiny-mcp-client/src"
|
|
13
|
+
"test:unit": "cd ../.. && vitest run packages/tiny-mcp-client/src",
|
|
14
|
+
"test:slow": "cd ../.. && vitest run packages/tiny-mcp-client/tests"
|
|
14
15
|
},
|
|
15
16
|
"repository": {
|
|
16
17
|
"type": "git",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolcraft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.826",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"saxes"
|
|
178
178
|
],
|
|
179
179
|
"optionalDependencies": {
|
|
180
|
-
"toolcraft-schema": "0.0.
|
|
180
|
+
"toolcraft-schema": "0.0.826",
|
|
181
181
|
"toolcraft-design": "*",
|
|
182
182
|
"@poe-code/frontmatter": "*",
|
|
183
183
|
"@poe-code/agent-mcp-config": "*",
|