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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:99-115 (handler)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.` } ] }; } ); }
- src/tools.ts:8-12 (helper)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);