Skip to main content
Glama

list-credentials

View configured AWS credentials and profiles on your machine to manage access for AWS MCP Server interactions.

Instructions

List all AWS credentials/configs/profiles that are configured/usable on this machine

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • index.ts:81-89 (registration)
    Registers the 'list-credentials' tool in the listTools response with an empty input schema.
    name: "list-credentials", description: "List all AWS credentials/configs/profiles that are configured/usable on this machine", inputSchema: { type: "object", properties: {}, required: [], }, },
  • Executes the 'list-credentials' tool by serializing and returning the list of available AWS profile names along with any error from loading credentials.
    } else if (name === "list-credentials") { return createTextResponse( JSON.stringify({ profiles: Object.keys(profiles), error }) );
  • Core helper function that loads AWS credentials and configuration files using AWS.IniLoader, merges them into a profiles object, and handles errors.
    async function listCredentials() { let credentials: any; let configs: any; let error: any; try { credentials = new AWS.IniLoader().loadFrom({}); } catch (error) { error = `Failed to load credentials: ${error}`; } try { configs = new AWS.IniLoader().loadFrom({ isConfig: true }); } catch (error) { error = `Failed to load configs: ${error}`; } const profiles = { ...(credentials || {}), ...(configs || {}) }; return { profiles, error }; }

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/ihatesea69/AWS-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server