Tags API Validation Testing Guide
Description
**Story:** 2.3 - Validate & Test Tags API **Status:** In Progress **Test Suite:** `test-tags-validation.js`
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for salacoste/mcp-n8n-workflow-builder, shared by 8 entries
in this directory. It describes the repository, not this entry specifically.
Tags API Validation Testing Guide
**Story:** 2.3 - Validate & Test Tags API **Status:** In Progress **Test Suite:** `test-tags-validation.js`
Overview
Comprehensive validation testing for all 5 Tags API methods implemented in the n8n Workflow Builder MCP Server:
get_tags- List all tags with cursor-based paginationget_tag- Retrieve specific tag by IDcreate_tag- Create new tagsupdate_tag- Update tag namesdelete_tag- Remove tags
Prerequisites
1. Running n8n Instance
You need access to a live n8n instance (v1.82.3 or later) with:
- Valid API key
- Permissions to create, update, and delete tags
2. Environment Configuration
Same as previous test suites - use either `.config.json` or `.env` file.
3. Built Project
npm run build
Running the Tests
Basic Test Execution
# 1. Build the project
npm run build
# 2. Start the MCP server (if not already running)
npm start &
# 3. Wait for server to start
sleep 3
# 4. Run tags validation tests
node test-tags-validation.js
Test Categories
1. get_tags Tests (4 tests)
Tests tag listing and pagination:
- List all tags
- Response structure validation
- Pagination limit
- Cursor-based pagination
2. create_tag Tests (3 tests)
Tests tag creation:
- Create tag with unique name
- Response structure validation
- Duplicate name handling (409 error expected)
3. get_tag Tests (3 tests)
Tests individual tag retrieval:
- Retrieve tag by ID
- Structure validation
- 404 error for non-existent ID
4. update_tag Tests (2 tests)
Tests tag name updates:
- Update tag name
- 404 error for non-existent ID
5. delete_tag Tests (2 tests)
Tests tag deletion:
- Delete and verify removal
- 404 error for non-existent ID
Expected Response Structures
Tag Object
{
"id": "string",
"name": "string",
"createdAt": "ISO 8601 date",
"updatedAt": "ISO 8601 date"
}
List Response
{
"data": [
{
"id": "string",
"name": "string",
"createdAt": "ISO 8601 date",
"updatedAt": "ISO 8601 date"
}
],
"nextCursor": "string or null"
}
Key Testing Points
Tag Name Uniqueness
Tags must have unique names within an n8n instance. Attempting to create a duplicate will result in a 409 Conflict error.
Cursor-Based Pagination
Similar to executions API:
- Uses opaque cursor strings
nextCursorfield indicates more results available- Efficient for large tag lists
Error Handling
Tests validate proper error responses:
- 404 Not Found for non-existent tag IDs
- 409 Conflict for duplicate tag names
- Proper error message format
Test Data Cleanup
The test suite automatically cleans up all created tags after completion (unless `runCleanup: false`).
**Cleanup behavior:**
- All tags created during tests are deleted
- Uses unique prefix
TagTest_for identification - Automatic retry logic for failed deletions
Troubleshooting
Issue: "Duplic
Related Skills
Spec Kit
💫 Toolkit to help you get started with Spec-Driven Development
Testing Webapp Testing
Test local web applications using Playwright for UI verification and debugging
Testing #29
, [#52](https://github.com/affaan-m/everything-claude-code/issues/52), [#103](https://github.com/affaan-m/ever
Testing Fix Issue
by metabase - Addresses GitHub issues by taking issue number as parameter, analyzing context, implementing sol
Testing Pypict Test Design
Design comprehensive test cases using PICT (Pairwise Independent Combinatorial Testing) for optimized test sui
Testing gstack
| 15,000+ | Garry Tan's exact Claude Code setup: 6 opinionated tools that serve as CEO, Eng Manager, Release M
Testing