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 / hooks / tool-register-refusal / server-name-refusal.ts
GitHub Actions (publish-mods)chore: Update mods/ 3deb873 · 14 days ago History
10 lines · 433 BRaw
1/**
2 * Why a plugin a person installed may not add a tool under a name that is,
3 * or begins as, a server the organization delivers: the setting, the rule.
4 *
5 * @param plugin the plugin's name, which its tools would be called by
6 * @returns the refusal
7 */
8export const serverNameRefusal = (plugin: string) =>
9 `managedMcpServers (managed): a tool of ${plugin} would be named as a ` +
10 "tool of one of the organization's servers"