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
"You are a supervisor agent that delegates tasks to specialized agents. Use the `StoryWriterAgent` agent for creative writing tasks and the `TranslatorAgent` agent for translation tasks. Always choose the most appropriate agent for the given task.",
96
+
model: openai("gpt-4o-mini"),
97
+
subAgents: [storyWriter,translatorAgent],
98
+
});
99
+
80
100
constassistant=newAgent({
81
101
name: "AssistantAgent",
82
102
instructions:
@@ -171,7 +191,7 @@ const mcpServer = new MCPServer({
171
191
protocols: {
172
192
stdio: true,
173
193
http: true,
174
-
sse: false,
194
+
sse: true,
175
195
},
176
196
filterTools: ({ items })=>{
177
197
returnitems;
@@ -248,6 +268,9 @@ const mcpServer = new MCPServer({
Copy file name to clipboardExpand all lines: packages/mcp-server/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,10 @@ pnpm install
16
16
pnpm build --filter @voltagent/mcp-server
17
17
```
18
18
19
+
## Agent metadata
20
+
21
+
When an agent is exposed through MCP, its `purpose` field is used as the MCP tool description. Provide a concise, user-facing explanation in `purpose` so MCP clients display helpful copy. If `purpose` is empty, the adapter falls back to the agent instructions.
Copy file name to clipboardExpand all lines: website/docs/agents/mcp/mcp-server.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,8 @@ export const mcpServer = new MCPServer({
42
42
});
43
43
```
44
44
45
+
> 📘 **Tip:** When you expose agents through MCP, their `purpose` field becomes the tool description shown in clients. Keep it short and user-facing (fallback is the agent instructions if `purpose` is empty).
46
+
45
47
This minimal configuration:
46
48
47
49
- Names the server `voltagent-example` (used in URLs and IDE listings).
0 commit comments