Skip to main content
Glama
IBM
by IBM
index.ts1.11 kB
/** * @fileoverview Centralized registration for all available MCP resources. * This module imports all resource registration functions and exports a single * function to register them all with the MCP server, simplifying server setup. * @module src/mcp-server/resources/index */ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { requestContextService } from "@/utils/index.js"; import { logOperationStart, logOperationSuccess, } from "@/utils/internal/logging-helpers.js"; import { registerToolsetsResource } from "@/ibmi-mcp-server/resources/toolsetsResource/index.js"; /** Registers all available resources with the MCP server. */ export const registerAllResources = async ( server: McpServer, ): Promise<void> => { const context = requestContextService.createRequestContext({ operation: "registerAllResources", }); logOperationStart(context, "Starting registration of all resources..."); await Promise.all([registerToolsetsResource(server)]); logOperationSuccess( context, "All resources have been registered successfully.", ); };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IBM/ibmi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server