mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 05:23:08 +00:00
feat: add optional fields parameter to search_templates tool
- Added fields parameter to filter response fields in search_templates - Reduces response size by 70-98% when using selective fields - Maintains backward compatibility with optional parameter - Supports all template fields: id, name, description, author, nodes, views, created, url, metadata - Updated tool documentation with examples 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -683,7 +683,7 @@ describe('TemplateService', () => {
|
||||
|
||||
const result = await service.searchTemplates('test');
|
||||
|
||||
expect(result.items[0].author.verified).toBe(false);
|
||||
expect(result.items[0]?.author?.verified).toBe(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user