MCPcopy Create free account
hub / github.com/codeaashu/claude-code / checkPermissions

Function checkPermissions

src/services/mcp/client.ts:1814–1832  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1812 },
1813 inputJSONSchema: tool.inputSchema as Tool['inputJSONSchema'],
1814 async checkPermissions() {
1815 return {
1816 behavior: 'passthrough' as const,
1817 message: 'MCPTool requires permission.',
1818 suggestions: [
1819 {
1820 type: 'addRules' as const,
1821 rules: [
1822 {
1823 toolName: fullyQualifiedName,
1824 ruleContent: undefined,
1825 },
1826 ],
1827 behavior: 'allow' as const,
1828 destination: 'localSettings' as const,
1829 },
1830 ],
1831 }
1832 },
1833 async call(
1834 args: Record<string, unknown>,
1835 context,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected