MCPcopy Create free account
hub / github.com/CopilotKit/OpenGenerativeUI / listSkills

Function listSkills

apps/mcp/src/skills.ts:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 process.env.SKILLS_DIR || resolve(__dirname, "../skills");
8
9export function listSkills(): string[] {
10 return readdirSync(SKILLS_DIR)
11 .filter((f) => f.endsWith(".txt"))
12 .map((f) => f.replace(".txt", ""))
13 .sort();
14}
15
16export function loadSkill(name: string): string {
17 const resolved = resolve(SKILLS_DIR, `${name}.txt`);

Callers 2

skills.test.tsFile · 0.90
createMcpServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected