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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:99-114 (handler)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.` } ] }; } ); }
- src/tools.ts:98-98 (schema)Empty Zod schema indicating the tool takes no input parameters.{},
- src/tools.ts:8-12 (helper)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);