MCPcopy
hub / github.com/Fission-AI/OpenSpec / toolUnknownError

Function toolUnknownError

src/commands/workset-input.ts:117–129  ·  view source on GitHub ↗
(
  toolId: string,
  table: OpenerDefinition[]
)

Source from the content-addressed store, hash-verified

115}
116
117export function toolUnknownError(
118 toolId: string,
119 table: OpenerDefinition[]
120): StoreError {
121 const knownIds = table
122 .filter((opener) => isOpenerEnabled(opener))
123 .map((opener) => opener.id)
124 .join(', ');
125 return new StoreError(`Unknown tool '${toolId}'.`, 'workset_tool_unknown', {
126 target: 'workset.tool',
127 fix: `Known tools: ${knownIds}. Add new tools under "openers" in ${getGlobalConfigPath()}.`,
128 });
129}
130
131/** Stops at the first installed alternative instead of scanning all. */
132export function firstInstalledAlternative(

Callers 2

openMethod · 0.85
assertKnownToolFunction · 0.85

Calls 2

isOpenerEnabledFunction · 0.85
getGlobalConfigPathFunction · 0.85

Tested by

no test coverage detected