@aigne/example-mcp-blocklet 1.10.0 → 1.11.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/index.ts +2 -1
- package/package.json +5 -4
package/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bunwrapper
|
|
2
2
|
|
|
3
3
|
import assert from "node:assert";
|
|
4
|
+
import { DefaultMemory } from "@aigne/agent-library/default-memory/index.js";
|
|
4
5
|
import { runWithAIGNE } from "@aigne/cli/utils/run-with-aigne.js";
|
|
5
6
|
import { AIAgent, MCPAgent, PromptBuilder } from "@aigne/core";
|
|
6
7
|
import { UnauthorizedError, refreshAuthorization } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
@@ -123,7 +124,7 @@ await runWithAIGNE(
|
|
|
123
124
|
"You are a helpful assistant that can help users query and analyze data from the blocklet. You can perform various database queries on the blocklet database, before performing any queries, please try to understand the user's request and generate a query base on the database schema.",
|
|
124
125
|
),
|
|
125
126
|
skills: [blocklet],
|
|
126
|
-
memory:
|
|
127
|
+
memory: new DefaultMemory(),
|
|
127
128
|
});
|
|
128
129
|
|
|
129
130
|
return agent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-mcp-blocklet",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "A demonstration of using AIGNE Framework and MCP Server hosted by the Blocklet platform",
|
|
5
5
|
"author": "Arcblock <blocklet@arcblock.io> https://github.com/blocklet",
|
|
6
6
|
"homepage": "https://github.com/AIGNE-io/aigne-framework/tree/main/examples/mcp-blocklet",
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
"jsonwebtoken": "^9.0.2",
|
|
21
21
|
"open": "^10.1.2",
|
|
22
22
|
"zod": "^3.24.4",
|
|
23
|
-
"@aigne/
|
|
24
|
-
"@aigne/
|
|
23
|
+
"@aigne/agent-library": "^1.12.0",
|
|
24
|
+
"@aigne/cli": "^1.11.0",
|
|
25
|
+
"@aigne/core": "^1.18.0"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@types/jsonwebtoken": "^9.0.9",
|
|
28
|
-
"@aigne/test-utils": "^0.3.
|
|
29
|
+
"@aigne/test-utils": "^0.3.2"
|
|
29
30
|
},
|
|
30
31
|
"scripts": {
|
|
31
32
|
"start": "bun run index.ts",
|