You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Angie exposes a set of annotation constants and interfaces that MCP tool authors can use to attach Angie-specific metadata to their tools. These are exported directly from `@elementor/angie-sdk`.
3
+
Angie exposes a set of annotation constants and interfaces that MCP tool authors can use to attach metadata to their tools. These are exported directly from `@elementor/angie-sdk`.
4
4
5
-
## Available Annotations
5
+
## Annotations vs `_meta`
6
+
7
+
The MCP protocol distinguishes between two types of tool metadata:
8
+
9
+
| Location | Purpose | Interface |
10
+
|---|---|---|
11
+
|`annotations`|**Standard MCP annotations** — recognized by the MCP protocol |`AngieToolAnnotations`|
'Updates all elements on the page in one operation',
116
-
{ /* input schema */ },
117
154
{
118
-
[ANGIE_EXTENDED_TIMEOUT]: {
119
-
timeoutMs: 60000// 60 seconds
120
-
}
121
-
} asToolAnnotations,
155
+
description: 'Updates all elements on the page in one operation',
156
+
inputSchema: { /* ... */ },
157
+
_meta: {
158
+
[ANGIE_EXTENDED_TIMEOUT]: {
159
+
timeoutMs: 60000// 60 seconds
160
+
}
161
+
} asAngieToolMeta,
162
+
},
122
163
async (args) => { /* handler */ }
123
164
);
124
165
```
125
166
126
167
---
127
168
128
-
## `MCP_READONLY`
169
+
## `readOnlyHint` (Standard MCP Annotation)
129
170
130
171
Mark a tool as read-only. Angie uses this hint to understand that the tool does not mutate any state, which can affect planning and user confirmation flows.
@@ -103,11 +117,15 @@ function createSeoMcpServer() {
103
117
text: JSON.stringify(response,null,2),
104
118
}],
105
119
};
106
-
});
120
+
}
121
+
);
107
122
108
-
server.tool('run-fireworks',
109
-
'Creates a celebratory fireworks display effect on the current screen. Use this when you want to add visual excitement or celebrate a successful action. The tool will create a full-screen canvas overlay with animated fireworks that automatically stop after 5 seconds.',
110
-
{},
123
+
server.registerTool(
124
+
'run-fireworks',
125
+
{
126
+
description: 'Creates a celebratory fireworks display effect on the current screen. Use this when you want to add visual excitement or celebrate a successful action. The tool will create a full-screen canvas overlay with animated fireworks that automatically stop after 5 seconds.',
127
+
inputSchema: {},
128
+
},
111
129
async()=>{
112
130
try{
113
131
// Create canvas element if it doesn't exist
@@ -161,7 +179,8 @@ function createSeoMcpServer() {
0 commit comments