caplets 0.5.1 → 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 +6 -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.1";
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
  /**
@@ -31714,8 +31714,11 @@ var FileOAuthProvider = class {
31714
31714
  }
31715
31715
  addClientAuthentication = async (headers, params) => {
31716
31716
  if (this.server.auth?.type !== "oauth2" && this.server.auth?.type !== "oidc") return;
31717
- if (this.server.auth.clientId) params.set("client_id", this.server.auth.clientId);
31718
- if (this.server.auth.clientSecret) params.set("client_secret", this.server.auth.clientSecret);
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);
31719
31722
  headers.set("content-type", "application/x-www-form-urlencoded");
31720
31723
  };
31721
31724
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "caplets",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Progressive disclosure gateway for MCP servers.",
5
5
  "keywords": [
6
6
  "caplets",