// Canonical (long-prefix) maxy MCP tool naming.
//
// Claude Code's installed-plugin channel serves every plugin MCP tool under
// `mcp__plugin_<plugin>_<server>__<tool>`. For every platform plugin the
// marketplace name, the MCP server key, and the directory basename are
// identical, so the canonical name is `mcp__plugin_<dir>_<dir>__<tool>`.
//
// This helper is the single constructor of that name. tool-surface.ts builds
// its admin/all surfaces through it; the per-spawn (public) channel keeps the
// short prefix and uses `qualifyShortToolName`. The generated list of every
// canonical name lives in `canonical-tool-names.generated.ts`, kept in lockstep
// by the build gate `platform/scripts/check-canonical-tool-names.mjs`.
/** Long-prefix name served by the installed-plugin channel (admin + specialist
 *  spawns). plugin === server === plugin directory basename. */
export function canonicalToolName(plugin, tool) {
    return `mcp__plugin_${plugin}_${plugin}__${tool}`;
}
/** Short-prefix name served by the per-spawn `--mcp-config` channel, retained
 *  only for public-agent spawns. */
export function qualifyShortToolName(plugin, tool) {
    return `mcp__${plugin}__${tool}`;
}
//# sourceMappingURL=canonical-tool-names.js.map