get-installed-apps
Retrieve a list of installed applications on your computer using this tool, enabling quick access to software inventory and system details.
Instructions
Get my computer's installed apps
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-installed-apps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:18-28 (handler)The handler function for the 'get-installed-apps' tool. It fetches the list of installed apps using getInstalledApps() and formats the result as JSON text in the MCP response format.
async () => { const apps = await getInstalledApps(); return { content: [ { type: "text", text: JSON.stringify(apps, null, 2), }, ], }; } - src/index.ts:15-29 (registration)Registers the 'get-installed-apps' tool on the MCP server with its name, description, and handler function.
server.tool( "get-installed-apps", "Get my computer's installed apps", async () => { const apps = await getInstalledApps(); return { content: [ { type: "text", text: JSON.stringify(apps, null, 2), }, ], }; } ); - src/index.ts:3-3 (helper)Imports the getInstalledApps utility function, which provides the core logic for retrieving installed applications and is called within the tool handler.
import { getInstalledApps } from "get-installed-apps";