MCPcopy
hub / github.com/Doorman11991/smallcode / _loadSingleFile

Method _loadSingleFile

src/plugins/loader.js:219–232  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

217 }
218
219 _loadSingleFile(filePath) {
220 try {
221 const manifest = JSON.parse(fs.readFileSync(filePath, 'utf-8'));
222 if (manifest.prompts) {
223 for (const p of manifest.prompts) {
224 this.prompts.push({
225 inject: p.inject || 'always',
226 content: p.content || '',
227 plugin: manifest.name || path.basename(filePath, '.json'),
228 });
229 }
230 }
231 } catch {}
232 }
233
234 // Get tools to add to the model's tool list
235 getTools() {

Callers 1

loadAllMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected