mailosaur_devices_list
Retrieve a list of virtual security devices for TOTP testing.
Instructions
List Mailosaur virtual security devices used for TOTP testing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mailosaur_devices_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:433-441 (registration)The tool 'mailosaur_devices_list' is registered via server.tool() with an empty schema and an async handler that calls mailosaur.devices.list().
server.tool( "mailosaur_devices_list", "List Mailosaur virtual security devices used for TOTP testing.", {}, async () => { const result = await mailosaur.devices.list(); return response(result); } ); - src/index.ts:437-440 (handler)The handler function that executes the tool logic: calls mailosaur.devices.list() and returns the result via the response() helper.
async () => { const result = await mailosaur.devices.list(); return response(result); } - src/index.ts:79-88 (helper)The response() helper function wraps a value into the MCP content format (JSON stringified with indentation).
function response(value: unknown) { return { content: [ { type: "text" as const, text: JSON.stringify(value, null, 2) } ] }; }