Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,47 @@ The Azure SDK for Java repository contains client libraries for Azure services,
### Prerequisites

- To use Azure MCP tool calls, users must have PowerShell installed. Provide [PowerShell installation instructions](https://learn.microsoft.com/powershell/scripting/install/installing-powershell) if not installed, and recommend restarting the IDE to start the MCP server.
- See the next section for how to set up the Azure SDK MCP server in your IDE for advanced Copilot features.
- Always run the [`azsdk_verify_setup`](../eng/common/instructions/azsdk-tools/verify-setup.instructions.md) tool to check the user's development environment setup for using SDK MCP tools. DO NOT PROCEED with running other tools before completing this step. Only skip for queries that don't need tools.

## Azure SDK MCP Server: Quick Start

The Azure SDK MCP server enables advanced Copilot-powered automation, validation, and Azure-specific guidance in your IDE.

| IDE | Config File Location | What to Do |
|----------|------------------------------------|---------------------------|
| IntelliJ | `github-copilot/intellij/mcp.json` | Add the JSON config below |

### Configuration Example

#### IntelliJ (`github-copilot/intellij/mcp.json`)
```json
{
"servers": {
"azure-sdk-mcp": {
"type": "stdio",
"command": "pwsh",
"args": [
"<Path to azure-sdk-for-java repo>/eng/common/mcp/azure-sdk-mcp.ps1",
"-Run"
]
}
}
}
```

- Make sure PowerShell is installed and available in your system PATH.
- Replace `<Path to azure-sdk-for-java repo>` with the absolute path to your local clone of the Azure SDK for Java repository.

### Troubleshooting

- If IntelliJ does not detect the MCP server, double-check the path and file name.
- Start the server manually with:
```powershell
eng/common/mcp/azure-sdk-mcp.ps1 -Run
```
- For more help, see [eng/common/mcp/README.md](../eng/common/mcp/README.md) or open an issue.

## Behavior

- Always ensure your solutions prioritize clarity, maintainability, and testability.
Expand Down