feat: call Rollstack's REST API instead of its MCP server
Summary
n8n's package scanner now rejects community nodes that speak MCP. Its rule @n8n/community-nodes/no-mcp-protocol-client says n8n already ships an MCP Client node, so a verified node has to call the vendor's REST API. The published 0.1.0 fails it with 6 errors, so it can't be verified. This moves the node to Rollstack's REST API, as 0.2.0.
- Same operations, new transport. Each operation now sends one request to the REST endpoint its tool calls. Rollstack names each tool after its endpoint's
operationId, and the tool's path, query and body inputs map onto the endpoint unchanged. The idempotency key becomes theIdempotency-Keyheader, and lists in the query repeat their parameter, as in?slideIds=a&slideIds=b. Fields, defaults and tool descriptions are unchanged. definitions/rest.jsonrecords each tool's method, path and API group, read from the OpenAPI document. It replacesgroups.json.npm run update-definitions -- --rest-onlyrefreshes it without a key.- 118 operations under 21 resources. Left out, since only the MCP server has them:
showReportandshowTemplates, which open views in other clients, andsubmitFeedback, which removes the Feedback resource. - Answers: a 204 becomes
{ "success": true }, a top-level list becomes{ "items": [...] }, and slide images still come back as binary JPEG files. Errors keep Rollstack's message and code, a 429 says how long to wait, and gateway errors are retried with the same request.
Behavior change: emails and deletes
Over the MCP server, Rollstack asked the user to confirm calls that email people or delete reports. With an API key, the REST API runs them at once. The README's table of these operations now says so, and tells users to check recipients before activating a workflow. A confirmation-required answer is still returned as output rather than an error, in case Rollstack asks for one.
Test plan
-
npx @n8n/scan-community-package@latest .passes. Run the same way, it fails the old MCP version with the 6 errors above. -
npm run lintandnpm run generate:checkpass. -
npm test: 36 tests pass. New ones cover each operation's method, path and path parameters againstrest.json, the request each call sends, 204s and lists, 428, 429 and 401 answers, retries, and images. - Live, without a key:
GET /reports?limit=5andGET /reports/r1/content?slideIds=a&slideIds=breach Rollstack and come back as "Rollstack did not accept the API key (missing-or-invalid-token)", HTTP 401. - In a local n8n with a real key: List reports, Create report, Send message to slides agent, Get slides agent message, and the AI Agent test workflow.
š¤ Generated with Claude Code
Summary by cubic
Replaces the Rollstack node's MCP transport with direct calls to Rollstack's REST API, so the package passes n8n's community node scanner, which now rejects nodes that speak MCP.
Each operation sends one request to the REST endpoint its MCP tool calls, with the same parameters, defaults, and descriptions. The idempotency key moves to the Idempotency-Key header, and lists repeat their query parameter (?slideIds=a&slideIds=b). Three MCP-only tools drop out (showReport, showTemplates, submitFeedback), leaving 118 operations under 21 resources. A 204 becomes { "success": true }, top-level lists become { "items": [...] }, and slide images come back as binary JPEG files; any other success without readable JSON is an error. The new definitions/rest.json records each operation's method, path, and API group, and can be refreshed without an API key via npm run update-definitions -- --rest-only. Version bumps to 0.2.0.
Behavior change
Operations that email people or delete reports no longer ask the user to confirm. Over the MCP server, Rollstack prompted for confirmation; with an API key, the REST API runs them immediately. The README now says so and lists the affected operations.