Compare commits

...

3 Commits

Author SHA1 Message Date
Romuald Członkowski
fa766eff3c Merge pull request #680 from czlonkowski/fix/community-node-resource-grouping 2026-03-30 20:56:48 +02:00
czlonkowski
b890bd9601 fix: restore community nodes with resource-grouped operations (v2.42.1)
- Restore 584 community nodes from n8n 2.13.3 DB snapshot
- Re-extract operations from properties_schema with resource grouping
  (366 community nodes now have named resources, up from 10)
- Fix community-node-service.ts extractOperations() to extract resource
  from displayOptions.show.resource
- Bump version to 2.42.1

Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 18:18:19 +02:00
czlonkowski
7f7150b2f3 fix: add resource grouping to community node operations and restore 584 community nodes
Community nodes copied from a pre-fix DB had flat operations without resource
grouping. Fixed by:

1. Updating community-node-service.ts extractOperations() to extract resource
   from displayOptions.show.resource (same fix as property-extractor.ts)
2. Re-extracting operations from properties_schema for all 1,396 nodes
3. Restoring 584 community nodes from the n8n 2.13.3 DB snapshot
4. Rebuilding FTS5 index

Result: 366 community nodes now have resource-grouped operations (up from 10).
64 community nodes remain flat (they have no resource/operation pattern).

Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 17:46:22 +02:00
4 changed files with 20 additions and 3 deletions

View File

@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [2.42.1] - 2026-03-30
### Fixed
- **Community nodes missing from database after rebuild**: Restored 584 community nodes from the n8n 2.13.3 snapshot and re-extracted operations with resource grouping from `properties_schema`. 366 community nodes now have proper resource-grouped operations.
- **Community node service missing resource extraction**: `extractOperations()` in `community-node-service.ts` was not extracting `resource` from `displayOptions.show.resource`, same issue that was fixed in `property-extractor.ts` in v2.42.0.
Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en
## [2.42.0] - 2026-03-30
### Added

Binary file not shown.

View File

@@ -1,6 +1,6 @@
{
"name": "n8n-mcp",
"version": "2.42.0",
"version": "2.42.1",
"description": "Integration between n8n workflow automation and Model Context Protocol (MCP)",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -343,10 +343,17 @@ export class CommunityNodeService {
const operations: any[] = [];
// Check properties for resource/operation pattern
// Nodes can have multiple operation properties, each mapped to a resource via displayOptions
if (nodeDesc.properties) {
for (const prop of nodeDesc.properties) {
if (prop.name === 'operation' && prop.options) {
operations.push(...prop.options);
if ((prop.name === 'operation' || prop.name === 'action') && prop.options) {
const resource = prop.displayOptions?.show?.resource?.[0];
for (const op of prop.options) {
operations.push({
...op,
...(resource ? { resource } : {})
});
}
}
}
}