Skip to content

Commit 8d4b7ce

Browse files
authored
Merge pull request #581 from nextcloud/fix/mcp-tool-labels
fix(Message): Add a nice label for mcp_ tools
2 parents 910a8e9 + 1398648 commit 8d4b7ce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/components/ChattyLLM/Message.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ export default {
242242
}
243243
},
244244
getSourceString(source) {
245+
if (source.startsWith('mcp_')) {
246+
return t('assistant', 'MCP server: {tool_id}', { tool_id: source.substring('mcp_'.length) })
247+
}
245248
return this.informationSourceNames[source] ? this.informationSourceNames[source] : source
246249
},
247250
},

0 commit comments

Comments
 (0)