[WIP] Refactor everything server to be more modular and use recommended APIs.
Adding get-structured-content tool
* Updated architecture.md
* added get-structured-content.ts
- Registers the 'get-structured-content' tool with the provided McpServer instance.
- The registered tool processes incoming arguments using a predefined input schema,
generates structured content with weather information including temperature,
conditions, and humidity, and returns both backward-compatible content blocks
and structured content in the response.
This commit is contained in:
parent
6cd26cf3df
commit
904d0ea71f
1 changed files with 112 additions and 19 deletions
|
|
@ -10,6 +10,7 @@ import { registerLongRunningOperationTool } from "./long-running-operation.js";
|
|||
import { registerSamplingRequestTool } from "./sampling-request.js";
|
||||
import { registerToggleLoggingTool } from "./toggle-logging.js";
|
||||
import { registerToggleSubscriberUpdatesTool } from "./toggle-subscriber-updates.js";
|
||||
import { registerGetStructuredContentTool } from "./get-structured-content.js";
|
||||
|
||||
/**
|
||||
* Register the tools with the MCP server.
|
||||
|
|
@ -22,6 +23,7 @@ export const registerTools = (server: McpServer) => {
|
|||
registerGetEnvTool(server);
|
||||
registerGetResourceLinksTool(server);
|
||||
registerGetResourceReferenceTool(server);
|
||||
registerGetStructuredContentTool(server);
|
||||
registerGetTinyImageTool(server);
|
||||
registerLongRunningOperationTool(server);
|
||||
registerSamplingRequestTool(server);
|
||||
|
|
|
|||
Loading…
Reference in a new issue