Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/plugin-mcp/src/mcp/getMcpHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ export const getMCPHandler = (
server.registerTool(
tool.name,
{
annotations: tool.annotations,
description: tool.description,
inputSchema: tool.parameters,
},
Expand Down
10 changes: 10 additions & 0 deletions packages/plugin-mcp/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,16 @@ export type PluginMCPServerConfig = {
* Add custom MCP Tools.
*/
tools?: {
/**
* Set the annotations of the tool. This is used by MCP clients to determine the behavior of the tool.
*/
annotations?: {
destructiveHint?: boolean
idempotentHint?: boolean
openWorldHint?: boolean
readOnlyHint?: boolean
title?: string
}
/**
* Set the description of the tool. This is used by MCP clients to determine when to use the tool.
*/
Expand Down
Loading