@aigne/example-mcp-github 1.11.7 → 1.11.9

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 (2) hide show
  1. package/package.json +6 -6
  2. package/usages.ts +10 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/example-mcp-github",
3
- "version": "1.11.7",
3
+ "version": "1.11.9",
4
4
  "description": "A demonstration of using AIGNE Framework and GitHub MCP Server to interact with GitHub repositories",
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-github",
@@ -16,14 +16,14 @@
16
16
  "README.md"
17
17
  ],
18
18
  "dependencies": {
19
- "@aigne/agent-library": "^1.13.0",
20
- "@aigne/core": "^1.19.0",
21
- "@aigne/cli": "^1.11.7",
22
- "@aigne/openai": "^0.3.0"
19
+ "@aigne/agent-library": "^1.13.2",
20
+ "@aigne/core": "^1.20.1",
21
+ "@aigne/openai": "^0.3.2",
22
+ "@aigne/cli": "^1.11.9"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/bun": "^1.2.9",
26
- "@aigne/test-utils": "^0.4.0"
26
+ "@aigne/test-utils": "^0.4.2"
27
27
  },
28
28
  "scripts": {
29
29
  "start": "bun run index.ts",
package/usages.ts CHANGED
@@ -36,32 +36,30 @@ You can perform various GitHub operations like:
36
36
 
37
37
  Always provide clear, concise responses with relevant information from GitHub.
38
38
  `,
39
+ inputKey: "message",
39
40
  });
40
41
 
41
42
  // Example 1: Search for repositories
42
43
  console.log("Example 1: Searching for repositories");
43
- const searchResult = await aigne.invoke(
44
- agent,
45
- "Search for repositories related to 'modelcontextprotocol' and limit to 3 results",
46
- );
44
+ const searchResult = await aigne.invoke(agent, {
45
+ message: "Search for repositories related to 'modelcontextprotocol' and limit to 3 results",
46
+ });
47
47
  console.log(searchResult);
48
48
  console.log("\n------------------------\n");
49
49
 
50
50
  // Example 2: Get file contents
51
51
  console.log("Example 2: Getting file contents");
52
- const fileResult = await aigne.invoke(
53
- agent,
54
- "Get the content of README.md from modelcontextprotocol/servers repository",
55
- );
52
+ const fileResult = await aigne.invoke(agent, {
53
+ message: "Get the content of README.md from modelcontextprotocol/servers repository",
54
+ });
56
55
  console.log(fileResult);
57
56
  console.log("\n------------------------\n");
58
57
 
59
58
  // Example 3: List commits
60
59
  console.log("Example 3: Listing commits");
61
- const commitsResult = await aigne.invoke(
62
- agent,
63
- "List the latest 3 commits from the modelcontextprotocol/servers repository",
64
- );
60
+ const commitsResult = await aigne.invoke(agent, {
61
+ message: "List the latest 3 commits from the modelcontextprotocol/servers repository",
62
+ });
65
63
  console.log(commitsResult);
66
64
 
67
65
  await aigne.shutdown();