MCPcopy
hub / github.com/codeaashu/claude-code / getMcpSkillCommands

Function getMcpSkillCommands

src/commands.ts:549–561  ·  view source on GitHub ↗
(
  mcpCommands: readonly Command[],
)

Source from the content-addressed store, hash-verified

547 * separately.
548 */
549export function getMcpSkillCommands(
550 mcpCommands: readonly Command[],
551): readonly Command[] {
552 if (feature('MCP_SKILLS')) {
553 return mcpCommands.filter(
554 cmd =>
555 cmd.type === 'prompt' &&
556 cmd.loadedFrom === 'mcp' &&
557 !cmd.disableModelInvocation,
558 )
559 }
560 return []
561}
562
563// SkillTool shows ALL prompt-based commands that the model can invoke
564// This includes both skills (from /skills/) and commands (from /commands/)

Callers 1

Calls 1

featureFunction · 0.85

Tested by

no test coverage detected