@loopstack/mcp-module 0.3.2 → 0.3.3
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 +9 -14
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ export class McpLinearModule {}
|
|
|
76
76
|
// mcp-linear.workflow.ts
|
|
77
77
|
import { z } from 'zod';
|
|
78
78
|
import { ChatAgentWorkflow } from '@loopstack/agent';
|
|
79
|
-
import { BaseWorkflow,
|
|
79
|
+
import { BaseWorkflow, Transition, Workflow } from '@loopstack/common';
|
|
80
80
|
import type { RunContext } from '@loopstack/common';
|
|
81
81
|
import { McpCallTool, McpListToolsTool } from '@loopstack/mcp-module';
|
|
82
82
|
|
|
@@ -102,19 +102,14 @@ export class McpLinearWorkflow extends BaseWorkflow<z.infer<typeof ArgsSchema>>
|
|
|
102
102
|
async startChat(state: Record<string, unknown>, ctx: RunContext): Promise<Record<string, unknown>> {
|
|
103
103
|
const args = ctx.args as z.infer<typeof ArgsSchema>;
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
label: 'Linear Agent Chat',
|
|
114
|
-
status: 'pending',
|
|
115
|
-
embed: true,
|
|
116
|
-
expanded: true,
|
|
117
|
-
});
|
|
105
|
+
await this.chatAgentWorkflow.run(
|
|
106
|
+
{
|
|
107
|
+
system: 'You are a Linear assistant. Use mcp_list_tools to discover tools, then mcp_call to invoke them.',
|
|
108
|
+
tools: ['mcp_list_tools', 'mcp_call'],
|
|
109
|
+
userMessage: args.initialMessage,
|
|
110
|
+
},
|
|
111
|
+
{ show: 'inline', label: 'Linear Agent Chat' },
|
|
112
|
+
);
|
|
118
113
|
|
|
119
114
|
return state;
|
|
120
115
|
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"loopstack",
|
|
9
9
|
"tool"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.3.
|
|
11
|
+
"version": "0.3.3",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "Jakob Klippel",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"watch": "nest build --watch"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@loopstack/common": "^0.
|
|
36
|
-
"@loopstack/core": "^0.
|
|
35
|
+
"@loopstack/common": "^0.34.0",
|
|
36
|
+
"@loopstack/core": "^0.34.0",
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.29.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|