Skip to main content
Glama
devlimelabs

MCP Environment & Installation Manager

by devlimelabs

get-active-profile

Retrieve the currently active configuration profile to manage environment variables and server settings within the MCP Environment & Installation Manager.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the 'get-active-profile' tool. It retrieves the active profile using configService.getActiveProfile() and returns a JSON-formatted response with the profile details or a flag indicating no active profile exists.
    server.tool( "get-active-profile", {}, async (_, extra) => { const activeProfile = configService.getActiveProfile(); if (!activeProfile) { return { content: [ { type: "text", text: JSON.stringify({ hasActiveProfile: false }, null, 2) } ] }; } return { content: [ { type: "text", text: JSON.stringify({ hasActiveProfile: true, profile: activeProfile }, null, 2) } ] }; } );
  • src/server.ts:32-32 (registration)
    Top-level registration call that invokes registerProfileTools, which in turn registers the 'get-active-profile' tool along with other profile tools on the MCP server.
    registerProfileTools(server, configService);
  • Direct registration of the 'get-active-profile' tool via server.tool call within the registerProfileTools function.
    server.tool( "get-active-profile", {}, async (_, extra) => { const activeProfile = configService.getActiveProfile(); if (!activeProfile) { return { content: [ { type: "text", text: JSON.stringify({ hasActiveProfile: false }, null, 2) } ] }; } return { content: [ { type: "text", text: JSON.stringify({ hasActiveProfile: true, profile: activeProfile }, 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