mailosaur_servers_list
List all Mailosaur servers to manage your email testing environments.
Instructions
List all Mailosaur servers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:252-260 (registration)Registration of the 'mailosaur_servers_list' tool using server.tool(). The handler calls mailosaur.servers.list() and returns the result via the response() helper.
server.tool( "mailosaur_servers_list", "List all Mailosaur servers.", {}, async () => { const result = await mailosaur.servers.list(); return response(result); } ); - src/index.ts:256-259 (handler)The handler function for 'mailosaur_servers_list'. It awaits mailosaur.servers.list() and returns the result wrapped in a response.
async () => { const result = await mailosaur.servers.list(); return response(result); } - src/index.ts:255-255 (schema)The input schema for 'mailosaur_servers_list' — an empty object {} meaning no input parameters.
{}, - src/index.ts:79-88 (helper)The response() helper function used to format the tool's return value into MCP content (text type with JSON-stringified output).
function response(value: unknown) { return { content: [ { type: "text" as const, text: JSON.stringify(value, null, 2) } ] }; }