caplets 0.5.0 → 0.5.1

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 +4 -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.1";
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,9 @@ 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
+ 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);
31718
31719
  headers.set("content-type", "application/x-www-form-urlencoded");
31719
31720
  };
31720
31721
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "caplets",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Progressive disclosure gateway for MCP servers.",
5
5
  "keywords": [
6
6
  "caplets",