@loopstack/mcp-module 0.3.2 → 0.3.4

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/README.md +9 -14
  2. 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, LinkDocument, MessageDocument, Transition, Workflow } from '@loopstack/common';
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
- const result = await this.chatAgentWorkflow.run({
106
- system: 'You are a Linear assistant. Use mcp_list_tools to discover tools, then mcp_call to invoke them.',
107
- tools: ['mcp_list_tools', 'mcp_call'],
108
- userMessage: args.initialMessage,
109
- });
110
-
111
- await this.documentStore.save(LinkDocument, {
112
- workflowId: result.workflowId,
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.2",
11
+ "version": "0.3.4",
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.33.0",
36
- "@loopstack/core": "^0.33.0",
35
+ "@loopstack/common": "^0.35.0",
36
+ "@loopstack/core": "^0.35.0",
37
37
  "@modelcontextprotocol/sdk": "^1.29.0"
38
38
  },
39
39
  "devDependencies": {