mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 00:03:23 +02:00
* Updated architecture.md * Refactor / renamed all addXPrompt, addXTool, and addXResource functions to registerX... * Added the add tool
13 lines
386 B
TypeScript
13 lines
386 B
TypeScript
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
import { registerDynamicResources } from "./dynamic.js";
|
|
import { registerStaticResources } from "./static.js";
|
|
|
|
/**
|
|
* Register the resources with the MCP server.
|
|
* @param server
|
|
*/
|
|
export const registerResources = (server: McpServer) => {
|
|
registerDynamicResources(server);
|
|
registerStaticResources(server);
|
|
};
|