Skip to main content
Glama
devlimelabs

MCP Environment & Installation Manager

by devlimelabs

create-profile

Generate and configure environment profiles in the MCP Environment & Installation Manager, enabling efficient management of server settings and local package installations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionNoDescription of the profile
nameYesName of the profile

Implementation Reference

  • Registers the 'create-profile' MCP tool with Zod input schema validation and handler that delegates to ConfigService.createProfile and returns JSON response
    server.tool( "create-profile", { name: z.string().describe("Name of the profile"), description: z.string().optional().describe("Description of the profile") }, async ({ name, description }, extra) => { if (!name.trim()) { throw new Error("Profile name cannot be empty"); } const profile = await configService.createProfile(name, description); return { content: [ { type: "text", text: JSON.stringify({ success: true, profile }, null, 2) } ] }; } );
  • The inline handler function for the create-profile tool that performs basic validation and orchestrates the response
    async ({ name, description }, extra) => { if (!name.trim()) { throw new Error("Profile name cannot be empty"); } const profile = await configService.createProfile(name, description); return { content: [ { type: "text", text: JSON.stringify({ success: true, profile }, null, 2) } ] }; } );
  • Zod schema for create-profile tool input parameters: name (required string), description (optional string)
    name: z.string().describe("Name of the profile"), description: z.string().optional().describe("Description of the profile") },
  • Core implementation of profile creation: generates unique ID, creates Profile object, appends to profiles array, and persists to file
    async createProfile(name: string, description?: string): Promise<Profile> { const id = `${name.toLowerCase().replace(/[^a-z0-9]/g, '-')}-${Date.now().toString(36)}`; const now = new Date().toISOString(); const profile: Profile = { id, name, description, createdAt: now, updatedAt: now }; this.profilesConfig.profiles.push(profile); await this.saveProfiles(); return profile; }

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