read_username
Retrieve Hiworks username from the Mail MCP server using provided credentials, enabling integration and email system authentication.
Instructions
하이웍스 username을 읽어옵니다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | ||
| username | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"password": {
"default": "",
"type": "string"
},
"username": {
"default": "",
"type": "string"
}
},
"type": "object"
}
Implementation Reference
- src/index.ts:140-152 (handler)The handler function for the 'read_username' tool that simply echoes back the provided username and password as JSON text in the MCP response content.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 with server.tool(), providing name, description, Zod schema (emailSchema), and handler function.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 defining the input parameters (username and password with defaults from env vars) used for the 'read_username' tool and 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)JSON schema for 'read_username' tool declared in the MCP server capabilities section.read_username: { description: '하이웍스 username을 읽어옵니다.', parameters: { type: 'object', properties: { username: { type: 'string' }, password: { type: 'string' } }, required: ['username', 'password'] } },