Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
markdown.ts543 B
import * as vscode from "vscode" export function toMarkdownString(...lines: string[]) { const md = lines.filter((l) => l !== undefined && l !== null).join("\n") return md } export async function showMarkdownPreview(uri: vscode.Uri) { await vscode.commands.executeCommand("markdown.showPreview", uri) await vscode.commands.executeCommand("markdown.preview.refresh") } export function toFencedCodeBlock(code: string, language?: string) { if (!code) return undefined return `\`\`\`${language || ""}\n${code}\n\`\`\`` }

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