Skip to main content
Glama

generate_copilot_config

Generate GitHub Copilot configuration files to customize AI coding assistance for specific projects, languages, and frameworks.

Instructions

Generates a .github/copilot-instructions.md for GitHub Copilot.

Input Schema

NameRequiredDescriptionDefault
projectNameYes
languagesYes
frameworksNo

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "frameworks": { "items": { "type": "string" }, "type": "array" }, "languages": { "items": { "type": "string" }, "type": "array" }, "projectName": { "type": "string" } }, "required": [ "projectName", "languages" ], "type": "object" }

Implementation Reference

  • The handler function that implements the core logic of generating GitHub Copilot configuration file content based on project name, languages, and frameworks.
    export function generateCopilotConfigHandler(args: any) { const { projectName, languages, frameworks = [] } = args; const content = `# ${projectName} - GitHub Copilot Instructions\n\n## Tech Stack\n- Languages: ${languages.join(", ")}\n${frameworks.length ? `- Frameworks: ${frameworks.join(", ")}` : ""}\n\n## Guidelines\n- Follow ${languages[0]} idioms\n- Write clear, documented code\n- Include type hints where applicable\n- Write comprehensive tests\n`; return { content: [{ type: "text", text: content }] }; }
  • The Zod schema defining the tool's name, description, and input parameters (projectName, languages, optional frameworks).
    export const generateCopilotConfigSchema = { name: "generate_copilot_config", description: "Generates a .github/copilot-instructions.md for GitHub Copilot.", inputSchema: z.object({ projectName: z.string(), languages: z.array(z.string()), frameworks: z.array(z.string()).optional() }) };
  • src/server.ts:112-112 (registration)
    Registration of the tool in the HTTP server registry map, linking the schema and handler.
    ["generate_copilot_config", { schema: generateCopilotConfigSchema, handler: generateCopilotConfigHandler }],
  • src/index.ts:101-101 (registration)
    Registration of the tool in the stdio server registry map, linking the schema and handler.
    ["generate_copilot_config", { schema: generateCopilotConfigSchema, handler: generateCopilotConfigHandler }],
  • src/index.ts:30-30 (registration)
    Import statement bringing in the schema and handler from the aiconfigs module for use in registration.
    generateCopilotConfigSchema, generateCopilotConfigHandler

Latest Blog Posts

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/millsydotdev/Code-MCP'

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