MCPcopy Create free account
hub / github.com/Surfer-Org/Protocol / fetchGithubFile

Function fetchGithubFile

desktop/src/renderer/helpers.ts:42–47  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

40
41export const getCodeExamples = async (run: any) => {
42 const fetchGithubFile = async (path: string) => {
43 const response = await fetch(
44 `https://raw.githubusercontent.com/Surfer-Org/Protocol/main/${path}`
45 );
46 return response.text();
47 };
48
49 const claudePath = 'cookbook/python/claude-mcp/README.md';
50 const claudeCode = await fetchGithubFile(claudePath);

Callers 1

getCodeExamplesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected