mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-23 14:25:15 +02:00
Updated doc in get-annotated-message.ts
This commit is contained in:
@@ -24,16 +24,16 @@ const config = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers the 'annotated-message' tool with the provided McpServer instance.
|
* Registers the 'get-annotated-message' tool with the provided McpServer instance.
|
||||||
*
|
*
|
||||||
* The registered tool generates and sends messages with specific types, such as error,
|
* The registered tool generates and sends messages with specific types, such as error,
|
||||||
* success, or debug, carrying associated annotations like priority level and intended
|
* success, or debug, carrying associated annotations like priority level and intended
|
||||||
* audience.
|
* audience.
|
||||||
*
|
*
|
||||||
* Optionally, it can include an annotated image in the response.
|
* The response will have annotations and optionally contain an annotated image.
|
||||||
*
|
*
|
||||||
* @function
|
* @function
|
||||||
* @param {McpServer} server - The MCP server instance where the Annotated Message Tool is to be registered.
|
* @param {McpServer} server - The MCP server instance where the tool is to be registered.
|
||||||
*/
|
*/
|
||||||
export const registerGetAnnotatedMessageTool = (server: McpServer) => {
|
export const registerGetAnnotatedMessageTool = (server: McpServer) => {
|
||||||
server.registerTool(name, config, async (args): Promise<CallToolResult> => {
|
server.registerTool(name, config, async (args): Promise<CallToolResult> => {
|
||||||
|
|||||||
Reference in New Issue
Block a user