Add Copilot agent configurations, path-specific instructions, and MCP server setup#133
Merged
Merged
Conversation
… server setup Co-authored-by: PhantomDave <34485699+PhantomDave@users.noreply.github.com>
… pin MCP versions Co-authored-by: PhantomDave <34485699+PhantomDave@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add configuration for copilot and AI agent
Add Copilot agent configurations, path-specific instructions, and MCP server setup
Dec 1, 2025
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive GitHub Copilot configuration for the BankTracker monorepo, including path-specific instructions for backend/frontend/GraphQL development, custom AI agents for specialized tasks, and MCP (Model Context Protocol) server integration for enhanced development workflows.
Key Changes
- Configures path-scoped instruction files (
.github/instructions/) for backend C#/HotChocolate, frontend Angular/Apollo, GraphQL schema, and code review guidelines - Adds three specialized Copilot agents (
.github/agents/) for backend, frontend, and documentation tasks with defined tools and responsibilities - Sets up MCP servers for Context7 library documentation, GitHub integration, and filesystem access with VS Code integration
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
.vscode/settings.json |
Enables MCP support, Copilot thinking process, and instruction file usage |
.vscode/mcp.json |
Configures Context7, GitHub, and filesystem MCP servers with Docker/npx runners |
.github/instructions/backend.instructions.md |
Path-specific C# backend patterns for HotChocolate, EF Core, and validation |
.github/instructions/frontend.instructions.md |
Angular 20 signals, Apollo, Material conventions for TypeScript/HTML/SCSS |
.github/instructions/graphql.instructions.md |
GraphQL operation workflow, codegen, error codes, and scalar mappings |
.github/instructions/review.instructions.md |
Code review checklist for backend, frontend, GraphQL, and security concerns |
.github/agents/backend.agent.md |
Backend-focused agent with .NET/EF Core expertise and build/migration commands |
.github/agents/frontend.agent.md |
Frontend-focused agent with Angular/Apollo expertise and npm workflow commands |
.github/agents/docs.agent.md |
Documentation-only agent with read/edit/search tools, no code modification |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configures GitHub Copilot with path-scoped instructions, custom agents, and MCP servers for improved AI-assisted development.
Path-Specific Instructions (
.github/instructions/)backend.instructions.md— C#/HotChocolate/EF Core patterns, error handling, validationfrontend.instructions.md— Angular 20 signals, Apollo, Material conventionsgraphql.instructions.md— Schema composition, codegen workflow, error codesreview.instructions.md— Code review focus areas for backend/frontend/securityCustom Agents (
.github/agents/)backend.agent.md— .NET expert with HotChocolate, EF Core, ASP.NET toolingfrontend.agent.md— Angular 20 expert with Apollo, Material, signalsdocs.agent.md— Documentation specialist scoped to non-code filesMCP Configuration (
.vscode/mcp.json){ "servers": { "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp@^1.0.31"] }, "github": { "command": "docker", "args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"] }, "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem@^2025.11.25", "${workspaceFolder}"] } } }VS Code Settings
Enables
chat.mcp.enabled,github.copilot.chat.agent.thinkingProcess, andgithub.copilot.chat.codeGeneration.useInstructionFiles.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.