MCPcopy Create free account
hub / github.com/docsagent/docsagent / add

Method add

src/index.ts:199–202  ·  view source on GitHub ↗

* Real-time document addition interface. * @param path The newly added folder directory or an array of file paths.

(path: string | string[])

Source from the content-addressed store, hash-verified

197 * @param path The newly added folder directory or an array of file paths.
198 */
199 public async add(path: string | string[]): Promise<void> {
200 const sources = Array.isArray(path) ? path : [path];
201 await this.request("/add", "POST", { source: sources });
202 }
203
204 /**
205 * Query interface: Returns relevant records based on the user's query.

Callers 2

startMcpServerMethod · 0.95
mainFunction · 0.95

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected