get-current-time
Retrieve the current date and time from the minimal MCP server to display accurate temporal information for applications or systems requiring time synchronization.
Instructions
現在の日時を取得するツール
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:33-49 (handler)The tool 'get-current-time' is registered and implemented directly in src/index.ts. The handler logic is provided as an async callback within the registerTool function.
server.registerTool( "get-current-time", { description: "現在の日時を取得するツール", }, async () => { const now = new Date(); return { content: [ { type: "text", text: `現在の日時: ${now.toLocaleString()}`, }, ], }; }, );