MCPcopy
hub / github.com/xpf0000/FlyEnv / push

Method push

src/main/core/MCPContextResolver.ts:425–430  ·  view source on GitHub ↗
(bucket: keyof ManagedFileGroups, item?: ManagedPathItem)

Source from the content-addressed store, hash-verified

423 const siteId = `${site.id}`
424
425 const push = (bucket: keyof ManagedFileGroups, item?: ManagedPathItem) => {
426 if (!item) {
427 return
428 }
429 files[bucket].push(item)
430 }
431
432 push('env', makePathItem('.env', site.envFile))
433 push('config', makePathItem('nginx-vhost', join(baseDir, 'vhost', 'nginx', `${siteId}.conf`)))

Callers 15

getFlattenedKeysFunction · 0.80
concatFunction · 0.80
startMethod · 0.80
stopAllServiceMethod · 0.80
uniquePathItemsFunction · 0.80
resolveSiteUrlsMethod · 0.80
resolveSiteRuntimeMethod · 0.80
sendMethod · 0.80
sendMethod · 0.80
onMcpNotifyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected