Skip to main content
Glama

Source Map Parser MCP Server

client.test.ts641 B
import { Client } from '@modelcontextprotocol/sdk/client/index.js'; import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js'; import { afterAll, beforeAll, expect, test } from 'vitest'; let client: Client; beforeAll(async () => { const transport = new StdioClientTransport({ command: 'npx', args: ['tsx', 'src/main.ts'], }); client = new Client({ name: 'test-client', version: '1.0.0', }); await client.connect(transport); }); afterAll(async () => { await client.close(); }); test('list tools', async () => { const tools = await client.listTools(); expect(tools).toBeDefined(); });

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/MasonChow/source-map-parser-mcp'

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