mastra-starter 1.0.7 → 1.0.8
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/.env.example +2 -1
- package/package.json +1 -1
- package/src/mastra/agents/index.ts +21 -17
package/.env.example
CHANGED
package/package.json
CHANGED
@@ -47,23 +47,27 @@ const mcp = new MCPConfiguration({
|
|
47
47
|
const mcpTools = await mcp.getTools();
|
48
48
|
|
49
49
|
// composio tools
|
50
|
-
const
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
//
|
62
|
-
//
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
50
|
+
const composioApiKey = process.env.COMPOSIO_API_KEY;
|
51
|
+
const composioAccountId = process.env.COMPOSIO_ACCOUNT_ID;
|
52
|
+
let composioToolset: ToolsInput | undefined;
|
53
|
+
if (composioApiKey && composioAccountId) {
|
54
|
+
const composio = new ComposioIntegration({
|
55
|
+
config: {
|
56
|
+
API_KEY: composioApiKey,
|
57
|
+
entityId: 'default',
|
58
|
+
connectedAccountId: composioAccountId,
|
59
|
+
},
|
60
|
+
});
|
61
|
+
// const actionsEnums = [
|
62
|
+
// 'GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER',
|
63
|
+
// 'GITHUB_ACTIVITY_LIST_STARGAZERS_FOR_REPO',
|
64
|
+
// 'GITHUB_GET_OCTOCAT',
|
65
|
+
// ];
|
66
|
+
const actionsEnums = composioPlugins.map((plugin: string) => plugin.replace('composio:', ''));
|
67
|
+
composioToolset = await composio.getTools({
|
68
|
+
actions: actionsEnums,
|
69
|
+
}) as ToolsInput;
|
70
|
+
}
|
67
71
|
|
68
72
|
// agent
|
69
73
|
export const characterAgent = new Agent({
|