@aigne/example-mcp-blocklet 1.6.0 → 1.7.1

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.
Files changed (3) hide show
  1. package/README.md +10 -9
  2. package/index.ts +1 -1
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -1,20 +1,21 @@
1
1
  # MCP Blocklet Demo
2
2
 
3
- This is a demonstration of using [AIGNE Framework](https://github.com/AIGNE-io/aigne-framework) and MCP to interact with apps hosted on the [Blocklet platform](https://github.com/blocklet).
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://github.com/blocklet).
4
4
 
5
5
  ## Prerequisites
6
6
 
7
7
  - [Node.js](https://nodejs.org) and npm installed on your machine
8
- - [Bun](https://bun.sh) installed on your machine
9
- - [OpenAI API key](https://platform.openai.com/api-keys) used to interact with OpenAI API
10
- - [Pnpm](https://pnpm.io) [Optional] if you want to run the example from source code
8
+ - An [OpenAI API key](https://platform.openai.com/api-keys) for interacting with OpenAI's services
9
+ - Optional dependencies (if running the example from source code):
10
+ - [Bun](https://bun.sh) for running unit tests & examples
11
+ - [Pnpm](https://pnpm.io) for package management
11
12
 
12
- ## Try without Installation
13
+ ## Quick Start (No Installation Required)
13
14
 
14
15
  ```bash
15
- export OPENAI_API_KEY=YOUR_OPENAI_API_KEY # setup your OpenAI API key
16
+ export OPENAI_API_KEY=YOUR_OPENAI_API_KEY # Set your OpenAI API key
16
17
 
17
- npx -y @aigne/example-mcp-blocklet # run the example
18
+ npx -y @aigne/example-mcp-blocklet # Run the example
18
19
  ```
19
20
 
20
21
  ## Installation
@@ -38,8 +39,8 @@ pnpm install
38
39
  Setup your OpenAI API key in the `.env.local` file:
39
40
 
40
41
  ```bash
41
- OPENAI_API_KEY="" # setup your OpenAI API key here
42
- BLOCKLET_APP_URL="" # setup your Blocklet app URL here
42
+ OPENAI_API_KEY="" # Set your OpenAI API key here
43
+ BLOCKLET_APP_URL="" # Set your Blocklet app URL here
43
44
  ```
44
45
 
45
46
  ### Run the Example
package/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env npx -y bun
1
+ #!/usr/bin/env bunwrapper
2
2
 
3
3
  import assert from "node:assert";
4
4
  import { runChatLoopInTerminal } from "@aigne/cli/utils/run-chat-loop.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/example-mcp-blocklet",
3
- "version": "1.6.0",
3
+ "version": "1.7.1",
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,8 +20,8 @@
20
20
  "jsonwebtoken": "^9.0.2",
21
21
  "open": "^10.1.0",
22
22
  "zod": "^3.24.2",
23
- "@aigne/core": "^1.8.0",
24
- "@aigne/cli": "^1.3.0"
23
+ "@aigne/cli": "^1.5.1",
24
+ "@aigne/core": "^1.10.0"
25
25
  },
26
26
  "scripts": {
27
27
  "start": "bun run index.ts",