Skip to main content
Glama

Starwind UI MCP Server

by starwind-ui
server.ts1.2 kB
#!/usr/bin/env node import { Server } from "@modelcontextprotocol/sdk/server/index.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import config from "./config/settings.js"; import { setupTools, tools } from "./tools/index.js"; /** * Initialize the MCP server with basic capabilities */ // Import tools for capabilities registration // Dynamically build capabilities object from tools map const toolCapabilities: Record<string, any> = {}; Array.from(tools.entries()).forEach(([name, tool]) => { toolCapabilities[name] = { inputSchema: (tool as any).inputSchema, }; }); const server = new Server( { name: config.server.name, version: config.server.version, }, { capabilities: { resources: {}, tools: toolCapabilities, }, }, ); // Setup tool handlers setupTools(server); // Create and connect the transport const transport = new StdioServerTransport(); server .connect(transport) .then(() => { console.error(`Starwind UI MCP Server running (using stdio transport)`); }) .catch(console.error); // Handle cleanup process.on("SIGINT", async () => { await server.close(); process.exit(0); });

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/starwind-ui/starwind-ui-mcp'

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