toolcraft 0.0.323 → 0.0.324

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.45",
101
+ "version": "0.1.46",
102
102
  "license": "MIT"
103
103
  },
104
104
  {
@@ -113,7 +113,7 @@
113
113
  },
114
114
  {
115
115
  "name": "toolcraft",
116
- "version": "0.0.323",
116
+ "version": "0.0.324",
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.323",
126
+ "version": "0.0.324",
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.45",
101
+ "version": "0.1.46",
102
102
  "license": "MIT"
103
103
  },
104
104
  {
@@ -113,7 +113,7 @@
113
113
  },
114
114
  {
115
115
  "name": "toolcraft",
116
- "version": "0.0.323",
116
+ "version": "0.0.324",
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.323",
126
+ "version": "0.0.324",
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.45",
21
+ "version": "0.1.46",
22
22
  "license": "MIT"
23
23
  },
24
24
  {
@@ -459,6 +459,7 @@ export function createDefaultOAuthClientProvider(options) {
459
459
  const response = await fetchMcpResponse(fetch, registrationEndpoint, {
460
460
  method: "POST",
461
461
  headers: {
462
+ Accept: "application/json",
462
463
  "Content-Type": "application/json"
463
464
  },
464
465
  body: JSON.stringify(registrationBody),
@@ -79,7 +79,7 @@ async function requestTokens(input) {
79
79
  if (method !== "none" && (input.clientSecret === undefined || input.clientSecret.trim() === ""))
80
80
  throw new Error("OAuth token endpoint authentication requires a client secret");
81
81
  const body = new URLSearchParams(input.params);
82
- const headers = new Headers({ "Content-Type": "application/x-www-form-urlencoded" });
82
+ const headers = new Headers({ Accept: "application/json", "Content-Type": "application/x-www-form-urlencoded" });
83
83
  if (method === "client_secret_basic") {
84
84
  const encoded = new URLSearchParams({ credential: input.clientId }).toString().slice("credential=".length);
85
85
  const encodedSecret = new URLSearchParams({ credential: input.clientSecret }).toString().slice("credential=".length);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiny-http-mcp-server",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "Minimal MCP server over HTTP built on tiny-stdio-mcp-server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -5073,7 +5073,7 @@ async function requestTokens(input) {
5073
5073
  if (method !== "none" && (input.clientSecret === void 0 || input.clientSecret.trim() === ""))
5074
5074
  throw new Error("OAuth token endpoint authentication requires a client secret");
5075
5075
  const body = new URLSearchParams(input.params);
5076
- const headers = new Headers({ "Content-Type": "application/x-www-form-urlencoded" });
5076
+ const headers = new Headers({ Accept: "application/json", "Content-Type": "application/x-www-form-urlencoded" });
5077
5077
  if (method === "client_secret_basic") {
5078
5078
  const encoded = new URLSearchParams({ credential: input.clientId }).toString().slice("credential=".length);
5079
5079
  const encodedSecret = new URLSearchParams({ credential: input.clientSecret }).toString().slice("credential=".length);
@@ -5660,6 +5660,7 @@ function createDefaultOAuthClientProvider(options) {
5660
5660
  const response = await fetchMcpResponse(fetch2, registrationEndpoint, {
5661
5661
  method: "POST",
5662
5662
  headers: {
5663
+ Accept: "application/json",
5663
5664
  "Content-Type": "application/json"
5664
5665
  },
5665
5666
  body: JSON.stringify(registrationBody),
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "toolcraft-schema",
11
- "version": "0.0.323",
11
+ "version": "0.0.324",
12
12
  "license": "MIT"
13
13
  }
14
14
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-schema",
3
- "version": "0.0.323",
3
+ "version": "0.0.324",
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.323",
3
+ "version": "0.0.324",
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.323",
161
+ "toolcraft-schema": "0.0.324",
162
162
  "toolcraft-design": "*",
163
163
  "@poe-code/frontmatter": "*",
164
164
  "@poe-code/agent-mcp-config": "*",