Skip to main content
Glama
RhombusSystems

Rhombus MCP Server

Official
getResources.ts812 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { fileURLToPath } from "node:url"; import path from "path"; import { getFilePathsInDirectory } from "../util.js"; async function getResources() { const currentDir = path.dirname(fileURLToPath(import.meta.url)); const filePaths = getFilePathsInDirectory(currentDir); const resources: { name: string; create: (server: McpServer) => void; }[] = []; for (const filePath of filePaths) { const imported = (await import(filePath)) as { createResource: ((server: McpServer) => void) | undefined; }; if (imported.createResource !== undefined) { resources.push({ name: filePath, create: imported.createResource, }); } } return resources; } export default getResources;

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/RhombusSystems/rhombus-node-mcp'

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