Skip to main content
Glama
danielrosehill

Daniel Rosehill's MCP Installer

install_all

Install multiple MCP servers to Claude Code, Cursor, or VS Code clients with optional filtering for essential tools and secret management.

Instructions

Install all MCPs (or just essential ones) to a client. Skips MCPs that need secrets unless provided.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientNoTarget client to install toclaude-code
essential_onlyNoOnly install MCPs marked as essential
skip_existingNoSkip MCPs that are already installed
secretsNoKey-value pairs of secrets for all MCPs (keys should match what each MCP needs)

Implementation Reference

  • Handler for the 'install_all' MCP tool call. Parses input arguments and delegates to the installAll helper function, returning the result as JSON.
    case 'install_all': { const client = (args?.client as ClientType) || 'claude-code'; const essentialOnly = args?.essential_only as boolean || false; const skipExisting = args?.skip_existing as boolean !== false; const secrets = (args?.secrets as Record<string, string>) || {}; const result = await installAll(client, { essentialOnly, skipExisting, providedSecrets: secrets }); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema and metadata definition for the 'install_all' tool, registered in the tools list.
    { name: 'install_all', description: 'Install all MCPs (or just essential ones) to a client. Skips MCPs that need secrets unless provided.', inputSchema: { type: 'object', properties: { client: { type: 'string', enum: ['claude-code', 'cursor', 'vscode'], description: 'Target client to install to', default: 'claude-code' }, essential_only: { type: 'boolean', description: 'Only install MCPs marked as essential', default: false }, skip_existing: { type: 'boolean', description: 'Skip MCPs that are already installed', default: true }, secrets: { type: 'object', description: 'Key-value pairs of secrets for all MCPs (keys should match what each MCP needs)', additionalProperties: { type: 'string' } } } } },
  • Core helper function that implements the logic to install all (or essential) MCPs to a specified client, handling secrets, skips, and aggregating results.
    export async function installAll( client: ClientType, options: { essentialOnly?: boolean; skipExisting?: boolean; providedSecrets?: Record<string, string>; } = {} ): Promise<BatchInstallResult> { const mcps = await listMcps({ essentialOnly: options.essentialOnly, enabledOnly: true }); const results: InstallResult[] = []; let installed = 0; let skipped = 0; let failed = 0; let secretsRequired = 0; for (const mcp of mcps) { const result = await installMcp( mcp.id, client, options.providedSecrets || {}, options.skipExisting !== false ); results.push(result); switch (result.status) { case 'success': installed++; break; case 'already_installed': skipped++; break; case 'secrets_required': secretsRequired++; break; case 'error': failed++; break; } } return { total: mcps.length, installed, skipped, failed, secrets_required: secretsRequired, results }; }
  • src/index.ts:176-178 (registration)
    Registration of the tools list (including install_all) for the ListToolsRequest handler.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools }));

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielrosehill/My-MCP-Installer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server