Skip to content

MCP action tools: await_request, save_as_test, copy_as_curl, clear_requests#59

Merged
doganarif merged 1 commit into
mainfrom
feat/mcp-actions
Jul 2, 2026
Merged

MCP action tools: await_request, save_as_test, copy_as_curl, clear_requests#59
doganarif merged 1 commit into
mainfrom
feat/mcp-actions

Conversation

@doganarif

Copy link
Copy Markdown
Owner

Completes the agent workflow around #58:

  • await_request blocks (default 30s, max 120s) until a request matching method/path/status filters is captured, then returns it in full. An agent can trigger a flow itself — curl, a test, a browser tool — and catch exactly what happened. Uses the store's notification hub when available with a 200ms polling fallback.
  • save_as_test renders a captured request as a runnable Go httptest regression test asserting the captured status.
  • copy_as_curl renders a capture as a shell-quoted curl command.
  • clear_requests empties the store for a clean repro.

Wrap now skips re-wrapping stores that already notify, so the pattern of sharing one store.WithNotify(...) between Wrap and the MCP handler gives await_request push latency instead of polling.

@doganarif doganarif merged commit 959a19b into main Jul 2, 2026
1 check passed
@doganarif doganarif deleted the feat/mcp-actions branch July 2, 2026 12:14
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.

1 participant