Skip to content

Add integration tests for MCP CRUD tools (#DIS-163) - #596

Merged
selfcontained merged 2 commits into
mainfrom
agt_afd171f7000f/crud-tools-tests
May 22, 2026
Merged

Add integration tests for MCP CRUD tools (#DIS-163)#596
selfcontained merged 2 commits into
mainfrom
agt_afd171f7000f/crud-tools-tests

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Summary

  • Adds integration tests for the 11 MCP CRUD tools (6 job, 5 template) introduced in Expose job & template CRUD as MCP tools for agents (#DIS-163) #593
  • Tests tool gating: CRUD tools appear for regular agents and job agents, but NOT persona agents
  • Tests full CRUD lifecycle for both jobs and templates (create → list → get by name → get by ID → update → delete → verify gone)
  • Tests validation (missing params, nonexistent resources, cascade-protected deletes, directory defaulting)

Test plan

  • pnpm run check passes
  • pnpm run test passes (1287 tests, 97 files)
  • pnpm run test:e2e passes (155 tests)

🤖 Generated with Claude Code

selfcontainedand others added 2 commits May 21, 2026 22:27
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Covers the contract gap where CRUD tools were only exercised through the
agent-scoped route — now also tests create/get/delete via
/api/mcp/jobs/:runId/:agentId with proper job MCP tokens, plus a 403
rejection test for invalid tokens on that route.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@selfcontained
selfcontained merged commit 74b3332 into mainMay 22, 2026
1 check passed
@selfcontained
selfcontained deleted the agt_afd171f7000f/crud-tools-tests branch May 22, 2026 05:55
Sign up for freeto 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

@selfcontained