spacehub

surshar / claude-code

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.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / tests / fixtures / registered-tool-of.ts
10 lines · 320 BRaw
1/**
2 * What registering a plugin's tool answers: the name it is called by.
3 *
4 * @param plugin the plugin that asked
5 * @param name the tool's own name
6 * @returns the `tool.register` result
7 */
8export const registeredToolOf = (plugin: string, name: string) => ({
9 value: { tool: `mcp__plugin_${plugin}__${name}` },
10})