Skip to main content
Glama
shimizu

ModelsLab Text2Image MCP Server

by shimizu
index.js866 B
// index.js // ツール統合・エクスポート import { helloToolSchema, hello } from './hello.js'; import { testConnectionToolSchema, testConnection } from './test_connection.js'; import { modelsLabText2ImgToolSchema, modelsLabText2Img } from './modelslab_text2img.js'; // すべてのツールスキーマをエクスポート export const toolSchemas = [ helloToolSchema, testConnectionToolSchema, modelsLabText2ImgToolSchema ]; // ツール実行関数のマッピング export const toolHandlers = { 'hello': hello, 'test_connection': testConnection, 'modelslab_text2img': modelsLabText2Img }; // ツール実行のディスパッチャー export async function executeTool(toolName, args) { const handler = toolHandlers[toolName]; if (!handler) { throw new Error(`Unknown tool: ${toolName}`); } return await handler(args); }

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/shimizu/modelslab-text2img-mcp-server'

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