list-profiles
Lists available configuration profiles to manage environment variables and package installations for MCP servers.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/profile-tools.ts:16-34 (handler)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) } ] }; } - src/tools/profile-tools.ts:13-35 (registration)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);