Skip to main content
Glama
devlimelabs

MCP Environment & Installation Manager

by devlimelabs

list-profiles

Retrieve and display available profile-based configurations for MCP server environments, enabling efficient setup and management of application settings and installations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the 'list-profiles' tool with empty input schema. The handler fetches all profiles and active profile ID from configService, augments profiles with isActive flag, and returns as formatted JSON text content.
    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) } ] }; } );
  • Handler function for list-profiles tool: retrieves profiles, marks active one, returns JSON.
    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)
    Top-level 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