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

Function pathExists

packages/cli/src/commands/remove.ts:183–190  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

181}
182
183async function pathExists(path: string): Promise<boolean> {
184 try {
185 await access(path);
186 return true;
187 } catch {
188 return false;
189 }
190}
191
192async function hasMcpConfig(agentName: SetupAgent, scope: Scope): Promise<boolean> {
193 const agent = getAgent(agentName);

Callers 2

hasRuleFunction · 0.70
hasSkillFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected