We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 695e292 commit bedd41cCopy full SHA for bedd41c
1 file changed
src/mcp/tools/index.ts
@@ -16,7 +16,7 @@ interface ToolDefinition {
16
readonly description: string;
17
readonly inputSchema: ZodRawShape;
18
readonly handler: (args: Record<string, unknown>) => Promise<{
19
- content: readonly { type: string; text: string }[];
+ content: { type: "text"; text: string }[];
20
isError?: boolean;
21
}>;
22
}
@@ -82,7 +82,10 @@ function filterFields(
82
const filtered: Record<string, string> = {};
83
for (const key of Object.keys(row)) {
84
if (fieldSet.has(key)) {
85
- filtered[key] = row[key];
+ const value = row[key];
86
+ if (value !== undefined) {
87
+ filtered[key] = value;
88
+ }
89
90
91
return filtered;
0 commit comments