MCPcopy
hub / github.com/neomjs/neo / get

Function get

ai/mcp/client/config.mjs:131–138  ·  view source on GitHub ↗
(target, prop, receiver)

Source from the content-addressed store, hash-verified

129// Using a Proxy to allow direct access to properties within `this.data`
130export default new Proxy(instance, {
131 get(target, prop, receiver) {
132 // Prefer properties/methods on the instance itself (e.g., load, className)
133 if (Reflect.has(target, prop)) {
134 return Reflect.get(target, prop, receiver);
135 }
136 // Fallback to the data object
137 return target.data[prop];
138 }
139});

Callers 1

Calls 2

hasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected