{
  "markdown": "# WinGet MCP\n\n<p align=\"right\">\n    <b>English</b> | <a href=\"./README_zh.md\">简体中文</a>\n</p>\n\n[![GitHub last commit](https://img.shields.io/github/last-commit/ZhanZiyuan/winget-mcp)](https://github.com/ZhanZiyuan/winget-mcp/commits/main/)\n[![GitHub License](https://img.shields.io/github/license/ZhanZiyuan/winget-mcp)](https://github.com/ZhanZiyuan/winget-mcp/blob/main/LICENSE)\n[![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/ZhanZiyuan/winget-mcp/total)](https://github.com/ZhanZiyuan/winget-mcp/releases)\n\nThis extension integrates the **Windows Package Manager (WinGet)** with the Gemini CLI using the Model Context Protocol (MCP).\nIt allows you to search for software packages and generate installation commands directly within your conversation with Gemini.\n\n## Features\n\n- **Package Discovery**: Search for packages in the WinGet repository using the `/winget:find` command or natural language.\n- **Installation Helper**: Generate installation commands with safety warnings using `/winget:install`.\n- **Environment Setup**: specialized \"Package Manager Expert\" skill that helps you architect and install full development environments (e.g., \"Setup a Python dev environment\").\n- **Language Aware**: The extension detects your language (English/Chinese) and adapts its output accordingly.\n\n## Prerequisites\n\n- **OS**: Windows 10 (1809+) or Windows 11.\n- **Software**:\n  - [Gemini CLI](https://geminicli.com) installed.\n  - [App Installer (WinGet)](https://apps.microsoft.com/detail/9nblggh4nns1) installed and up to date.\n\n## Installation & Setup\n\n- Open a command prompt and enter the `winget mcp` command. The result displays the JSON configuration fragment that shows the path to the `WindowsPackageManagerMCPServer.exe` file.\n\n  ```bash\n  winget mcp\n  ```\n\n  If the following error occurs: **Unrecognized command: 'mcp'**\n\n  Verify that the App Installer application is up to date on the device.\n  This can be verified in the Store application.\n\n- **Configure the Extension**:\nOpen the `gemini-extension.json` file in this folder.\nLocate the `mcpServers.winget-mcp.command` field and replace the existing path with the one you found in the previous step.\n\n  ```json\n  \"mcpServers\": {\n    \"winget-mcp\": {\n      \"type\": \"stdio\",\n      \"command\": \"C:\\\\Users\\\\<username>\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps\\\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\\\\WindowsPackageManagerMCPServer.exe\",\n      \"args\": [],\n      \"env\": {}\n    }\n  }\n  ```\n\n  **Note:** Ensure you double the backslashes (`\\\\`) in the JSON file path.\n\n- Once you have updated the configuration file, link the extension to Gemini CLI:\n\n  ```bash\n  gemini extensions link .\n  ```\n\n  Or install the extension using the following command:\n\n  ```bash\n  gemini extensions install https://github.com/ZhanZiyuan/winget-mcp\n  ```\n\n  After running this command, restart your Gemini CLI session.\n\n## Usage\n\n### Commands\n\n- **Find a Package**:\n\n  ```bash\n  /winget:find \"Visual Studio Code\"\n  ```\n\n  *Or just ask:* \"Find a pdf reader for me.\"\n\n- **Install a Package**:\n\n  ```bash\n  /winget:install \"Microsoft.VisualStudioCode\"\n  ```\n\n  *Or just ask:* \"How do I install Chrome?\"\n\n### Skills\n\nThis extension includes a **Package Manager Expert** skill.\nIt activates automatically when you have complex requests.\n\n- **Example**: \"I want to setup a complete web development environment with Node.js, VS Code, and Git.\"\n  - *The agent will break this down, verify package IDs for each tool, and provide a comprehensive installation plan.*\n\n## License\n\nThis project is licensed under the GPLv3 License - see the [LICENSE](./LICENSE) file for details.\n\n---\n\n*Based on the [Getting started with Gemini CLI extensions](https://geminicli.com/docs/extensions/getting-started-extensions/) and [Use the Windows Package Manager MCP Server for package management with AI agents](https://learn.microsoft.com/en-us/windows/package-manager/winget/mcp-server).*\n",
  "bytes": 3946,
  "sha": "c77a812015e6f2692187cff06c74ce161f8e72def7df8b12c2c4a4ec9bde00f1",
  "repo_slug": "zhanziyuan/winget-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_zhanziyuan_winget_mcp_810cf125/readme"
}