Skip to main content
Glama

MCP TypeScript Template

by nickytonline
vite.config.ts1.22 kB
import { defineConfig } from "vite"; import { resolve } from "path"; export default defineConfig(({ command }) => ({ // Build configuration build: { lib: { entry: resolve(__dirname, "src/index.ts"), name: "MCPTypescriptTemplate", fileName: "index", formats: ["es"], }, rollupOptions: { external: [ "@modelcontextprotocol/sdk", "@modelcontextprotocol/sdk/server/mcp.js", "@modelcontextprotocol/sdk/server/streamableHttp.js", "@modelcontextprotocol/sdk/types.js", "express", "zod", "node:crypto", "node:http", "node:path", "node:fs", "node:url", "node:buffer", "node:stream", "node:events", "node:util", "crypto", "http", "path", "fs", "url", "buffer", "stream", "events", "util", ], output: { format: "es", }, }, target: "node22", outDir: "dist", emptyOutDir: true, ssr: true, }, resolve: { alias: { "@": resolve(__dirname, "src"), }, }, ssr: { external: ["@modelcontextprotocol/sdk", "express", "zod"], }, }));

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/nickytonline/mcp-typescript-template'

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