MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / constructor

Method constructor

src/common/action.ts:75–80  ·  view source on GitHub ↗
(config: ConfigParser)

Source from the content-addressed store, hash-verified

73 actions = new Map<Identifier, ActionView>();
74 config: ConfigParser;
75 constructor(config: ConfigParser) {
76 this.config = config;
77 bus.on("dispatch", (...args: any[]) => {
78 this.dispatch(...args);
79 });
80 }
81
82 dispatch(...args: any[]) {
83 const { identifier, param } = decompose(...args);

Callers

nothing calls this directly

Calls 2

dispatchMethod · 0.95
onMethod · 0.80

Tested by

no test coverage detected