MCPcopy
hub / github.com/upstash/context7 / listProjectSkills

Function listProjectSkills

packages/cli/src/utils/api.ts:29–33  ·  view source on GitHub ↗
(project: string)

Source from the content-addressed store, hash-verified

27// TODO(deprecate-skills-phase-2): Remove the Skill Hub API helpers in this file
28// when deprecated `ctx7 skills ...` commands are deleted.
29export async function listProjectSkills(project: string): Promise<ListSkillsResponse> {
30 const params = new URLSearchParams({ project });
31 const response = await fetch(`${baseUrl}/api/v2/skills?${params}`);
32 return (await response.json()) as ListSkillsResponse;
33}
34
35export async function getSkill(project: string, skillName: string): Promise<SingleSkillResponse> {
36 const params = new URLSearchParams({ project, skill: skillName });

Callers 2

installCommandFunction · 0.85
infoCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected