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 / policy / managed-tools-restored / is-org-tool / is-server-file-unreadable / is-server-file-unreadable.ts
GitHub Actions (publish-mods)chore: Update mods/ 3deb873 · 15 days ago History
11 lines · 424 BRaw
1import type { Settings } from 'claude-code'
2
3/**
4 * Whether the policy read marks the organization's server file
5 * (managed-mcp.json) as present and unreadable: its servers cannot be named.
6 *
7 * @param policy the managed settings, as `$.settings.read` answers them
8 * @returns true when the mark is set
9 */
10export const isServerFileUnreadable = (policy: Settings): boolean =>
11 policy.managedMcpServersUnreadable === true