[AI-6713] Migrate to registerTool() API and add _meta types#26
Merged
netanelavr merged 4 commits intomasterfrom Mar 9, 2026
Merged
[AI-6713] Migrate to registerTool() API and add _meta types#26netanelavr merged 4 commits intomasterfrom
netanelavr merged 4 commits intomasterfrom
Conversation
Align SDK with elementor-ai changes from PR #2666 and #2667: - Add AngieToolMeta interface for custom Angie metadata (_meta field) - Add AngieToolAnnotations interface for standard MCP annotations - Migrate demo server from deprecated .tool() to registerTool() API - Add tests for new type interfaces This is a non-breaking change - existing integrations continue to work. Made-with: Cursor
OrTab
approved these changes
Mar 9, 2026
matipojo
reviewed
Mar 9, 2026
OrTab
previously approved these changes
Mar 9, 2026
matipojo
reviewed
Mar 9, 2026
Member
matipojo
left a comment
There was a problem hiding this comment.
Please update this doc and other relevant docs
https://github.com/elementor/angie-sdk/blob/master/docs/tool-annotations.md
- Restore comments in fireworks demo code - Update tool-annotations.md documentation: - Explain annotations vs _meta separation - Update all examples to use registerTool() API - Add migration guide from server.tool() to registerTool() Made-with: Cursor
OrTab
previously approved these changes
Mar 9, 2026
Made-with: Cursor
OrTab
approved these changes
Mar 9, 2026
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.
What Changed
1. New Type Interfaces (
angie-annotations.ts)AngieToolMeta- Interface for custom Angie metadata that should be placed in the_metafield:angie/requiredResourcesangie/modelPreferencesangie/extendedTimeoutAngieToolAnnotations- Interface for standard MCP annotations that stay inannotations:titledestructiveHintreadOnlyHint2. Demo Server Migration (
demo-mcp-server.ts)Migrated all 4 tools from deprecated
server.tool()to newserver.registerTool()API:Before:
After:
3. Tests
Added type validation tests for the new interfaces.
Backward Compatibility
This is a non-breaking change. Existing 3rd party integrations will continue to work:
.tool()API still functions (just not recommended)Type of Change
Made with Cursor
✨ PR Description
Purpose: Migrate MCP server tool registration from deprecated tool() method to registerTool() API and separate standard annotations from custom Angie metadata using _meta field.
Main changes:
Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how