Files
ax_hub_mcp_tool/docs/superpowers/specs/2026-08-13-dat-was-sys-executable-mock-tools-design.md
jade b1e779e93a refactor: massive rename dap -> dat
- Renamed packages io.shinhanlife.dap to io.shinhanlife.dat
- Renamed modules dap-was-* and dap-gateway to dat-was-* and dat-gateway
- Renamed classes DapGateway* to DatGateway*
- Updated all references
2026-08-20 10:06:20 +09:00

24 lines
1.2 KiB
Markdown

# dat-was-sys Executable Mock Tools Design
## Scope
Implement `sys_system_status` and `sys_notice_list` as executable, read-only MCP tools and REST endpoints in `dat-was-sys`.
## Architecture
Each tool has a request DTO, response DTO, `@McpTool` UseCase interface, and Spring `@Service` implementation. The implementation returns deterministic synthetic data without external calls. A REST controller delegates to the same UseCases, so MCP and HTTP return the same DTO contracts.
## Contracts
- `sys_system_status`: optional `environment`; returns `systemName`, `environment`, `status`, and `checkedAt`.
- `sys_notice_list`: optional `category`; returns a list of notices with `title`, `priority`, and `publishedDate`.
- REST endpoints: `GET /api/sys/status` and `GET /api/sys/notices` with their matching optional query parameters.
## Safety
Both tools remain read-only, non-destructive, and idempotent. All data is synthetic; no credentials, personal data, or external integrations are used.
## Validation
Unit tests will verify each UseCase response. MockMvc tests will verify endpoint success, optional parameter handling, and the exposed response fields. Existing YAML definitions and JSON mock responses remain aligned with the DTO contracts.