MCPcopy Index your code
hub / github.com/Waishnav/devspace / logToolCall

Function logToolCall

src/server.ts:275–283  ·  view source on GitHub ↗
(config: ServerConfig, fields: ToolLogFields)

Source from the content-addressed store, hash-verified

273}
274
275function logToolCall(config: ServerConfig, fields: ToolLogFields): void {
276 if (!config.logging.toolCalls) return;
277
278 const { command, ...safeFields } = fields;
279 logEvent(config.logging, fields.success ? "info" : "warn", "tool_call", {
280 ...safeFields,
281 commandPreview: config.logging.shellCommands && command ? commandPreview(command) : undefined,
282 });
283}
284
285function contentText(content: ToolContent[]): string {
286 return content

Callers 3

logFailedToolResponseFunction · 0.85
createMcpServerFunction · 0.85

Calls 2

logEventFunction · 0.85
commandPreviewFunction · 0.85

Tested by

no test coverage detected