Skip to content

Commit

Permalink
Merge pull request continuedev#3662 from leaft/fix-mcp-provider-bug-#…
Browse files Browse the repository at this point in the history
…3647

fix: mcp context provider bug with issue 2467
  • Loading branch information
sestinj authored Jan 9, 2025
2 parents 44a6dce + 98f07be commit 89a1517
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/context/providers/MCPContextProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ class MCPContextProvider extends BaseContextProvider {
async loadSubmenuItems(
args: LoadSubmenuItemsArgs,
): Promise<ContextSubmenuItem[]> {
return (this.options as MCPContextProviderOptions).submenuItems;
return (this.options as MCPContextProviderOptions).submenuItems.map(
(item, index) => ({
...item,
id: JSON.stringify({
mcpId: String(index),
uri: item.id,
}),
}),
);
}
}

Expand Down

0 comments on commit 89a1517

Please sign in to comment.