Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
system.git_info.genai.mts681 B
system({ title: "Git repository information", parameters: { cwd: { type: "string", description: "Current working directory", }, }, }) export default async function (ctx: ChatGenerationContext) { const { env, $ } = ctx const { vars } = env const cwd = vars["system.git_info.cwd"] const client = cwd ? git.client(cwd) : git const branch = await client.branch() const defaultBranch = await client.defaultBranch() $`## Git` if (branch) $`The current branch is ${branch}.` if (defaultBranch) $`The default branch is ${defaultBranch}.` if (cwd) $`The git repository is located at ${cwd}.` }

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