🎉 v5.13.0: Granular Tool Access for CodeCompanion & More #202
Pinned
ravitemer
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What’s going on with my ‘boys’ and, in some cases, ‘gals?’ 😂
This update introduces a significant improvement to the MCPHub-CodeCompanion integration, providing much more flexibility and control over your MCP tools.
Demo: Fixing an issue using Github MCP Server
fix-issue.mp4
Configs used in the above Video Demo
Github MCP Server Config
Blink.cmp config
Adding files to chat using `.` with `nvim-tree`
Previous Limitations with
@mcp
The existing
@mcp
tool worked, but it had some drawbacks:✨ New: Granular Tool Access
This update introduces granular tool access, which creates proper CodeCompanion function tools for each MCP server and tool, enabling more powerful and precise workflows.
🎯 Server Groups
Access all tools from a specific server:
🔧 Individual Tools
Target specific functionality with namespaced tools:
🛠️ Custom Tool Combinations
Create specialized workflows by mixing tools from different servers in your CodeCompanion config:
🎛️ Fine-Grained Auto-Approval
One of the standout features is per-tool auto-approval control. Configure which tools run automatically versus requiring confirmation directly from the Hub UI by pressing
a
on a tool or an entire server. This is perfect for allowing safe operations (read_file
,search_code
) while protecting potentially destructive ones (delete_items
,execute_command
).🚀 Benefits
Some older OpenAI models have character limits for function descriptions. If you encounter issues, consider using latest models or falling back to the general
@mcp
group for specific cases.🚀 Get Started
No breaking changes! The traditional
@mcp
tool continues to work exactly as before. These new features are purely additive.mcphub.nvim
mcphub
extension. The default options enable all new features.@github
) and individual tools (@github__create_issue
) with@
completion in the CodeCompanion chat.:MCPHub
) to configure auto-approval for your most trusted tools.⚡ Better Built-in Neovim Tools:
edit_file
&write_file
The built-in
neovim
server is now more powerful with two new tools:write_file
: A tool to write content to a file, showing an interactive diff by default.edit_file
: An advanced, interactive tool for making precise file modifications usingSEARCH/REPLACE
blocks.The
edit_file
tool is highly customizable through yourmcphub
setup. For a smoother, uninterrupted workflow, you can auto-approve these tools in the Hub UI. When auto-approved, they will apply changes directly without showing the interactive diff.Beta Was this translation helpful? Give feedback.
All reactions