logging refactoring
This commit is contained in:
@@ -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,
|
||||
)
|
||||
}],
|
||||
})),
|
||||
}),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user