MCPcopy Create free account
hub / github.com/Noumena-Network/code / registerMagicDoc

Function registerMagicDoc

src/services/MagicDocs/magicDocs.ts:88–95  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

86 * Only registers once per file path - the hook always reads latest content
87 */
88export function registerMagicDoc(filePath: string): void {
89 // Only register if not already tracked
90 if (!trackedMagicDocs.has(filePath)) {
91 trackedMagicDocs.set(filePath, {
92 path: filePath,
93 })
94 }
95}
96
97/**
98 * Create Magic Docs agent definition

Callers 1

initMagicDocsFunction · 0.85

Calls 2

setMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected