@aigne/example-mcp-blocklet 1.14.0 → 1.14.2
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/README.md +2 -1
- package/index.ts +1 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MCP Blocklet Demo
|
|
2
2
|
|
|
3
|
-
This demo demonstrates how to use [AIGNE Framework](https://github.com/AIGNE-io/aigne-framework) and MCP to interact with apps hosted on the [Blocklet platform](https://
|
|
3
|
+
This demo demonstrates how to use [AIGNE Framework](https://github.com/AIGNE-io/aigne-framework) and MCP to interact with apps hosted on the [Blocklet platform](https://www.blocklet.io). The example now supports both one-shot and interactive chat modes, along with customizable model settings and pipeline input/output.
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
@@ -14,6 +14,7 @@ This demo demonstrates how to use [AIGNE Framework](https://github.com/AIGNE-io/
|
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
export OPENAI_API_KEY=YOUR_OPENAI_API_KEY # Set your OpenAI API key
|
|
17
|
+
export BLOCKLET_APP_URL="https://xxx.xxxx.xxx" # Your Blocklet app URL
|
|
17
18
|
|
|
18
19
|
# Run in one-shot mode (default)
|
|
19
20
|
npx -y @aigne/example-mcp-blocklet
|
package/index.ts
CHANGED
|
@@ -120,6 +120,7 @@ await runWithAIGNE(
|
|
|
120
120
|
});
|
|
121
121
|
|
|
122
122
|
const agent = AIAgent.from({
|
|
123
|
+
name: "example_blocklet",
|
|
123
124
|
instructions: PromptBuilder.from(
|
|
124
125
|
"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.",
|
|
125
126
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-mcp-blocklet",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
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,13 +20,13 @@
|
|
|
20
20
|
"jsonwebtoken": "^9.0.2",
|
|
21
21
|
"open": "^10.1.2",
|
|
22
22
|
"zod": "^3.24.4",
|
|
23
|
-
"@aigne/agent-library": "^1.17.
|
|
24
|
-
"@aigne/core": "^1.
|
|
25
|
-
"@aigne/cli": "^1.
|
|
23
|
+
"@aigne/agent-library": "^1.17.8",
|
|
24
|
+
"@aigne/core": "^1.29.0",
|
|
25
|
+
"@aigne/cli": "^1.20.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/jsonwebtoken": "^9.0.9",
|
|
29
|
-
"@aigne/test-utils": "^0.4.
|
|
29
|
+
"@aigne/test-utils": "^0.4.15"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"start": "bun run index.ts",
|