time
Retrieve current date and time formatted in Korean for applications requiring localized time display in TypeScript MCP server development.
Instructions
현재 날짜와 시간을 한국어 형식으로 반환합니다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes |
Implementation Reference
- src/index.ts:111-141 (handler)The "time" tool is registered and implemented in src/index.ts. It returns the current date and time in Korean format.
server.registerTool( 'time', { description: '현재 날짜와 시간을 한국어 형식으로 반환합니다.', inputSchema: z.object({}), outputSchema: z.object({ content: z.array( z.object({ type: z.literal('text'), text: z.string().describe('현재 시간') }) ) }) }, async () => { const now = new Date() const text = now.toLocaleString('ko-KR', { year: 'numeric', month: 'long', day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric', hour12: true }) return { content: [{ type: 'text' as const, text }], structuredContent: { content: [{ type: 'text' as const, text }] } } } )