lucide-icons-mcp
Version:
This project, lucide-react-mcp, is a Model Context Protocol (MCP) server built with Bun and the MCP TypeScript SDK. It exposes Lucide React icons as resources and tools, enabling LLMs and agentic applications to search for and utilize icons. Key features
22 lines (21 loc) • 821 B
JavaScript
/**
* Entry point for the MCP server using stdio transport.
*
* This implementation creates an MCP server instance and connects it to a
* standard input/output (stdio) transport, allowing communication over
* process stdio streams.
*
* If the server fails to start or encounters an error during initialization,
* the process will exit with a non-zero status code.
*/
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { createMcpServer } from "./utils.js";
/**
* Initializes and starts the MCP server with StdioTransport.
* This function is exported to be callable from other modules (e.g., cli.ts).
*/
export async function runStdioServer() {
const server = createMcpServer();
const transport = new StdioServerTransport();
await server.connect(transport);
}