Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
prettier.mts494 B
const dbg = host.logger("genaiscript:prettier") export async function prettier( file: WorkspaceFile, options?: { curly?: boolean } ) { dbg(file.filename) const args = ["--write"] if (options?.curly) args.push("--plugin=prettier-plugin-curly") // format const res = await host.exec("prettier", [...args, file.filename]) if (res.exitCode) { dbg(`error: %d\n%s`, res.exitCode, res.stderr) throw new Error(`${res.stdout} (${res.exitCode})`) } }

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/microsoft/genaiscript'

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