Skip to content

bug: mcpClient.CallTool call succefully only once? #326

Open
@zsq2010

Description

@zsq2010

func RunToolRequest(ctx context.Context, mcpClient *client.Client, toolRequest mcp.CallToolRequest) (toolResult mcp.CallToolResult, err error) {
result, err := mcpClient.CallTool(ctx, toolRequest)
if err != nil {
log.Fatalf("Failed to call tool: %v", err)
return mcp.CallToolResult{}, err
}
toolResult = *result
return toolResult, nil
}

why this execute only one time on the "CMD Type" MCP_Service?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions