Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
commands.ts520 B
import * as vscode from "vscode" import { TOOL_NAME } from "../../core/src/constants" import { errorMessage } from "../../core/src/error" export function registerCommand( id: string, command: (...args: any[]) => Thenable<void> ) { return vscode.commands.registerCommand(id, async function (...args: any[]) { try { await command(...args) } catch (e) { console.debug(e) vscode.window.showErrorMessage(TOOL_NAME + " - " + errorMessage(e)) } }) }

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