MCPcopy
hub / github.com/RedPlanetHQ/core / folderScopeError

Function folderScopeError

packages/cli/src/server/tools/scope-error.ts:3–11  ·  view source on GitHub ↗
(target: string, scope: string)

Source from the content-addressed store, hash-verified

1import {GatewayErrorCode} from '@redplanethq/gateway-protocol';
2
3export function folderScopeError(target: string, scope: string) {
4 return {
5 ok: false as const,
6 error: {
7 code: GatewayErrorCode.FOLDER_SCOPE_DENIED,
8 message: `Path "${target}" is not inside a registered folder with scope "${scope}". Run \`corebrain folder add\`.`,
9 },
10 };
11}

Callers 3

handleExecCommandFunction · 0.90
handleAskFunction · 0.90
requireFilesScopeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected