Skip to main content
Glama
nieperdragon

MCP Login Server

by nieperdragon

get_login_credentials

Retrieve preconfigured login credentials for authenticating to localhost web applications via the MCP Login Server, enabling seamless integration with browser automation tools.

Instructions

Returns the login credentials that will be used for authentication to http://localhost

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The anonymous async handler function that implements the tool logic, formatting and returning the login credentials from the LOGIN_CREDENTIALS constant.
    async () => { return { content: [ { type: "text", text: `Login Credentials: 🎯 Target URL: ${LOGIN_CREDENTIALS.targetUrl} 👤 Username: ${LOGIN_CREDENTIALS.username} 🔑 Password: AIWorkshopJuly!25 ℹ️ These credentials are configured for the OrangeHRM system running on localhost.` } ] }; }
  • src/tools.ts:94-116 (registration)
    Registers the 'get_login_credentials' tool with the MCP server, specifying name, description, empty input schema, and inline handler.
    export function registerGetLoginCredentialsTool(server: McpServer): void { server.tool( "get_login_credentials", "Returns the login credentials that will be used for authentication to http://localhost", {}, async () => { return { content: [ { type: "text", text: `Login Credentials: 🎯 Target URL: ${LOGIN_CREDENTIALS.targetUrl} 👤 Username: ${LOGIN_CREDENTIALS.username} 🔑 Password: AIWorkshopJuly!25 ℹ️ These credentials are configured for the OrangeHRM system running on localhost.` } ] }; } ); }
  • Empty Zod schema indicating the tool takes no input parameters.
    {},
  • Shared constant providing the hardcoded username, password, and target URL used by the tool handler.
    export const LOGIN_CREDENTIALS = { username: "admin", password: "AIWorkshopJuly!25", targetUrl: "http://localhost" };
  • src/tools.ts:243-243 (registration)
    Invocation of the registration function within registerAllTools to add the tool to the server.
    registerGetLoginCredentialsTool(server);

Other Tools

Related Tools

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/nieperdragon/custom_mcp'

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