UNPKG

roundhr-mcp-server

Version:

MCP server for RoundHR database tools

36 lines (35 loc) 953 B
import { RoundApiCoreClient } from "./round-api-core-client.js"; /** */ export class RoundReportClient extends RoundApiCoreClient { constructor() { super(); } /** * 싱글톤 인스턴스 반환 */ static getInstance() { if (!RoundReportClient.instance) { RoundReportClient.instance = new RoundReportClient(); } return RoundReportClient.instance; } /** * API 자격 증명으로 클라이언트 초기화 */ initialize(config) { this.config = config; } async schema() { return this.get(`${this.baseUrl}/mcp/reports/schema`, {}); } /** * 네이버 검색 API 호출 (type별로) * @param type 검색 타입(카테고리) * @param params 검색 파라미터 */ async executeQuery(params) { return this.post(`${this.baseUrl}/mcp/reports/execute`, params); } } RoundReportClient.instance = null;