Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
script-prompt.md874 B
```mermaid stateDiagram direction LR [*] --> context context: files (text, PDF, DOCX, ...) script : user script (.genai.mjs) prompt : prompt (system+user messages+tools) api: OpenAI API system: system script (system.*.genai.mjs) tools: tools (JS functions) context --> script note right of context : Users selects files in VSCode/CLI. script --> prompt system --> prompt prompt --> api api --> tools tools --> api api --> validation validation: Schema Validation, Data Repair validation --> api api --> response note left of system: micro text formats, tools, agents response: response (raw text/JSON) ``` - user runs script on files in VSCode/CLI/Web - script generates chat messages (user and system messages) - invocation of LLM (typically OpenAI REST API or compatible) + tools cycle

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