Skip to content

Commit 1d6b044

Browse files
committed
prefix state with mcpgateways:
1 parent 116b63b commit 1d6b044

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/appmixer/ai/mcptools/MCPGateway/MCPGateway.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
start: async function(context) {
1212

1313
const tools = await this.collectTools(context);
14-
await context.service.stateAddToSet(`user:${context.userId}`, {
14+
await context.service.stateAddToSet(`mcpgateways:user:${context.userId}`, {
1515
flowId: context.flowId,
1616
componentId: context.componentId,
1717
tools,
@@ -27,7 +27,7 @@ module.exports = {
2727
stop: async function(context) {
2828

2929
const tools = await context.stateGet('tools');
30-
await context.service.stateRemoveFromSet(`user:${context.userId}`, {
30+
await context.service.stateRemoveFromSet(`mcpgateways:user:${context.userId}`, {
3131
flowId: context.flowId,
3232
componentId: context.componentId,
3333
tools,

src/appmixer/ai/mcptools/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = (context) => {
4848
const userId = user.getId();
4949

5050
// Get all MCP Gateways for this user.
51-
const components = await context.service.stateGet(`user:${userId}`) || [];
51+
const components = await context.service.stateGet(`mcpgateways:user:${userId}`) || [];
5252
return components;
5353
}
5454
}

0 commit comments

Comments
 (0)