Skip to main content

MCPServer

Properties​

NameTypeDescriptionNotes
IdStringMCP server ID.[optional]
ServerNameStringMCP server name.[optional]
SanctionedStatusSanctionedStatusSanctioned status of the MCP server. MCP servers are currently always UNKNOWN.[optional]
DescriptionStringMCP server description.[optional]
VersionStringMCP server version.[optional]
Remotes[]StringRemote endpoints the MCP server can be reached at.[optional]
Packages[]MCPPackagePackages the MCP server can be installed or launched from.[optional]
ConnectedAgentCountInt64Number of AI agents connected to the MCP server.[optional]
CreatedSystem.DateTimeDate and time the MCP server was created.[optional]
ModifiedSystem.DateTimeDate and time the MCP server was last modified.[optional]

Examples​

  • Prepare the resource
$MCPServer = Initialize-MCPServer -Id 2ee5e239-e68c-4d69-93fb-6c7ce4576190 `
-ServerName io.github.github/github-mcp-server `
-SanctionedStatus null `
-Description Connects AI agents to GitHub repositories, issues, and pull requests. `
-Version 1.0.0 `
-Remotes ["https://api.githubcopilot.com/mcp/"] `
-Packages null `
-ConnectedAgentCount 3 `
-Created 2026-03-01T12:00Z `
-Modified 2026-03-15T08:30Z
  • Convert the resource to JSON
$MCPServer | ConvertTo-JSON

[Back to top]