Skip to content

Bound repeated managed MCP tool calls#193

Merged
mostlydev merged 1 commit into
masterfrom
issue-191-managed-mcp-budget
Apr 28, 2026
Merged

Bound repeated managed MCP tool calls#193
mostlydev merged 1 commit into
masterfrom
issue-191-managed-mcp-budget

Conversation

@mostlydev
Copy link
Copy Markdown
Owner

Summary

  • update cllama to skip repeated identical managed tool calls within one mediated turn
  • return structured duplicate_tool_call results, record duplicate tool_trace metadata, and surface duplicate metadata through claw audit
  • distinguish late stdio MCP responses after cancellation/timeout from truly unknown response IDs
  • document the duplicate-call behavior in the managed tools guide and embedded skill text

Tests

  • go test ./cmd/claw-mcp-stdio ./internal/audit
  • go test ./internal/proxy ./internal/sessionhistory (cllama)
  • go test ./...
  • go test ./... (cllama)
  • go vet ./...
  • go vet ./... (cllama)
  • go test -tags integration ./...
  • go test -tags spike -run ^TestSpikeMCPStdio$ ./cmd/claw/...

Closes #191

Note: this intentionally does not cut a release.

@mostlydev mostlydev merged commit 1234e87 into master Apr 28, 2026
1 check passed
@mostlydev mostlydev deleted the issue-191-managed-mcp-budget branch April 28, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Managed MCP calls can repeatedly exhaust turn budget and keep Discord typing until retry succeeds

1 participant