Agent/skill tools: use a mcp__…__* wildcard that grants zero MCP tools #1

Closed
opened 2026-05-21 14:40:46 +03:00 by oleks · 0 comments
Owner

The companion agent and the three skills (editor-introspect, editor-act, claude-code-handoff) declared their neovim MCP tool access as a trailing wildcard:

mcp__plugin_nvim-agentic-companion_neovim__*

Claude Code's agent tools: / skill allowed-tools: allowlist does not expand a trailing __* for MCP tools. Verified empirically: spawning the companion agent in a session that did have all 19 mcp__plugin_nvim-agentic-companion_neovim__vim_* tools connected, the agent reported zero mcp__ tools in its inventory.

Working plugins (e.g. cluster) enumerate every MCP tool by full name in tools: — 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 agent tools: and all three skills' allowed-tools: with the explicit 19-tool list (mcp__plugin_nvim-agentic-companion_neovim__vim_buffer, …vim_command, … all 19).

The `companion` agent and the three skills (`editor-introspect`, `editor-act`, `claude-code-handoff`) declared their neovim MCP tool access as a trailing wildcard: mcp__plugin_nvim-agentic-companion_neovim__* Claude Code's agent `tools:` / skill `allowed-tools:` allowlist does **not** expand a trailing `__*` for MCP tools. Verified empirically: spawning the `companion` agent in a session that *did* have all 19 `mcp__plugin_nvim-agentic-companion_neovim__vim_*` tools connected, the agent reported **zero `mcp__` tools** in its inventory. Working plugins (e.g. `cluster`) enumerate every MCP tool by full name in `tools:` — 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 agent `tools:` and all three skills' `allowed-tools:` with the explicit 19-tool list (`mcp__plugin_nvim-agentic-companion_neovim__vim_buffer`, `…vim_command`, … all 19).
oleks closed this issue 2026-05-21 14:41:28 +03:00
oleks added the kind/bugarea/wiring labels 2026-06-03 13:03:48 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: oleks/claude-plugin-nvim-agentic#1