mailosaur_servers_get_password
Get the SMTP/POP3 password for a Mailosaur server to configure email clients for receiving test messages.
Instructions
Get the SMTP/POP3 password for a Mailosaur server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Server ID. |
Implementation Reference
- src/index.ts:286-296 (registration)Registration of the 'mailosaur_servers_get_password' tool on the MCP server, with a zod schema requiring 'id' (string) and a handler that calls mailosaur.servers.getPassword(id).
server.tool( "mailosaur_servers_get_password", "Get the SMTP/POP3 password for a Mailosaur server.", { id: z.string().describe("Server ID.") }, async ({ id }) => { const result = await mailosaur.servers.getPassword(id); return response({ password: result }); } ); - src/index.ts:292-295 (handler)The handler function for the tool; it calls mailosaur.servers.getPassword(id) and returns the result wrapped in a response object.
async ({ id }) => { const result = await mailosaur.servers.getPassword(id); return response({ password: result }); } - src/index.ts:289-291 (schema)Zod schema defining the input parameter: 'id' is a required string described as 'Server ID.'
{ id: z.string().describe("Server ID.") }, - src/index.ts:79-87 (helper)The 'response' helper function that wraps the tool result into the MCP content response format (JSON.stringify).
function response(value: unknown) { return { content: [ { type: "text" as const, text: JSON.stringify(value, null, 2) } ] };