activate-profile
Switch active configurations in the MCP Environment & Installation Manager by activating a specific profile using the profile ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profileId | Yes | Profile ID to activate |
Implementation Reference
- src/tools/profile-tools.ts:177-195 (handler)The handler function for the 'activate-profile' tool. Validates the profileId, calls configService.setActiveProfile(profileId), and returns a success response with JSON content.async ({ profileId }, extra) => { if (!profileId.trim()) { throw new Error("Profile ID cannot be empty"); } await configService.setActiveProfile(profileId); return { content: [ { type: "text", text: JSON.stringify({ success: true, profileId }, null, 2) } ] }; }
- src/tools/profile-tools.ts:174-176 (schema)Input schema for the 'activate-profile' tool, requiring a 'profileId' string parameter.{ profileId: z.string().describe("Profile ID to activate") },
- src/tools/profile-tools.ts:172-196 (registration)Registration of the 'activate-profile' tool on the MCP server within registerProfileTools function, including schema and handler.server.tool( "activate-profile", { profileId: z.string().describe("Profile ID to activate") }, async ({ profileId }, extra) => { if (!profileId.trim()) { throw new Error("Profile ID cannot be empty"); } await configService.setActiveProfile(profileId); return { content: [ { type: "text", text: JSON.stringify({ success: true, profileId }, null, 2) } ] }; } );