Skip to main content
Glama
test-bun-compat.ts834 B
// Quick test to verify MCP SDK works with Bun import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; console.log('✅ MCP SDK imports working with Bun'); console.log('✅ Server class:', typeof Server); console.log('✅ Transport class:', typeof StdioServerTransport); // Test our other imports import { config } from 'dotenv'; import axios from 'axios'; config(); console.log('✅ Dotenv working'); console.log('✅ Axios working'); // Test async/await async function testAsync() { const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); await delay(100); console.log('✅ Async/await working'); } testAsync().then(() => { console.log('\n🎉 All systems go! Bun is ready for MCP development.'); });

Latest Blog Posts

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/vespo92/MindbodyMCP'

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