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
| Name | Required | Description | Default |
|---|---|---|---|
| client | No | Target client to install to | claude-code |
| essential_only | No | Only install MCPs marked as essential | |
| skip_existing | No | Skip MCPs that are already installed | |
| secrets | No | Key-value pairs of secrets for all MCPs (keys should match what each MCP needs) |
Implementation Reference
- src/index.ts:267-285 (handler)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) }] }; }
- src/index.ts:101-130 (schema)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' } } } } },
- src/installer.ts:295-348 (helper)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 }));