Skip to main content
Glama
by frahman5
test-server-factory.tsโ€ข945 B
/** * Test Server Factory - Creates real MCP server instances for integration testing * * This factory creates actual MCP server instances with all tools registered, * enabling true integration testing through the MCP protocol. */ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js' import { BitsoApiClient } from '../../src/client.js' import { registerBitsoTools } from '../../src/tools/bitso-tools.js' import { createTestConfig } from './test-config.js' export function createTestServer(): { server: McpServer, client: BitsoApiClient } { // Create test configuration and client const config = createTestConfig() const client = new BitsoApiClient(config) // Create MCP server const server = new McpServer({ name: "bitso-mcp-server-test", version: "1.0.0-test", }) // Register all tool categories (same as production server) registerBitsoTools(server, client) return { server, client } }

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/frahman5/bitso-mcp'

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