Add Open AI completions create tool#54
Merged
g2vinay merged 36 commits intomicrosoft:mainfrom Sep 30, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new OpenAI completions create tool to the Azure MCP server, enabling text generation through Azure OpenAI services. This introduces a complete new AI area with services, commands, and comprehensive testing infrastructure.
- Registers a new AI namespace with OpenAI completion capabilities
- Implements command structure for Azure OpenAI text generation with configurable parameters
- Adds comprehensive unit and live testing infrastructure with Azure resource provisioning
Reviewed Changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| servers/Azure.Mcp.Server/src/Program.cs | Registers the new AI area setup in the main server |
| servers/Azure.Mcp.Server/src/Azure.Mcp.Server.csproj | Adds project reference to the new AI area |
| areas/ai/tests/test-resources.json | ARM template for provisioning Azure OpenAI test resources |
| areas/ai/tests/test-resources.bicep | Bicep template for Azure OpenAI service and deployment setup |
| areas/ai/tests/test-resources-post.ps1 | Post-deployment verification script |
| areas/ai/tests/AzureMcp.Ai.UnitTests/Commands/OpenAi/OpenAiCompletionsCreateCommandTests.cs | Comprehensive unit tests for the completion command |
| areas/ai/tests/AzureMcp.Ai.UnitTests/AzureMcp.Ai.UnitTests.csproj | Unit test project configuration |
| areas/ai/tests/AzureMcp.Ai.LiveTests/AzureMcp.Ai.LiveTests.csproj | Live test project configuration |
| areas/ai/tests/AzureMcp.Ai.LiveTests/AiCommandTests.cs | Live integration tests against real Azure OpenAI resources |
| areas/ai/src/AzureMcp.Ai/Services/IAiService.cs | Interface defining completion creation functionality |
| areas/ai/src/AzureMcp.Ai/Services/AiService.cs | Implementation of Azure OpenAI completion service |
| areas/ai/src/AzureMcp.Ai/Options/OpenAi/OpenAiCompletionsCreateOptions.cs | Command options for completion parameters |
| areas/ai/src/AzureMcp.Ai/Options/BaseAiOptions.cs | Base options class for AI commands |
| areas/ai/src/AzureMcp.Ai/Options/AiOptionDefinitions.cs | Command-line option definitions for AI operations |
| areas/ai/src/AzureMcp.Ai/Models/CompletionResult.cs | Result models for completion responses |
| areas/ai/src/AzureMcp.Ai/GlobalUsings.cs | Global using statements for the AI area |
| areas/ai/src/AzureMcp.Ai/Commands/OpenAi/OpenAiCompletionsCreateCommand.cs | Main command implementation for creating completions |
| areas/ai/src/AzureMcp.Ai/Commands/BaseAiCommand.cs | Base command class for AI operations |
| areas/ai/src/AzureMcp.Ai/Commands/AiJsonContext.cs | JSON serialization context for AOT compatibility |
| areas/ai/src/AzureMcp.Ai/AzureMcp.Ai.csproj | Main AI area project file with dependencies |
| areas/ai/src/AzureMcp.Ai/AssemblyInfo.cs | Assembly metadata for trimming support |
| areas/ai/src/AzureMcp.Ai/AiSetup.cs | Area setup class for dependency injection and command registration |
| Directory.Packages.props | Adds Azure.AI.OpenAI package version |
| AzureMcp.sln | Adds new AI area projects to the solution |
08fda2a to
6c1e60c
Compare
Member
|
Please update docs. |
g2vinay
commented
Aug 29, 2025
xiangyan99
reviewed
Aug 29, 2025
jongio
reviewed
Sep 9, 2025
Member
|
Adding Do Not Merge to make it obvious this PR is not ready for review |
jongio
reviewed
Sep 11, 2025
xiangyan99
reviewed
Sep 29, 2025
xiangyan99
reviewed
Sep 29, 2025
xiangyan99
approved these changes
Sep 29, 2025
colbytimm
pushed a commit
to colbytimm/microsoft-mcp
that referenced
this pull request
Dec 8, 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.
Adds azmcp foundry openai create-completion command for generating text completions using Azure OpenAI models deployed in Azure AI Foundry.
Command: azmcp foundry openai create-completion
Key Parameters
--resource-name, --resource-group, --deployment, --prompt-text (required)
--temperature, --max-tokens, --auth-method (optional)