@sentientui/mcp 0.3.3 → 0.4.0
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/AGENTS.md +1 -0
- package/README.md +7 -0
- package/dist/chunk-ZXI3OZKA.js +725 -0
- package/dist/index.cjs +61 -1
- package/dist/index.js +4 -662
- package/dist/lib.cjs +758 -0
- package/dist/lib.d.cts +20 -0
- package/dist/lib.d.ts +20 -0
- package/dist/lib.js +11 -0
- package/package.json +22 -1
package/dist/lib.d.cts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
|
|
3
|
+
declare class ApiError extends Error {
|
|
4
|
+
status: number;
|
|
5
|
+
constructor(status: number, message: string);
|
|
6
|
+
}
|
|
7
|
+
declare class ApiClient {
|
|
8
|
+
private baseUrl;
|
|
9
|
+
private apiKey;
|
|
10
|
+
constructor(opts: {
|
|
11
|
+
apiKey: string;
|
|
12
|
+
baseUrl?: string;
|
|
13
|
+
});
|
|
14
|
+
get<T = unknown>(path: string): Promise<T>;
|
|
15
|
+
post<T = unknown>(path: string, body?: unknown): Promise<T>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare function createMcpServer(client: ApiClient): McpServer;
|
|
19
|
+
|
|
20
|
+
export { ApiClient, ApiError, createMcpServer };
|
package/dist/lib.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
|
|
3
|
+
declare class ApiError extends Error {
|
|
4
|
+
status: number;
|
|
5
|
+
constructor(status: number, message: string);
|
|
6
|
+
}
|
|
7
|
+
declare class ApiClient {
|
|
8
|
+
private baseUrl;
|
|
9
|
+
private apiKey;
|
|
10
|
+
constructor(opts: {
|
|
11
|
+
apiKey: string;
|
|
12
|
+
baseUrl?: string;
|
|
13
|
+
});
|
|
14
|
+
get<T = unknown>(path: string): Promise<T>;
|
|
15
|
+
post<T = unknown>(path: string, body?: unknown): Promise<T>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare function createMcpServer(client: ApiClient): McpServer;
|
|
19
|
+
|
|
20
|
+
export { ApiClient, ApiError, createMcpServer };
|
package/dist/lib.js
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentientui/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "MCP server for SentientUI — exposes project data and actions to AI agents",
|
|
5
|
+
"homepage": "https://sentient-ui.com",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/casancam/SentientUI.git",
|
|
9
|
+
"directory": "packages/mcp"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"mcp",
|
|
13
|
+
"model-context-protocol",
|
|
14
|
+
"sentientui",
|
|
15
|
+
"sentient-ui",
|
|
16
|
+
"ai-agents",
|
|
17
|
+
"personalization",
|
|
18
|
+
"ab-testing",
|
|
19
|
+
"conversion-optimization"
|
|
20
|
+
],
|
|
5
21
|
"type": "module",
|
|
6
22
|
"bin": {
|
|
7
23
|
"sentientui-mcp": "./dist/index.js"
|
|
@@ -14,6 +30,11 @@
|
|
|
14
30
|
"types": "./dist/index.d.ts",
|
|
15
31
|
"import": "./dist/index.mjs",
|
|
16
32
|
"require": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./server": {
|
|
35
|
+
"types": "./dist/lib.d.ts",
|
|
36
|
+
"import": "./dist/lib.js",
|
|
37
|
+
"require": "./dist/lib.cjs"
|
|
17
38
|
}
|
|
18
39
|
},
|
|
19
40
|
"files": [
|