Skip to content

Port Python README to .NET with C# code examples and .NET-specific adaptations#6

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-5
Draft

Port Python README to .NET with C# code examples and .NET-specific adaptations#6
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-5

Conversation

Copilot AI commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

This PR creates a comprehensive .NET adaptation of the Python README for the foundry-agent-service-remote-mcp repository. The new README-dotnet.md file can be used as the foundation for the .NET repository mentioned in the issue.

Key Changes Made

Language-Specific Adaptations

  • Title and Description: Changed from "Python" to ".NET" throughout
  • Prerequisites: Updated from Python 3.11+ to .NET SDK 8.0+, added C# VS Code extension
  • Configuration: Converted from .env files to appsettings.json with proper JSON structure
  • Package Management: Changed from pip install to dotnet restore commands
  • Cross-platform Support: Added both Windows (copy) and Linux/macOS (cp) commands

Code Examples

  • C# Azure Functions: Created accurate C# code examples using MCPToolTrigger attributes
  • Program.cs: Added proper Azure Functions host setup
  • FunctionApp.cs: Converted Python MCP functions to equivalent C# implementations with proper blob bindings
  • Namespace: Used appropriate MCPServer namespace structure

Repository References

  • Links: Updated cross-references to point to appropriate .NET and TypeScript repositories
  • GitHub Codespaces: Updated badge to point to the .NET repository
  • Documentation Links: Updated Azure Functions documentation to use C# pivot

File Structure

  • Paths: Updated from src/mcp_server to src/MCPServer following .NET conventions
  • Agent Path: Updated to src/agent for consistency
  • Extensions: References changed from .py to .cs files

The resulting README maintains the same structure and flow as the original while being fully adapted for .NET developers. It includes accurate C# code examples that demonstrate the MCP server implementation using Azure Functions with the experimental MCP extension bundle.

Fixes #5.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/Azure-Samples/foundry-agent-service-remote-mcp-dotnet/contents/
    • Triggering command: curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits July 4, 2025 22:16
…cific changes

Co-authored-by: paulyuk <1968137+paulyuk@users.noreply.github.com>
…commands

Co-authored-by: paulyuk <1968137+paulyuk@users.noreply.github.com>
Copilot AI changed the title [WIP] Port this readme to another repo Port Python README to .NET with C# code examples and .NET-specific adaptations Jul 4, 2025
Copilot AI requested a review from paulyuk July 4, 2025 22:19
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.

Port this readme to another repo

2 participants