Agent/skill tools: use a mcp__…__* wildcard that grants zero MCP tools
#1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
companionagent and the three skills (editor-introspect,editor-act,claude-code-handoff) declared their neovim MCP tool access as a trailing wildcard:Claude Code's agent
tools:/ skillallowed-tools:allowlist does not expand a trailing__*for MCP tools. Verified empirically: spawning thecompanionagent in a session that did have all 19mcp__plugin_nvim-agentic-companion_neovim__vim_*tools connected, the agent reported zeromcp__tools in its inventory.Working plugins (e.g.
cluster) enumerate every MCP tool by full name intools:— no wildcard. That is the convention that actually matches.Impact: the companion agent could never call any
vim_*tool — the whole plugin was non-functional as an agent.Fix (v0.8.0): replace the
__*wildcard in the agenttools:and all three skills'allowed-tools:with the explicit 19-tool list (mcp__plugin_nvim-agentic-companion_neovim__vim_buffer,…vim_command, … all 19).