read_username
Retrieve a username from the Hiworks Mail system to enable email operations such as searching, reading, and sending messages with attachments.
Instructions
하이웍스 username을 읽어옵니다.
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": "read_username"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | No | ||
| password | No |
Implementation Reference
- src/index.ts:140-152 (handler)The handler function for the 'read_username' tool. It takes username and password as input and returns them as a JSON string in the MCP response format.
async ({ username, password }) => { return { content: [ { type: "text", text: JSON.stringify({ username: username, password: password }) } ] }; } - src/index.ts:136-153 (registration)Registration of the 'read_username' tool using server.tool, including the description, schema reference (emailSchema), and inline handler.
server.tool( 'read_username', '하이웍스 username을 읽어옵니다.', emailSchema, async ({ username, password }) => { return { content: [ { type: "text", text: JSON.stringify({ username: username, password: password }) } ] }; } ); - src/index.ts:119-122 (schema)Zod schema used for input validation of the 'read_username' tool (shared with other email tools).
const emailSchema = { username: z.string().default(process.env['HIWORKS_USERNAME'] || ''), password: z.string().default(process.env['HIWORKS_PASSWORD'] || '') }; - src/index.ts:78-88 (schema)Tool schema declaration in the MCP server capabilities section.
read_username: { description: '하이웍스 username을 읽어옵니다.', parameters: { type: 'object', properties: { username: { type: 'string' }, password: { type: 'string' } }, required: ['username', 'password'] } },