Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

feat: Add testing-patterns skill + document MCP tool inheritance

Jez7732f33b026e
diff --git a/skills/context-mate/.claude-plugin/plugin.json b/skills/context-mate/.claude-plugin/plugin.json
index 2b1a554c..14a5ae34 100644
--- a/skills/context-mate/.claude-plugin/plugin.json
+++ b/skills/context-mate/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "context-mate",
- "description": "Entry point to the Context Mate toolkit - skills, agents, and commands that work with Claude Codes natural flow. Project lifecycle (/explore-idea → /plan-project → /wrap-session), session handoff across context windows, developer agents for specialized tasks, and quality auditing. Use when: starting new projects, understanding the toolkit, needing workflow guidance. Its all about the context, maaate! # Work on Phase 1... # Continue working... # Implement...",
+ "description": "Entry point to the Context Mate toolkit - skills, agents, and slash commands that work with Claude Codes natural flow. Project lifecycle (/explore-idea → /plan-project → /wrap-session), session handoff across context windows, developer agents for specialized tasks, and quality auditing. Use when: starting new projects, understanding the toolkit, needing workflow guidance. Its all about the context, maaate!",
"version": "1.0.0",
"author": {
"name": "Jeremy Dawes",
diff --git a/skills/sub-agent-patterns/SKILL.md b/skills/sub-agent-patterns/SKILL.md
index 0fbbd59b..f2e23c02 100644
--- a/skills/sub-agent-patterns/SKILL.md
+++ b/skills/sub-agent-patterns/SKILL.md
@@ -10,7 +10,7 @@ user-invocable: true
# Sub-Agents in Claude Code
**Status**: Production Ready ✅
-**Last Updated**: 2026-01-14
+**Last Updated**: 2026-02-02
**Source**: https://code.claude.com/docs/en/sub-agents
Sub-agents are specialized AI assistants that Claude Code can delegate tasks to. Each sub-agent has its own context window, configurable tools, and custom system prompt.
@@ -169,12 +169,34 @@ Include specific instructions, best practices, and constraints.
|-------|----------|-------------|
| `name` | Yes | Unique identifier (lowercase, hyphens) |
| `description` | Yes | When Claude should use this agent |
-| `tools` | No | Comma-separated list. Omit = inherit all tools |
+| `tools` | No | Comma-separated list. **Omit entirely** = inherit ALL tools (including MCP) |
| `model` | No | `sonnet`, `opus`, `haiku`, or `inherit`. Default: sonnet |
| `permissionMode` | No | `default`, `acceptEdits`, `dontAsk`, `bypassPermissions`, `plan`, `ignore` |
| `skills` | No | Comma-separated skills to auto-load (sub-agents don't inherit parent skills) |
| `hooks` | No | `PreToolUse`, `PostToolUse`, `Stop` event handlers |
+### MCP Tool Inheritance (CRITICAL)
+
+**To access MCP tools from a sub-agent, you MUST omit the `tools` field entirely.**
+
+When you specify ANY tools in the `tools` field, it becomes an **allowlist**. There is no wildcard syntax.
+
+```yaml
+# ❌ WRONG - "*" is interpreted literally as a tool named "*", not a wildcard
+tools: Read, Grep, Glob, "*"
+
+# ❌ WRONG - this is an allowlist, agent cannot access MCP tools
+tools: Read, Grep, Glob
+
+# ✅ CORRECT - omit tools field entirely to inherit ALL tools including MCP
+# tools field omitted
+model: sonnet
+```
+
+**Key insight**: The `"*"` is NOT valid wildcard syntax. When parsed, it's treated as a literal tool name that doesn't exist.
+
+**Agent restart required**: Changes to agent config files only take effect after restarting Claude Code session.
+
### Available Tools Reference
Complete list of tools that can be assigned to sub-agents:
@@ -1085,4 +1107,4 @@ Resume agents:
---
-**Last Updated**: 2026-01-14
+**Last Updated**: 2026-02-02
diff --git a/skills/sub-agent-patterns/rules/sub-agent-patterns.md b/skills/sub-agent-patterns/rules/sub-agent-patterns.md
index 4070c67c..95ab8f04 100644
--- a/skills/sub-agent-patterns/rules/sub-agent-patterns.md
+++ b/skills/sub-agent-patterns/rules/sub-agent-patterns.md
@@ -28,6 +28,25 @@ Operational knowledge for effective sub-agent delegation in Claude Code.
---
+## MCP Tool Inheritance (CRITICAL)
+
+**To access MCP tools, OMIT the `tools` field entirely.**
+
+When you specify ANY tools, it becomes an **allowlist**. The `"*"` is NOT a wildcard - it's interpreted literally.
+
+```yaml
+# ❌ WRONG - "*" is literal, not wildcard. Agent gets NO MCP tools.
+tools: Read, Grep, Glob, "*"
+
+# ✅ CORRECT - omit tools field to inherit ALL tools including MCP
+# tools field omitted
+model: sonnet
+```
+
+**Config changes require session restart** - agent files are loaded at start.
+
+---
+
## Model Selection (Quality-First)
| Model | Best For |
@@ -123,4 +142,4 @@ Skills: [list of 5]
---
-**Last Updated**: 2026-01-14
+**Last Updated**: 2026-02-02
diff --git a/skills/testing-patterns/.claude-plugin/plugin.json b/skills/testing-patterns/.claude-plugin/plugin.json
new file mode 100644
index 00000000..715fc2a7
--- /dev/null
+++ b/skills/testing-patterns/.claude-plugin/plugin.json
@@ -0,0 +1,13 @@
+{
+ "name": "testing-patterns",
+ "description": "What these tests validate",
+ "version": "1.0.0",
+ "author": {
+ "name": "Jeremy Dawes",
+ "email": "[email protected]"
+ },
+ "license": "MIT",
+ "repository": "https://github.com/jezweb/claude-skills",
+ "keywords": [],
+ "agents": []
+}
diff --git a/skills/testing-patterns/README.md b/skills/testing-patterns/README.md
new file mode 100644
index 00000000..f5387a90
--- /dev/null
+++ b/skills/testing-patterns/README.md
@@ -0,0 +1,27 @@
+# testing-patterns
+
+Agent-based declarative testing with YAML test specs.
+
+## Keywords
+
+yaml tests, agent testing, integration tests, mcp test, test mcp, validate mcp, mcp regression, tool test, declarative tests, test specs, live testing, agent execution, test runner, regression tests, api testing, browser testing, e2e tests
+
+## When to Use
+
+- Testing MCP servers after changes
+- Running integration tests against live systems
+- Validating tool behavior
+- Creating regression test suites
+- Testing APIs without mocks
+
+## Quick Start
+
+1. Create YAML test spec in `tests/`
+2. Create or use a testing agent
+3. Run: "Test the [feature] functionality"
+4. Results saved to `tests/results/`
+
+## Related Skills
+
+- `typescript-mcp` - Building MCP servers to test
+- `cloudflare-mcp-server` - Cloudflare-hosted MCP servers
diff --git a/skills/testing-patterns/SKILL.md b/skills/testing-patterns/SKILL.md
new file mode 100644
index 00000000..007783a3
--- /dev/null
+++ b/skills/testing-patterns/SKILL.md
@@ -0,0 +1,303 @@
+---
+name: testing-patterns
+description: |
+ Agent-based declarative testing with YAML test specs. Tests run in sub-agents to preserve
+ main context while executing many tests. Supports MCP servers, APIs, and browser automation.
+
+ Use when: testing MCP servers, running integration tests, validating tool behavior after changes,
+ or creating regression test suites. Keywords: yaml tests, agent testing, mcp test, integration tests.
+license: MIT
+---
+
+# Testing Patterns
+
+A pragmatic approach to testing that emphasises:
+- **Live testing** over mocks
+- **Agent execution** to preserve context
+- **YAML specs** as documentation and tests
+- **Persistent results** committed to git
+
+## Philosophy
+
+This is **not traditional TDD**. Instead:
+
+1. **Test in production/staging** with good logging
+2. **Use agents** to run tests (keeps main context clean)
+3. **Define tests declaratively** in YAML (human-readable, version-controlled)
+4. **Focus on integration** (real servers, real data)
+
+### Why Agent-Based Testing?
+
+Running 50 tests in the main conversation would consume your entire context window. By delegating to a sub-agent:
+
+- Main context stays clean for development
+- Agent can run many tests without context pressure
+- Results come back as a summary
+- Failed tests get detailed investigation
+
+## YAML Test Spec Format
+
+```yaml
+name: Feature Tests
+description: What these tests validate
+
+# Optional: defaults applied to all tests
+defaults:
+ tool: my_tool_name
+ timeout: 5000
+
+tests:
+ - name: test_case_name
+ description: Human-readable purpose
+ tool: tool_name # Override default if needed
+ params:
+ action: search
+ query: "test input"
+ expect:
+ contains: "expected substring"
+ not_contains: "should not appear"
+ status: success
+```
+
+### Validation Rules
+
+| Rule | Description | Example |
+|------|-------------|---------|
+| `contains` | Response contains string | `contains: "from:john"` |
+| `not_contains` | Response doesn't contain | `not_contains: "error"` |
+| `matches` | Regex pattern match | `matches: "after:\\d{4}"` |
+| `json_path` | Check value at JSON path | `json_path: "$.results[0].name"` |
+| `equals` | Exact value match | `equals: "success"` |
+| `status` | Check success/error | `status: success` |
+| `count_gte` | Array length >= N | `count_gte: 1` |
+| `count_eq` | Array length == N | `count_eq: 5` |
+| `type` | Value type check | `type: array` |
+
+See `references/validation-rules.md` for complete documentation.
+
+## Creating a Testing Agent
+
+Testing agents inherit MCP tools from the session. Create an agent that:
+
+1. Reads YAML test specs
+2. Executes tool calls with params
+3. Validates responses against expectations
+4. Reports results
+
+### Agent Template
+
+**CRITICAL**: Do NOT specify a `tools` field if you need MCP access. When you specify ANY tools, it becomes an allowlist and `"*"` is interpreted literally (not as a wildcard). Omit `tools` entirely to inherit ALL tools from the parent session.
+
+```yaml
+---
+name: my-tester
+description: |
+ Tests [domain] functionality. Reads YAML test specs and validates responses.
+ Use when: testing after changes, running regression tests.
+# tools field OMITTED - inherits ALL tools from parent (including MCP)
+model: sonnet
+---
+
+# [Domain] Tester
+
+## How It Works
+
+1. Find test specs: `tests/*.yaml`
+2. Parse and execute each test
+3. Validate responses
+4. Report pass/fail summary
+
+## Test Spec Location
+
+tests/
+├── feature-a.yaml
+├── feature-b.yaml
+└── results/
+ └── YYYY-MM-DD-HHMMSS.md
+
+## Execution
+
+For each test:
+1. Call tool with params
+2. Capture response
+3. Apply validation rules
+4. Record PASS/FAIL
+
+## Reporting
+
+Save results to `tests/results/YYYY-MM-DD-HHMMSS.md`
+```
+
+See `templates/test-agent.md` for complete template.
+
+## Results Format
+
+Test results are saved as markdown for git history:
+
+```markdown
+# Test Results: feature-name
+**Date**: 2026-02-02 14:30
+**Commit**: abc1234
+**Summary**: 8/9 passed (89%)
+
+## Results
+
+- test_basic_search - PASSED (0.3s)
+- test_with_filter - PASSED (0.4s)
+- test_edge_case - FAILED
+
+## Failed Test Details
+
+### test_edge_case
+- **Expected**: Contains "expected value"
+- **Actual**: Response was empty
+- **Params**: `{ action: search, query: "" }`
+```
+
+Save to: `tests/results/YYYY-MM-DD-HHMMSS.md`
+
+## Workflow
+
+### 1. Create Test Specs
+
+```yaml
+# tests/search.yaml
+name: Search Tests
+defaults:
+ tool: my_search_tool
+
+tests:
+ - name: basic_search
+ params: { query: "hello" }
+ expect: { status: success, count_gte: 0 }
+
+ - name: filtered_search
+ params: { query: "hello", filter: "recent" }
+ expect: { contains: "results" }
+```
+
+### 2. Create Testing Agent
+
+Copy `templates/test-agent.md` and customise for your domain.
+
+### 3. Run Tests
+
+```
+"Run the search tests"
+"Test the API after my changes"
+"Run regression tests for gmail-mcp"
+```
+
+### 4. Review Results
+
+Results saved to `tests/results/`. Commit them for history:
+
+```bash
+git add tests/results/
+git commit -m "Test results: 8/9 passed"
+```
+
+## MCP Testing
+
+For MCP servers, the testing agent inherits configured MCPs:
+
+```bash
+# Configure MCP first
+claude mcp add --transport http gmail https://gmail.mcp.example.com/mcp
+
+# Then test
+"Run tests for gmail MCP"
+```
+
+Example MCP test spec:
+
+```yaml
+name: Gmail Search Tests
+defaults:
+ tool: gmail_messages
+
+tests:
+ - name: search_from_person
+ params: { action: search, searchQuery: "from John" }
+ expect: { contains: "from:john" }
+
+ - name: search_with_date
+ params: { action: search, searchQuery: "emails from January 2026" }
+ expect: { matches: "after:2026" }
+```
+
+## API Testing
+
+For REST APIs, use Bash tool:
+
+```yaml
+name: API Tests
+defaults:
+ timeout: 5000
+
+tests:
+ - name: health_check
+ command: curl -s https://api.example.com/health
+ expect: { contains: "ok" }
+
+ - name: get_user
+ command: curl -s https://api.example.com/users/1
+ expect:
+ json_path: "$.name"
+ type: string
+```
+
+## Browser Testing
+
+For browser automation, use Playwright tools:
+
+```yaml
+name: UI Tests
+
+tests:
+ - name: login_page_loads
+ steps:
+ - navigate: https://app.example.com/login
+ - snapshot: true
+ expect: { contains: "Sign In" }
+
+ - name: form_submission
+ steps:
+ - navigate: https://app.example.com/form
+ - type: { ref: "#email", text: "[email protected]" }
+ - click: { ref: "button[type=submit]" }
+ expect: { contains: "Success" }
+```
+
+## Tips
+
+1. **Start with smoke tests**: Basic connectivity and auth
+2. **Test edge cases**: Empty results, errors, special characters
+3. **Use descriptive names**: `search_with_date_filter` not `test1`
+4. **Group related tests**: One file per feature area
+5. **Add after bugs**: Every fixed bug gets a regression test
+6. **Commit results**: Create history of test runs
+
+## What This Is NOT
+
+- Not a Jest/Vitest replacement (use those for unit tests)
+- Not enforcing TDD (use what works for you)
+- Not a test runner library (the agent IS the runner)
+- Not about mocking (we test real systems)
+
+## When to Use
+
+| Scenario | Use This | Use Traditional Testing |
+|----------|----------|------------------------|
+| MCP server validation | Yes | No |
+| API integration | Yes | Complement with unit tests |
+| Browser workflows | Yes | Complement with component tests |
+| Unit testing | No | Yes (Jest/Vitest) |
+| Component testing | No | Yes (Testing Library) |
+| Type checking | No | Yes (TypeScript) |
+
+## Related Resources
+
+- `templates/test-spec.yaml` - Generic test spec template
+- `templates/test-agent.md` - Testing agent template
+- `references/validation-rules.md` - Complete validation rule reference
diff --git a/skills/testing-patterns/references/validation-rules.md b/skills/testing-patterns/references/validation-rules.md
new file mode 100644
index 00000000..5d5b2a9c
--- /dev/null
+++ b/skills/testing-patterns/references/validation-rules.md
@@ -0,0 +1,222 @@
+# Validation Rules Reference
+
+Complete reference for all validation rules available in YAML test specs.
+
+## String Matching
+
+### `contains`
+
+Check if response contains a substring.
+
+```yaml
+expect:
+ contains: "expected text"
+```
+
+**Case sensitive**: Yes
+**Use for**: Verifying key content is present
+
+### `not_contains`
+
+Check that response does NOT contain a substring.
+
+```yaml
+expect:
+ not_contains: "error"
+ not_contains: "failed"
+```
+
+**Use for**: Ensuring errors or unwanted content absent
+
+### `matches`
+
+Match against a regular expression pattern.
+
+```yaml
+expect:
+ matches: "\\d{4}-\\d{2}-\\d{2}" # Date format YYYY-MM-DD
+ matches: "after:\\d{4}" # Year in query
+```
+
+**Note**: Escape backslashes in YAML (`\\d` not `\d`)
+**Use for**: Pattern validation, date formats, IDs
+
+### `equals`
+
+Exact value match (string or primitive).
+
+```yaml
+expect:
+ equals: "success"
+ equals: 42
+ equals: true
+```
+
+**Use for**: Status codes, boolean flags, exact values
+
+## Status Checking
+
+### `status`
+
+Check if operation succeeded or failed.
+
+```yaml
+expect:
+ status: success # Operation completed without error
+ status: error # Operation returned an error
+```
+
+**Values**: `success`, `error`
+**Use for**: Basic operation validation
+
+## JSON Structure
+
+### `json_path`
+
+Extract and validate a value at a JSON path.
+
+```yaml
+expect:
+ json_path: "$.results[0].name"
+ contains: "expected"
+```
+
+**Syntax**: JSONPath expressions
+**Common patterns**:
+- `$.field` - Top-level field
+- `$.nested.field` - Nested field
+- `$.array[0]` - First array element
+- `$.array[*]` - All array elements
+- `$.array[?(@.active)]` - Filtered elements
+
+**Use for**: Validating specific fields in JSON responses
+
+### `type`
+
+Check the JavaScript type of a value.
+
+```yaml
+expect:
+ type: array
+ type: object
+ type: string
+ type: number
+ type: boolean
+```
+
+**Values**: `array`, `object`, `string`, `number`, `boolean`, `null`
+**Use for**: Response structure validation
+
+## Array Validation
+
+### `count_gte`
+
+Check array has at least N elements.
+
+```yaml
+expect:
+ count_gte: 1 # At least 1 result
+ count_gte: 10 # At least 10 results
+```
+
+**Use for**: Ensuring results returned, minimum counts
+
+### `count_eq`
+
+Check array has exactly N elements.
+
+```yaml
+expect:
+ count_eq: 5 # Exactly 5 results
+ count_eq: 0 # Empty array
+```
+
+**Use for**: Pagination tests, exact counts
+
+## Combining Rules
+
+Multiple rules can be combined in a single expect block:
+
+```yaml
+expect:
+ status: success
+ type: array
+ count_gte: 1
+ not_contains: "error"
+```
+
+All rules must pass for the test to pass.
+
+## Examples by Use Case
+
+### API Response Validation
+
+```yaml
+- name: get_user_by_id
+ params: { action: get, id: "123" }
+ expect:
+ status: success
+ json_path: "$.user.id"
+ equals: "123"
+```
+
+### Search Results
+
+```yaml
+- name: search_returns_results
+ params: { action: search, query: "test" }
+ expect:
+ status: success
+ type: array
+ count_gte: 1
+```
+
+### Error Handling
+
+```yaml
+- name: invalid_id_returns_error
+ params: { action: get, id: "invalid" }
+ expect:
+ status: error
+ contains: "not found"
+```
+
+### Date Format
+
+```yaml
+- name: dates_formatted_correctly
+ params: { action: list }
+ expect:
+ json_path: "$.items[0].created_at"
+ matches: "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}"
+```
+
+### Empty State
+
+```yaml
+- name: empty_search_returns_empty_array
+ params: { action: search, query: "xyznonexistent" }
+ expect:
+ status: success
+ type: array
+ count_eq: 0
+```
+
+## Rule Evaluation Order
+
+1. `status` - Checked first (fail fast on errors)
+2. `type` - Structural validation
+3. `json_path` - Extract value if specified
+4. `count_gte` / `count_eq` - Array length
+5. `contains` / `not_contains` / `matches` / `equals` - Content validation
+
+## Custom Rules
+
+For complex validation, agents can implement custom rules:
+
+```yaml
+expect:
+ custom: "validate_email_format"
+```
+
+The testing agent interprets custom rules based on implementation.
diff --git a/skills/testing-patterns/templates/test-agent.md b/skills/testing-patterns/templates/test-agent.md
new file mode 100644
index 00000000..79d7da59
--- /dev/null
+++ b/skills/testing-patterns/templates/test-agent.md
@@ -0,0 +1,132 @@
+---
+name: my-tester
+description: |
+ Tests [DOMAIN] functionality. Reads YAML test specs and validates responses.
+
+ MUST BE USED when: testing after changes, running regression tests, validating [domain] tools.
+ Use PROACTIVELY after deploying changes.
+
+ Keywords: [domain] test, test [domain], validate, regression
+# tools field OMITTED - inherits ALL tools from parent session (including MCP)
+model: sonnet
+---
+
+# [DOMAIN] Tester Agent
+
+## CRITICAL: You HAVE Tool Access
+
+**DO NOT assume you can't call tools. You CAN and MUST call them directly.**
+
+When testing [domain], call `mcp__[server]__[tool]` directly. The tools are available - USE THEM.
+
+**WRONG**: "I cannot execute tools from this context"
+**RIGHT**: Actually call `mcp__[server]__[tool](action: "search", query: "test")`
+
+If a tool call fails, report the error. But ALWAYS TRY FIRST.
+
+---
+
+A testing agent for [DOMAIN]. Executes tool calls and validates responses.
+
+## Quick Start
+
+```
+"Run the [domain] tests"
+"Test [feature] after my changes"
+"Validate [tool] functionality"
+```
+
+## How It Works
+
+1. **Find test specs**: Look for `tests/*.yaml`
+2. **Parse tests**: Read YAML, extract test cases
+3. **Execute tests**: Call tools with specified params
+4. **Validate responses**: Check against expected patterns
+5. **Report results**: Summary with pass/fail and details
+
+## Test Spec Location
+
+```
+tests/
+├── feature-a.yaml
+├── feature-b.yaml
+└── results/
+ └── YYYY-MM-DD-HHMMSS.md
+```
+
+## Execution Workflow
+
+For each test case:
+1. Parse the test spec
+2. Call the tool with params
+3. Capture the response
+4. Apply validation rules
+5. Record PASS/FAIL
+
+## Validation Rules
+
+| Rule | Description | Example |
+|------|-------------|---------|
+| `contains` | Response contains string | `contains: "expected"` |
+| `not_contains` | Response doesn't contain | `not_contains: "error"` |
+| `matches` | Regex pattern match | `matches: "\\d{4}"` |
+| `json_path` | Check value at JSON path | `json_path: "$.name"` |
+| `equals` | Exact value match | `equals: "success"` |
+| `status` | Check success/error | `status: success` |
+| `count_gte` | Array length >= N | `count_gte: 1` |
+| `count_eq` | Array length == N | `count_eq: 5` |
+| `type` | Value type check | `type: array` |
+
+## Reporting
+
+After running tests, save results:
+
+```
+tests/results/YYYY-MM-DD-HHMMSS.md
+```
+
+Format:
+```markdown
+# Test Results: [domain]
+**Date**: YYYY-MM-DD HH:MM
+**Summary**: X/Y passed (Z%)
+
+## Results
+✅ test_name - PASSED (0.3s)
+❌ test_name - FAILED
+
+## Failed Test Details
+### test_name
+- **Expected**: Contains "value"
+- **Actual**: Response was empty
+```
+
+## Running Specific Tests
+
+```
+"Run only the search tests"
+"Test the filter functionality"
+"Run the error handling tests"
+```
+
+I will filter to matching test cases and report focused results.
+
+## Debugging Failed Tests
+
+When a test fails:
+1. Show the actual response
+2. Compare to expected value
+3. Suggest likely causes
+4. Check logs if available
+
+## Tips
+
+1. **Start with smoke tests**: Basic connectivity
+2. **Test edge cases**: Empty, errors, special chars
+3. **Descriptive names**: `search_with_date` not `test1`
+4. **Group related tests**: One file per feature
+5. **Add after bugs**: Every bug gets a regression test
+
+---
+
+**Last Updated:** YYYY-MM-DD
diff --git a/skills/testing-patterns/templates/test-spec.yaml b/skills/testing-patterns/templates/test-spec.yaml
new file mode 100644
index 00000000..b9e5eab1
--- /dev/null
+++ b/skills/testing-patterns/templates/test-spec.yaml
@@ -0,0 +1,69 @@
+# Test Spec Template
+# Copy this file and customise for your testing needs
+
+name: Feature Tests
+description: What these tests validate
+
+# Optional: defaults applied to all tests in this file
+defaults:
+ tool: my_tool_name # Default tool to call
+ timeout: 5000 # Timeout in milliseconds
+
+tests:
+ # Basic test case
+ - name: basic_functionality
+ description: Verify basic operation works
+ params:
+ action: search
+ query: "test input"
+ expect:
+ status: success
+ count_gte: 0
+
+ # Test with validation rules
+ - name: search_with_filter
+ description: Search with date filter applied
+ params:
+ action: search
+ query: "recent items"
+ filter: "last_week"
+ expect:
+ contains: "results"
+ not_contains: "error"
+
+ # Test with JSON path validation
+ - name: response_structure
+ description: Verify response has expected structure
+ params:
+ action: get
+ id: "123"
+ expect:
+ json_path: "$.data.name"
+ type: string
+
+ # Override default tool for specific test
+ - name: different_tool_test
+ tool: other_tool_name
+ params:
+ action: list
+ expect:
+ type: array
+ count_gte: 1
+
+ # Test for expected errors
+ - name: invalid_input_error
+ description: Verify proper error on invalid input
+ params:
+ action: search
+ query: ""
+ expect:
+ status: error
+ contains: "invalid"
+
+ # Regex pattern matching
+ - name: date_format_validation
+ params:
+ action: search
+ query: "items from January"
+ expect:
+ matches: "\\d{4}-\\d{2}-\\d{2}"