Skip to content

Add Copilot agent configurations, path-specific instructions, and MCP server setup#133

Merged
PhantomDave merged 6 commits into
mainfrom
copilot/configure-copilot-and-agent
Dec 1, 2025
Merged

Add Copilot agent configurations, path-specific instructions, and MCP server setup#133
PhantomDave merged 6 commits into
mainfrom
copilot/configure-copilot-and-agent

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 1, 2025

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, validation
  • frontend.instructions.md — Angular 20 signals, Apollo, Material conventions
  • graphql.instructions.md — Schema composition, codegen workflow, error codes
  • review.instructions.md — Code review focus areas for backend/frontend/security

Custom Agents (.github/agents/)

  • backend.agent.md — .NET expert with HotChocolate, EF Core, ASP.NET tooling
  • frontend.agent.md — Angular 20 expert with Apollo, Material, signals
  • docs.agent.md — Documentation specialist scoped to non-code files

MCP 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, and github.copilot.chat.codeGeneration.useInstructionFiles.

Original prompt

Can you properly create and configure the copilot, agent and review instruction for AI? Also, the MCPs

Add things like Context7 and relevant things


💡 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.

Copilot AI and others added 2 commits December 1, 2025 09:41
… 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
Copilot AI requested a review from PhantomDave December 1, 2025 09:46
@PhantomDave PhantomDave marked this pull request as ready for review December 1, 2025 09:48
Copilot AI review requested due to automatic review settings December 1, 2025 09:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread .github/instructions/frontend.instructions.md
Comment thread .github/instructions/frontend.instructions.md Outdated
Comment thread .github/instructions/backend.instructions.md Outdated
Comment thread .github/instructions/review.instructions.md
Comment thread .github/agents/frontend.agent.md
Comment thread .github/agents/frontend.agent.md Outdated
PhantomDave and others added 3 commits December 1, 2025 11:14
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>
@PhantomDave PhantomDave merged commit c6df0ca into main Dec 1, 2025
2 checks passed
@PhantomDave PhantomDave deleted the copilot/configure-copilot-and-agent branch December 1, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants