@clerk/agent-toolkit 0.1.39-canary.v20251013115124 → 0.1.39-canary.v20251013141938
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/ai-sdk/index.d.ts +2 -2
- package/dist/ai-sdk/index.js +1 -1
- package/dist/{chunk-OGRGL5FX.js → chunk-5WAYWIYQ.js} +3 -3
- package/dist/{chunk-RTXVHM56.js → chunk-IL6KIMPU.js} +3 -3
- package/dist/{clerk-tool-D0iIvpBF.d.ts → clerk-tool-DDTKI2Qt.d.ts} +1 -1
- package/dist/{index-C6S2PONZ.d.ts → index-CrLjxEr1.d.ts} +1 -1
- package/dist/langchain/index.d.ts +2 -2
- package/dist/langchain/index.js +1 -1
- package/dist/modelcontextprotocol/index.d.ts +1 -1
- package/dist/modelcontextprotocol/index.js +2 -2
- package/dist/modelcontextprotocol/local-server.js +4 -4
- package/package.json +4 -4
- /package/dist/{chunk-OGRGL5FX.js.map → chunk-5WAYWIYQ.js.map} +0 -0
- /package/dist/{chunk-RTXVHM56.js.map → chunk-IL6KIMPU.js.map} +0 -0
package/dist/ai-sdk/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { f as flatTools, t as tools } from '../index-
|
2
|
-
import { S as SdkAdapter,
|
1
|
+
import { f as flatTools, t as tools } from '../index-CrLjxEr1.js';
|
2
|
+
import { S as SdkAdapter, b as ClerkToolkitBase, a as CreateClerkToolkitParams } from '../clerk-tool-DDTKI2Qt.js';
|
3
3
|
import { Tool } from 'ai';
|
4
4
|
import '@clerk/backend';
|
5
5
|
import 'zod';
|
package/dist/ai-sdk/index.js
CHANGED
@@ -9,7 +9,7 @@ var API_URL = getEnvVariable("CLERK_API_URL") || apiUrlFromPublishableKey(PUBLIS
|
|
9
9
|
var JWT_KEY = getEnvVariable("CLERK_JWT_KEY") || "";
|
10
10
|
var SDK_METADATA = {
|
11
11
|
name: "@clerk/agent-toolkit",
|
12
|
-
version: "0.1.39-canary.
|
12
|
+
version: "0.1.39-canary.v20251013141938",
|
13
13
|
environment: getEnvVariable("NODE_ENV")
|
14
14
|
};
|
15
15
|
var clerkClient = createClerkClient({
|
@@ -17,7 +17,7 @@ var clerkClient = createClerkClient({
|
|
17
17
|
apiUrl: API_URL,
|
18
18
|
apiVersion: API_VERSION,
|
19
19
|
jwtKey: JWT_KEY,
|
20
|
-
userAgent: `${"@clerk/agent-toolkit"}@${"0.1.39-canary.
|
20
|
+
userAgent: `${"@clerk/agent-toolkit"}@${"0.1.39-canary.v20251013141938"}`,
|
21
21
|
sdkMetadata: SDK_METADATA
|
22
22
|
});
|
23
23
|
|
@@ -661,4 +661,4 @@ export {
|
|
661
661
|
tools,
|
662
662
|
flatTools
|
663
663
|
};
|
664
|
-
//# sourceMappingURL=chunk-
|
664
|
+
//# sourceMappingURL=chunk-5WAYWIYQ.js.map
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import {
|
2
2
|
defaultCreateClerkToolkitParams,
|
3
3
|
flatTools
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-5WAYWIYQ.js";
|
5
5
|
|
6
6
|
// src/modelcontextprotocol/adapter.ts
|
7
7
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
8
8
|
var ClerkMcpServer = class extends McpServer {
|
9
9
|
constructor(clerkClient, params, tools) {
|
10
|
-
super({ name: "Clerk", version: "0.1.39-canary.
|
10
|
+
super({ name: "Clerk", version: "0.1.39-canary.v20251013141938" });
|
11
11
|
tools.forEach((tool) => {
|
12
12
|
this.tool(tool.name, tool.description, tool.parameters.shape, async (arg) => {
|
13
13
|
const res = await tool.bindExecute(clerkClient, params)(arg);
|
@@ -26,4 +26,4 @@ var createClerkMcpServer = async (params = {}) => {
|
|
26
26
|
export {
|
27
27
|
createClerkMcpServer
|
28
28
|
};
|
29
|
-
//# sourceMappingURL=chunk-
|
29
|
+
//# sourceMappingURL=chunk-IL6KIMPU.js.map
|
@@ -71,4 +71,4 @@ interface ClerkTool extends Omit<ClerkToolParams, 'execute'> {
|
|
71
71
|
}
|
72
72
|
declare const ClerkTool: (_params: ClerkToolParams) => ClerkTool;
|
73
73
|
|
74
|
-
export { ClerkTool as C, type SdkAdapter as S, type ToolkitParams as T, type
|
74
|
+
export { ClerkTool as C, type SdkAdapter as S, type ToolkitParams as T, type CreateClerkToolkitParams as a, type ClerkToolkitBase as b };
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { f as flatTools, t as tools } from '../index-
|
2
|
-
import { S as SdkAdapter,
|
1
|
+
import { f as flatTools, t as tools } from '../index-CrLjxEr1.js';
|
2
|
+
import { S as SdkAdapter, b as ClerkToolkitBase, a as CreateClerkToolkitParams } from '../clerk-tool-DDTKI2Qt.js';
|
3
3
|
import { StructuredTool } from '@langchain/core/tools';
|
4
4
|
import '@clerk/backend';
|
5
5
|
import 'zod';
|
package/dist/langchain/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { T as ToolkitParams, C as ClerkTool,
|
1
|
+
import { T as ToolkitParams, C as ClerkTool, a as CreateClerkToolkitParams } from '../clerk-tool-DDTKI2Qt.js';
|
2
2
|
import { ClerkClient } from '@clerk/backend';
|
3
3
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
4
4
|
import 'zod';
|
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import {
|
3
3
|
createClerkMcpServer
|
4
|
-
} from "../chunk-
|
4
|
+
} from "../chunk-IL6KIMPU.js";
|
5
5
|
import {
|
6
6
|
filterTools,
|
7
7
|
tools
|
8
|
-
} from "../chunk-
|
8
|
+
} from "../chunk-5WAYWIYQ.js";
|
9
9
|
|
10
10
|
// src/modelcontextprotocol/local-server.ts
|
11
11
|
import { createClerkClient } from "@clerk/backend";
|
@@ -18,7 +18,7 @@ var main = async () => {
|
|
18
18
|
tools: patterns,
|
19
19
|
apiUrl,
|
20
20
|
secretKey
|
21
|
-
} = await yargs(hideBin(process.argv)).version("0.1.39-canary.
|
21
|
+
} = await yargs(hideBin(process.argv)).version("0.1.39-canary.v20251013141938").option("tools", {
|
22
22
|
alias: "t",
|
23
23
|
type: "string",
|
24
24
|
array: true,
|
@@ -36,7 +36,7 @@ var main = async () => {
|
|
36
36
|
const clerkClient = createClerkClient({
|
37
37
|
secretKey: SECRET_KEY,
|
38
38
|
apiUrl: API_URL,
|
39
|
-
userAgent: `${"@clerk/agent-toolkit"}_mcp_server@${"0.1.39-canary.
|
39
|
+
userAgent: `${"@clerk/agent-toolkit"}_mcp_server@${"0.1.39-canary.v20251013141938"}`
|
40
40
|
});
|
41
41
|
const filteredTools = patterns ? patterns.map((pattern) => filterTools(tools, pattern)).flat() : void 0;
|
42
42
|
const mcpServer = await createClerkMcpServer({ clerkClient, tools: filteredTools });
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@clerk/agent-toolkit",
|
3
|
-
"version": "0.1.39-canary.
|
3
|
+
"version": "0.1.39-canary.v20251013141938",
|
4
4
|
"description": "Clerk Toolkit for AI Agents",
|
5
5
|
"homepage": "https://clerk.com/",
|
6
6
|
"bugs": {
|
@@ -39,9 +39,9 @@
|
|
39
39
|
"@modelcontextprotocol/sdk": "1.7.0",
|
40
40
|
"yargs": "17.7.2",
|
41
41
|
"zod": "3.24.2",
|
42
|
-
"@clerk/backend": "^2.18.0-canary.
|
43
|
-
"@clerk/shared": "^3.27.4-canary.
|
44
|
-
"@clerk/types": "^4.93.0-canary.
|
42
|
+
"@clerk/backend": "^2.18.0-canary.v20251013141938",
|
43
|
+
"@clerk/shared": "^3.27.4-canary.v20251013141938",
|
44
|
+
"@clerk/types": "^4.93.0-canary.v20251013141938"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"@types/yargs": "^17.0.33"
|
File without changes
|
File without changes
|