Skip to main content
Glama
test-input.ts757 B
import { launchInputPrompt, normalizeSpec, InputSpec } from "../src/create"; type InputKind = "text" | "image" | "pixelart"; type CliConfig = { kind: InputKind; }; function parseArgs(): CliConfig { const arg = (process.argv[2] ?? "text").toLowerCase(); if (arg === "text" || arg === "image" || arg === "pixelart") { return { kind: arg }; } console.error(`Unsupported kind: ${process.argv[2]}. Use one of text | image | pixelart.`); process.exit(1); } async function main(): Promise<void> { const { kind } = parseArgs(); const spec = normalizeSpec(kind); const result = await launchInputPrompt({ spec }); console.log(JSON.stringify(result, null, 2)); } main().catch((error) => { console.error(error); process.exit(1); });

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/swairshah/InputMCP'

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