Skip to main content
Glama
devlimelabs

MCP Environment & Installation Manager

by devlimelabs

activate-profile

Switch active configurations in the MCP Environment & Installation Manager by activating a specific profile using the profile ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profileIdYesProfile ID to activate

Implementation Reference

  • 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) } ] }; }
  • Input schema for the 'activate-profile' tool, requiring a 'profileId' string parameter.
    { profileId: z.string().describe("Profile ID to activate") },
  • 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) } ] }; } );

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/devlimelabs/mcp-env-manager-mcp'

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