Skip to main content
Glama
tools-simple.test.ts680 B
import { describe, it, expect } from 'vitest'; import { handleGenerateWorld, clearWorld } from '../../src/server/tools'; describe('Server Tools', () => { it('should generate a world', async () => { clearWorld(); const result = await handleGenerateWorld({ seed: 'test-seed', width: 20, height: 20 }, { sessionId: 'test-session' }); expect(result.content).toBeDefined(); expect(result.content[0].type).toBe('text'); const content = JSON.parse(result.content[0].text); expect(content.message).toBe('World generated successfully'); console.log('Tool test passed!'); }); });

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/Mnehmos/rpg-mcp'

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