Fix weird type recursion in MCP plugin

This commit is contained in:
Gregory Schier
2026-01-04 15:46:05 -08:00
parent 4f7e67b106
commit 4b54c22012
5 changed files with 438 additions and 544 deletions

View File

@@ -9,12 +9,12 @@ export function registerFolderTools(server: McpServer, ctx: McpServerContext) {
{
title: 'List Folders',
description: 'List all folders in a workspace',
inputSchema: z.object({
inputSchema: {
workspaceId: z
.string()
.optional()
.describe('Workspace ID (required if multiple workspaces are open)'),
}),
},
},
async ({ workspaceId }) => {
const workspaceCtx = await getWorkspaceContext(ctx, workspaceId);