Skip to main content
Glama
nieperdragon

MCP Login Server

by nieperdragon

get_login_credentials

Retrieve authentication credentials for localhost web applications to automate login processes 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 asynchronous handler function that implements the core logic of the get_login_credentials tool. It constructs and returns a structured MCP response containing 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)
    The registration function that adds the get_login_credentials tool to the MCP server. It calls server.tool() with the tool name, description, empty input schema ({}), and the handler function.
    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.`
              }
            ]
          };
        }
      );
    }
  • Helper constant defining the login credentials (username, password, target URL) that are exposed by the get_login_credentials tool.
    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, ensuring the tool is registered when all tools are set up.
    registerGetLoginCredentialsTool(server);

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other 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