Skip to content

Commit 2401729

Browse files
author
CodeBuddy Attribution Bot
committed
fix(attribution): MCP queryFunctions output 结构嵌套导致 AI 解析出错 (issue_moisa1j5_a1ora6)
1 parent e2ca73f commit 2401729

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

mcp/src/tools/functions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,10 @@ export function registerFunctionTools(server: ExtendedMcpServer) {
539539
return buildEnvelope(
540540
{
541541
action: input.action,
542-
functions: result.Functions || [],
542+
functions: (result.Functions || []).map((fn) => ({
543+
name: fn.FunctionName,
544+
...fn,
545+
})),
543546
totalCount: result.TotalCount || 0,
544547
requestId: result.RequestId,
545548
raw: result,

0 commit comments

Comments
 (0)