package-add
Install a package from the Unity Package Manager registry, Git URL, or local path. This operation modifies the project's manifest.json and triggers package resolution. Note: Package installation may trigger a domain reload. The result will be sent after the reload completes. Use 'package-search' tool to search for packages and 'package-list' to list installed packages.
- License 许可
- MIT
- 最近更新
- 2026-04-12
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- package-add
- description
- Install a package from the Unity Package Manager registry, Git URL, or local path. This operation modifies the project's manifest.json and triggers package resolution. Note: Package installation may trigger a domain reload. The result will be sent after the reload completes. Use 'package-search' tool to search for packages and 'package-list' to list installed packages.
02 资源文件 11
- 参考文档references/aiml-data-platform.md4.8 KB
- 参考文档references/application-model-oam.md5.7 KB
- 参考文档references/developer-portal-backstage.md6.7 KB
- 参考文档references/genai-platform-engineering.md5.0 KB
- 参考文档references/gitops-delivery.md5.5 KB
- 参考文档references/golden-paths.md3.5 KB
- 参考文档references/identity-and-tenancy.md3.2 KB
- 参考文档references/idp-architecture.md7.8 KB
- 参考文档references/infrastructure-abstraction.md3.0 KB
- 参考文档references/measuring-success.md2.6 KB
- 参考文档references/progressive-delivery.md3.8 KB
03 SKILL.md 正文
Package Manager / Add
Install a package from the Unity Package Manager registry, Git URL, or local path. This operation modifies the project's manifest.json and triggers package resolution. Note: Package installation may trigger a domain reload. The result will be sent after the reload completes. Use 'package-search' tool to search for packages and 'package-list' to list installed packages.
How to Call
HTTP API (Direct Tool Execution)
Execute this tool directly via the MCP Plugin HTTP API:
curl -X POST http://localhost:50187/api/tools/package-add \
-H "Content-Type: application/json" \
-d '{
"packageId": "string_value"
}'
With Authorization (if required)
curl -X POST http://localhost:50187/api/tools/package-add \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"packageId": "string_value"
}'
The token is stored in the file:
UserSettings/AI-Game-Developer-Config.jsonUsing the format:"token": "YOUR_TOKEN"
Input
| Name | Type | Required | Description |
|---|---|---|---|
packageId |
string |
Yes | The package ID to install. Formats: Package ID 'com.unity.textmeshpro' (installs latest compatible version), Package ID with version 'com.unity.textmeshpro@3.0.6', Git URL 'https://github.com/user/repo.git', Git URL with branch/tag 'https://github.com/user/repo.git#v1.0.0', Local path 'file:../MyPackage'. |
Input JSON Schema
{
"type": "object",
"properties": {
"packageId": {
"type": "string",
"description": "The package ID to install. Formats: Package ID \u0027com.unity.textmeshpro\u0027 (installs latest compatible version), Package ID with version \u0027com.unity.textmeshpro@3.0.6\u0027, Git URL \u0027https://github.com/user/repo.git\u0027, Git URL with branch/tag \u0027https://github.com/user/repo.git#v1.0.0\u0027, Local path \u0027file:../MyPackage\u0027."
}
},
"required": [
"packageId"
]
}
Output
This tool does not return structured output.