Skip to content

Commit 32a4831

Browse files
committed
use background context
1 parent b32fd14 commit 32a4831

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cmd/root.go

+1-7
Original file line numberDiff line numberDiff line change
@@ -349,17 +349,11 @@ func runPrompt(
349349

350350
var toolResultPtr *mcp.CallToolResult
351351
action := func() {
352-
ctx, cancel := context.WithTimeout(
353-
context.Background(),
354-
10*time.Second,
355-
)
356-
defer cancel()
357-
358352
req := mcp.CallToolRequest{}
359353
req.Params.Name = toolName
360354
req.Params.Arguments = toolArgs
361355
toolResultPtr, err = mcpClient.CallTool(
362-
ctx,
356+
context.Background(),
363357
req,
364358
)
365359
}

0 commit comments

Comments
 (0)