logging refactoring

This commit is contained in:
azykov@mail.ru
2026-07-09 10:32:10 +03:00
parent 812e36d0af
commit bc5b3572df
10 changed files with 152 additions and 70 deletions
+2 -3
View File
@@ -2,7 +2,6 @@ import z from "zod";
import { zodToJsonSchema } from "zod-to-json-schema";
import { server } from "../server";
import { ToolDef } from "../types";
import { logged } from "../utils/logged";
export const listToolsTool: ToolDef = {
title: "list_tools",
@@ -10,7 +9,7 @@ export const listToolsTool: ToolDef = {
description: "Return the authoritative current list of available local tools with their schemas.",
inputSchema: {},
},
handler: logged('list_tools', async () => ({
handler: async () => ({
content: [{
type: "text",
text: JSON.stringify(
@@ -26,5 +25,5 @@ export const listToolsTool: ToolDef = {
2,
)
}],
})),
}),
}