MCPcopy Create free account
hub / github.com/modelcontextprotocol/ext-apps / addLocal

Function addLocal

examples/pdf-server/server.ts:1302–1307  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

1300 const seen = new Set<string>();
1301 const localFiles: string[] = [];
1302 const addLocal = (filePath: string) => {
1303 const url = pathToFileUrl(filePath);
1304 if (seen.has(url)) return;
1305 seen.add(url);
1306 localFiles.push(url);
1307 };
1308
1309 // Explicitly registered files (CLI args + file roots)
1310 for (const filePath of allowedLocalFiles) addLocal(filePath);

Callers 2

createServerFunction · 0.85
walkFunction · 0.85

Calls 1

pathToFileUrlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…