tiny-http-mcp-server 0.1.45 → 0.1.47

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.
@@ -18,7 +18,7 @@
18
18
  },
19
19
  {
20
20
  "name": "tiny-http-mcp-server",
21
- "version": "0.1.45",
21
+ "version": "0.1.47",
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);
@@ -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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiny-http-mcp-server",
3
- "version": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "description": "Minimal MCP server over HTTP built on tiny-stdio-mcp-server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",