@aigne/example-mcp-blocklet 1.14.3 → 1.15.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.
- package/index.ts +2 -2
- package/package.json +8 -8
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import assert from "node:assert";
|
|
|
4
4
|
import { DefaultMemory } from "@aigne/agent-library/default-memory/index.js";
|
|
5
5
|
import { runWithAIGNE } from "@aigne/cli/utils/run-with-aigne.js";
|
|
6
6
|
import { AIAgent, MCPAgent, PromptBuilder } from "@aigne/core";
|
|
7
|
-
import {
|
|
7
|
+
import { refreshAuthorization, UnauthorizedError } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
8
8
|
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
9
9
|
import JWT from "jsonwebtoken";
|
|
10
10
|
import { TerminalOAuthProvider } from "./oauth.js";
|
|
@@ -73,7 +73,7 @@ try {
|
|
|
73
73
|
const metadata = await fetch(oauthUrl.href).then((res) => res.json());
|
|
74
74
|
tokens = await refreshAuthorization(appUrl.href, {
|
|
75
75
|
metadata,
|
|
76
|
-
// biome-ignore lint/style/noNonNullAssertion:
|
|
76
|
+
// biome-ignore lint/style/noNonNullAssertion: non-null assertion
|
|
77
77
|
clientInformation: (await provider.clientInformation())!,
|
|
78
78
|
refreshToken: tokens.refresh_token,
|
|
79
79
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-mcp-blocklet",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.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",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
19
|
+
"@modelcontextprotocol/sdk": "^1.13.3",
|
|
20
20
|
"jsonwebtoken": "^9.0.2",
|
|
21
21
|
"open": "^10.1.2",
|
|
22
|
-
"zod": "^3.
|
|
23
|
-
"@aigne/agent-library": "^1.
|
|
24
|
-
"@aigne/cli": "^1.
|
|
25
|
-
"@aigne/core": "^1.
|
|
22
|
+
"zod": "^3.25.67",
|
|
23
|
+
"@aigne/agent-library": "^1.19.0",
|
|
24
|
+
"@aigne/cli": "^1.22.0",
|
|
25
|
+
"@aigne/core": "^1.31.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/jsonwebtoken": "^9.0.
|
|
29
|
-
"@aigne/test-utils": "^0.
|
|
28
|
+
"@types/jsonwebtoken": "^9.0.10",
|
|
29
|
+
"@aigne/test-utils": "^0.5.1"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"start": "bun run index.ts",
|