Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
496 B
Raw Blame
import { foldedName } from './folded-name'

/**
 * What the folded name of every tool under an MCP server, or of a plugin's
 * own registered tools, begins with: `mcp_<folded name>_`.
 *
 * Compared fold to fold (foldedName), never as written: a name in another
 * case, or with other separators, is the same server to a model.
 *
 * @param name a server's name, or a registering plugin's
 * @returns the folded prefix
 */
export const toolPrefixOf = (name: string) => `mcp_${foldedName(name)}_`