@sentientui/mcp 0.17.3 → 0.17.5

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/dist/lib.d.cts CHANGED
@@ -7,12 +7,20 @@ declare class ApiError extends Error {
7
7
  declare class ApiClient {
8
8
  private baseUrl;
9
9
  private apiKey;
10
+ private refreshApiKey?;
10
11
  constructor(opts: {
11
12
  apiKey: string;
12
13
  baseUrl?: string;
14
+ /**
15
+ * Called when the server answers 429 demo_quota_exceeded — the demo path's
16
+ * chance to swap in a fresh token (see demo.ts). Returns the new key, or
17
+ * null to give up and surface the original error.
18
+ */
19
+ refreshApiKey?: () => Promise<string | null>;
13
20
  });
14
21
  get<T = unknown>(path: string): Promise<T>;
15
22
  post<T = unknown>(path: string, body?: unknown): Promise<T>;
23
+ private request;
16
24
  }
17
25
 
18
26
  declare function createMcpServer(client: ApiClient): McpServer;
package/dist/lib.d.ts CHANGED
@@ -7,12 +7,20 @@ declare class ApiError extends Error {
7
7
  declare class ApiClient {
8
8
  private baseUrl;
9
9
  private apiKey;
10
+ private refreshApiKey?;
10
11
  constructor(opts: {
11
12
  apiKey: string;
12
13
  baseUrl?: string;
14
+ /**
15
+ * Called when the server answers 429 demo_quota_exceeded — the demo path's
16
+ * chance to swap in a fresh token (see demo.ts). Returns the new key, or
17
+ * null to give up and surface the original error.
18
+ */
19
+ refreshApiKey?: () => Promise<string | null>;
13
20
  });
14
21
  get<T = unknown>(path: string): Promise<T>;
15
22
  post<T = unknown>(path: string, body?: unknown): Promise<T>;
23
+ private request;
16
24
  }
17
25
 
18
26
  declare function createMcpServer(client: ApiClient): McpServer;
package/dist/lib.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  ApiError,
5
5
  PUBLIC_UI_RESOURCE_URIS,
6
6
  createMcpServer
7
- } from "./chunk-PUMG7EQ2.js";
7
+ } from "./chunk-H763K2O3.js";
8
8
  export {
9
9
  ApiClient,
10
10
  ApiError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentientui/mcp",
3
- "version": "0.17.3",
3
+ "version": "0.17.5",
4
4
  "description": "MCP server for SentientUI — exposes project data and actions to AI agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://sentient-ui.com",