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

Function getSkill

packages/cli/src/utils/api.ts:35–39  ·  view source on GitHub ↗
(project: string, skillName: string)

Source from the content-addressed store, hash-verified

33}
34
35export async function getSkill(project: string, skillName: string): Promise<SingleSkillResponse> {
36 const params = new URLSearchParams({ project, skill: skillName });
37 const response = await fetch(`${baseUrl}/api/v2/skills?${params}`);
38 return (await response.json()) as SingleSkillResponse;
39}
40
41export async function searchSkills(query: string): Promise<SearchResponse> {
42 const params = new URLSearchParams({ query });

Callers 2

downloadSkillFunction · 0.85
installCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected