Closed
Conversation
Co-authored-by: jmagar <[email protected]>
Copilot
AI
changed the title
[WIP] ✨ Set up Copilot instructions
✨ Set up Copilot instructions
Sep 26, 2025
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 instructions for the docker-mcp repository following GitHub's best practices for Copilot coding agent.
What This PR Does
Creates
.github/copilot-instructions.mdwith repository-specific guidance to help Copilot understand and work with this codebase's unique patterns and standards.Key Features
Architecture Patterns: Documents the Consolidated Action-Parameter Pattern used throughout this repository instead of simple
@mcp.tool()decorators. This pattern is critical for Docker infrastructure management operations that require orchestration and state management.Modern Python Standards: Enforces Python 3.11+ syntax including union types (
str | None), type aliases, and modern async exception handling patterns that are used consistently across the codebase.Security Guidelines: Includes Docker command validation, SSH security requirements, and migration safety patterns that are essential for this infrastructure management tool.
Testing & Development: Documents the FastMCP in-memory testing patterns, pytest markers, and uv-based development workflow specific to this project.
Implementation Approach
The instructions were extracted and consolidated from existing documentation (
CLAUDE.md,AGENTS.md,pyproject.toml) to maintain consistency while providing Copilot with actionable guidance. This ensures minimal changes while leveraging the extensive documentation already present in the repository.The file structure mirrors the repository's modular architecture, explaining the service → tool → model layering and hybrid connection model (Docker contexts vs. SSH) that makes this codebase unique.
Fixes #[issue_number]
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
astral.shcurl -LsSf REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.