- Api::mcpTool($name, $description, fn (array $args), $properties, $required): offered on jumphp-ide beside the
IDE's own tools as plugin_<id>_<name> (mcp__jumphp-ide__plugin_<id>_<name>), run in PHP (not in the interface),
a string / array / MCP result / Deferred; an exception is the tool's error; gone when the plugin is disabled
- McpServer: its tools may come from a closure (asked at each tools/list); IdeAgent::setExtraTools()
- PluginTestCase: mcp(), mcpTools(); hello-plugin / skeleton-plugin: list_todos and its test
- the Plugins window lists each plugin's tools for Claude; Claude's instructions name them
- docs/ide-plugins.md (Tools for Claude), docs/ide.md, docs/ide.fr.md, AGENTS.md §19
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01X3cUrpEPheHAT512jkSvAK