Fix n8n compatibility in Plumber API schema#3
Merged
armish merged 1 commit intoNov 6, 2025
Conversation
This commit addresses JSON schema format incompatibilities with n8n's built-in MCP node. The changes ensure proper data streaming and validation when using plumber2mcp with n8n workflow automation. Changes: 1. Convert 'required' field from character() to list() in inputSchema - n8n expects 'required' to be a JSON array, not a character vector - Empty required fields now serialize as [] instead of [] 2. Comment out outputSchema from tool definitions - n8n's structured data validation fails when outputSchema is present - The schema was causing validation errors for text responses - Tools still function correctly without outputSchema defined 3. Update all test expectations to match new schema format - test-enhanced_schemas.R: Update required field type checks - test-security_validation.R: Remove outputSchema expectations - test-edge_cases.R: Already compatible with list-based required - test-pr_mcp.R: Already compatible with list-based required Impact: - Existing functionality preserved - Better n8n integration out of the box - No breaking changes to API endpoints or MCP protocol - Tests updated to reflect new schema format Fixes compatibility with n8n MCP node HTTP streaming transport.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit addresses JSON schema format incompatibilities with n8n's built-in MCP node. The changes ensure proper data streaming and validation when using plumber2mcp with n8n workflow automation.
Changes:
Convert 'required' field from character() to list() in inputSchema
Comment out outputSchema from tool definitions
Update all test expectations to match new schema format
Impact:
Fixes compatibility with n8n MCP node HTTP streaming transport.