caplets 0.5.0 → 0.5.2

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -19848,7 +19848,7 @@ const EMPTY_COMPLETION_RESULT = { completion: {
19848
19848
  } };
19849
19849
  //#endregion
19850
19850
  //#region package.json
19851
- var version = "0.5.0";
19851
+ var version = "0.5.2";
19852
19852
  //#endregion
19853
19853
  //#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
19854
19854
  /**
@@ -31713,8 +31713,12 @@ var FileOAuthProvider = class {
31713
31713
  return this.verifier;
31714
31714
  }
31715
31715
  addClientAuthentication = async (headers, params) => {
31716
- if (this.server.auth?.type !== "oauth2" && this.server.auth?.type !== "oidc" || !this.server.auth.clientSecret) return;
31717
- params.set("client_secret", this.server.auth.clientSecret);
31716
+ if (this.server.auth?.type !== "oauth2" && this.server.auth?.type !== "oidc") return;
31717
+ const clientInformation = this.clientInformation();
31718
+ const clientId = clientInformation?.client_id;
31719
+ const clientSecret = clientInformation?.client_secret;
31720
+ if (clientId) params.set("client_id", clientId);
31721
+ if (clientSecret) params.set("client_secret", clientSecret);
31718
31722
  headers.set("content-type", "application/x-www-form-urlencoded");
31719
31723
  };
31720
31724
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "caplets",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Progressive disclosure gateway for MCP servers.",
5
5
  "keywords": [
6
6
  "caplets",