Replies: 3 comments 1 reply
-
|
Guys, Now mcphub manages auto approval behavior of tool calls rather than depending on codecompanion. This also respects the We can toggle the auto approval for our mcphub with With this update many issues with auto approvals are fixed. We right away return error if the tool was called with incorrect parameters rather than asking for an approval first. We can now control how we want to show the approval window (which current uses the vim.ui.confirm but a custom window might be good for lengthy text in approvals). Changes neededCodecompanionRemove require("codecompanion").setup({
strategies = {
chat = {
tools = {
["mcp"] = {
-- calling it in a function would prevent mcphub from being loaded before it's needed
callback = function() return require("mcphub.extensions.codecompanion") end,
description = "Call tools and resources from the MCP Servers",
}
}
}
}
}) |
Beta Was this translation helpful? Give feedback.
-
|
This is really exciting Is it possible to have the results of the mcp tool also shared in the prompt? I can look at the stdio or docker logs, but that seems a bit cumbersome. Especially in the case of an error. For ex with filesystem mcp server, there's no feedback that it was a failure.
from <tools>
<tool name="mcp">
<action type="use_mcp_tool">
<server_name><![CDATA[filesystem]]></server_name>
<tool_name><![CDATA[write_file]]></tool_name>
<arguments><![CDATA[{"path": "/projects/readme.md", "content": ""}]]></arguments>
</action>
</tool>
</tools>The error is shared with the llm, but the prompter, doesn't see it. So I basically don't know that the operation failed without checking docker logs. |
Beta Was this translation helpful? Give feedback.
-
Sorry, what do you mean? When the tool runs the output of the tool is added to the chat (with |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, with v4 of mcphub.nvim
show_result_in_chattotrue. (Note: if the result text is markdown with headers, text after the headers wont be picked up by codecompanion)Tool Execution
vim.g.codecompanion_auto_tool_mode = trueorgtain chat for auto-approvalFor more information visit:
https://github.com/ravitemer/mcphub.nvim/wiki/CodeCompanion
Beta Was this translation helpful? Give feedback.
All reactions