Skip to content

Commit b719e1c

Browse files
committed
refactor: provide better descriptions for cmp completion menu docs
1 parent c75e886 commit b719e1c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/mcphub/extensions/codecompanion/tools.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function M.create_static_tools(opts)
107107
groups = {
108108
mcp = {
109109
id = "mcp_static:mcp",
110-
description = "MCP Servers Tool",
110+
description = " Call tools and resources from MCP servers with:\n\n - `use_mcp_tool`\n - `access_mcp_resource`\n",
111111
system_prompt = function(_)
112112
local hub = require("mcphub").get_hub_instance()
113113
if not hub then
@@ -281,7 +281,7 @@ function M.register(opts)
281281

282282
groups[safe_server_name] = {
283283
id = "mcp_dynamic:" .. safe_server_name,
284-
description = string.format(" All tools from %s MCP server ", server_name),
284+
description = string.format(" All tools from `%s` MCP server: \n\n%s", server_name, table.concat(vim.tbl_map(function(t) return " - `" .. t .. "` " end,tool_names), "\n")),
285285
tools = tool_names,
286286
system_prompt = function(self)
287287
if custom_instructions and custom_instructions ~= "" then

0 commit comments

Comments
 (0)