Skip to main content
Glama
devlimelabs

MCP Environment & Installation Manager

by devlimelabs

list-profiles

Lists available configuration profiles to manage environment variables and package installations for MCP servers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for list-profiles tool: fetches all profiles and active profile ID from configService, augments profiles with isActive flag, and returns formatted JSON response.
    async (_, extra) => {
      const profiles = configService.getProfiles();
      const activeProfileId = configService.getActiveProfileId();
      
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify({
              profiles: profiles.map(profile => ({
                ...profile,
                isActive: profile.id === activeProfileId
              })),
              activeProfileId
            }, null, 2)
          }
        ]
      };
    }
  • Registration of the list-profiles tool on the MCP server within registerProfileTools function, using empty input schema.
    server.tool(
      "list-profiles",
      {},
      async (_, extra) => {
        const profiles = configService.getProfiles();
        const activeProfileId = configService.getActiveProfileId();
        
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify({
                profiles: profiles.map(profile => ({
                  ...profile,
                  isActive: profile.id === activeProfileId
                })),
                activeProfileId
              }, null, 2)
            }
          ]
        };
      }
    );
  • src/server.ts:32-32 (registration)
    Call to registerProfileTools which includes the list-profiles tool registration.
    registerProfileTools(server, configService);

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