Skip to main content

MCPPackage

Properties​

NameTypeDescriptionNotes
RegistryTypeStringPackage registry that hosts the package.[optional]
IdentifierStringPackage identifier within the registry.[optional]
CommandStringCommand used to launch the package.[optional]
VarArgs[]StringArguments passed to the launch command, in the order they are applied.[optional]

Examples​

  • Prepare the resource
$MCPPackage = Initialize-MCPPackage -RegistryType npm `
-Identifier @modelcontextprotocol/server-github `
-Command npx `
-VarArgs ["-y","@modelcontextprotocol/server-github"]
  • Convert the resource to JSON
$MCPPackage | ConvertTo-JSON

[Back to top]