Skip to main content
Glama

DALL-E 3 MCP Server

by chrisurf
index.test.tsβ€’1.48 kB
describe('DallE3MCPServer', () => { describe('Basic functionality', () => { test('should pass basic test', () => { expect(true).toBe(true); }); test('should have proper environment setup', () => { expect(process.env).toBeDefined(); }); }); describe('Configuration validation', () => { test('should handle missing API key scenario', () => { const originalKey = process.env.OPENAI_API_KEY; delete process.env.OPENAI_API_KEY; // This would test error handling for missing API key expect(process.env.OPENAI_API_KEY).toBeUndefined(); // Restore original key if it existed if (originalKey) { process.env.OPENAI_API_KEY = originalKey; } }); }); describe('Parameter validation', () => { test('should validate image size options', () => { const validSizes = ['1024x1024', '1024x1792', '1792x1024']; expect(validSizes).toContain('1024x1024'); expect(validSizes).toContain('1024x1792'); expect(validSizes).toContain('1792x1024'); }); test('should validate quality options', () => { const validQualities = ['standard', 'hd']; expect(validQualities).toContain('standard'); expect(validQualities).toContain('hd'); }); test('should validate style options', () => { const validStyles = ['vivid', 'natural']; expect(validStyles).toContain('vivid'); expect(validStyles).toContain('natural'); }); }); });

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/chrisurf/imagegen-mcp-d3'

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