Skip to main content
Glama

Chrome MCP Server

server.test.ts661 B
import { describe, expect, test, afterAll, beforeAll } from '@jest/globals'; import supertest from 'supertest'; import Server from './index'; describe('服务器测试', () => { // 启动服务器测试实例 beforeAll(async () => { await Server.getInstance().ready(); }); // 关闭服务器 afterAll(async () => { await Server.stop(); }); test('GET /ping 应返回正确响应', async () => { const response = await supertest(Server.getInstance().server) .get('/ping') .expect(200) .expect('Content-Type', /json/); expect(response.body).toEqual({ status: 'ok', message: 'pong', }); }); });

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/marie6789040106650/mcp-chrome-bk'

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