mcp-server-example

mcp-server-example

1

This project implements a basic MCP server using .NET, offering integration with Azure and GitLab services for efficient resource management and project handling. Key features include tools to interact with MCP clients and the ability to add Azure budgets to GitLab projects.

MCP Server Example

This project demonstrates a basic implementation of a Model Context Protocol (MCP) server using .NET. It provides tools for interacting with MCP clients and integrates with external services like GitLab through user secrets for configuration.

Tools

AzureTool

  • Retrieve Azure subscriptions and resource groups.
  • List virtual machines with specific tags.
  • Access resource properties in resource groups.

WhoIsTool

  • Provides domain registration information.

GitLabTools

  • Manage GitLab groups, projects, and variables.
  • Add Azure consumption budgets to projects.

How to Run and Debug

The application uses dotnet build and dotnet run commands. The MCP Inspector tool aids in testing and debugging MCP servers. Specific setup involves user secrets for GitLab PAT and domain settings.