Skip to main content
Glama

MCP Frontend Testing Server

server.ts1.14 kB
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; // Import resources import { registerTemplateResources } from './resources/templates.js'; import { registerDocResources } from './resources/docs.js'; // Import tools import { registerAnalyzerTool } from './tools/analyzer.js'; import { registerGeneratorTool } from './tools/generator.js'; import { registerRunnerTool } from './tools/runner.js'; import { registerComponentTesterTool } from './tools/component-tester.js'; // Import prompts import { registerPrompts } from './prompts/index.js'; export function createServer(): McpServer { // Create MCP server const server = new McpServer({ name: 'Frontend Testing Server', version: '1.0.0', description: 'MCP server for testing JavaScript/TypeScript code and React components' }); // Register resources registerTemplateResources(server); registerDocResources(server); // Register tools registerAnalyzerTool(server); registerGeneratorTool(server); registerRunnerTool(server); registerComponentTesterTool(server); // Register prompts registerPrompts(server); return server; }

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/StudentOfJS/mcp-frontend-testing'

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