Honeybadger
Read post

How to Build a Copilot Agent That Debugs Production Errors

GitHub Copilot custom agents can now connect to external tools via MCP (Model Context Protocol) servers. This guide demonstrates building a Rails debugging agent that automatically fetches production errors from Honeybadger, analyzes stack traces, investigates codebases, and creates pull requests with fixes and tests. The setup involves creating a Markdown agent profile with YAML configuration, connecting to an MCP server via Docker, and configuring repository secrets. The article covers both organization-wide and repository-specific agent configurations, testing strategies, and important security considerations around prompt injection attacks when agents have access to private data in public repositories.

    #ai#devops#github#rails
Jan 26•10m read time•From honeybadger.io
Post cover image
Table of contents
What is a Copilot custom agent?How to create a Copilot agent for Rails debuggingAbout honeybadger-mcp-serverConfiguring the agentSetting up the agent in your GitHub organizationTesting Copilot AI agentsConfiguring an agent in a single repositoryGitHub Copilot securityFixing errors with Copilot custom agents
175 Impressions
Honeybadger's image
Honeybadger

Honeybadger Blog offers insights, tutorials, and updates on error monitoring, exception tracking, an...

33 Followers

•

203 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard