Skip to main content
Glama

Azure MCP Server

Official
MIT License
1,161
  • Linux
  • Apple
ResourceParser.cs954 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace AzureMcp.BicepSchema.Services.Support; public static class ResourceParser { public static (string Provider, string ResourceName, string? ApiVersion) ParseResourceType(string resourceTypeNameWithOrWithoutVersion) { int slashIndex = resourceTypeNameWithOrWithoutVersion.IndexOf('/'); if (slashIndex < 0) { throw new ArgumentException($"Invalid resource type name format \"{resourceTypeNameWithOrWithoutVersion}\""); } string provider = resourceTypeNameWithOrWithoutVersion.Substring(0, slashIndex); string rest = resourceTypeNameWithOrWithoutVersion.Substring(slashIndex + 1); int atIndex = rest.IndexOf('@'); if (atIndex < 0) { return (provider, rest, null); } return (provider, rest.Substring(0, atIndex), rest.Substring(atIndex + 1)); } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Azure/azure-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server