get_startup_checklist
Generate a startup checklist with required permits, estimated costs, and preparation steps for specific business types like cafes, restaurants, or convenience stores.
Instructions
업종별 창업 체크리스트와 필요 인허가를 안내합니다. 예상 비용과 준비 순서도 제공합니다.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| business_type | Yes | 창업 업종 (예: 카페, 음식점, 편의점, 미용실) | |
| region | No | 창업 지역 (선택) |
Implementation Reference
- src/tools/startup-checklist.ts:271-318 (handler)Core handler function that normalizes business type, retrieves licenses, checklist, costs, and tips from internal DBs, and returns structured ApiResult.export async function getStartupChecklist( businessType: string, _region?: string ): Promise<ApiResult<StartupChecklist>> { try { // 업종 정규화 const normalizedType = businessType.includes("카페") || businessType.includes("커피") ? "카페" : businessType.includes("음식") || businessType.includes("식당") || businessType.includes("국밥") ? "음식점" : businessType.includes("편의점") ? "편의점" : businessType.includes("미용") || businessType.includes("헤어") ? "미용실" : "default"; const licenses = LICENSE_DB[normalizedType] || LICENSE_DB.default; const checklist = CHECKLIST_DB[normalizedType] || CHECKLIST_DB.default; const estimatedCost = COST_DB[normalizedType] || COST_DB.default; const tips = generateTips(normalizedType); return { success: true, data: { businessType: normalizedType === "default" ? businessType : normalizedType, licenses, checklist, estimatedCost, tips, }, meta: { source: "창업 가이드 데이터베이스", timestamp: new Date().toISOString(), }, }; } catch (error) { console.error("체크리스트 조회 실패:", error); return { success: false, error: { code: "CHECKLIST_FAILED", message: "체크리스트 조회 중 오류가 발생했습니다.", suggestion: "업종명을 다시 확인해주세요.", }, }; } }
- src/index.ts:94-96 (schema)Zod schema defining input parameters: business_type (required string) and region (optional string).business_type: z.string().describe("창업 업종 (예: 카페, 음식점, 편의점, 미용실)"), region: z.string().optional().describe("창업 지역 (선택)"), },
- src/index.ts:90-104 (registration)Registers the 'get_startup_checklist' tool with MCP server, including description, input schema, and wrapper handler that calls the core implementation.server.tool( "get_startup_checklist", "업종별 창업 체크리스트와 필요 인허가를 안내합니다. 예상 비용과 준비 순서도 제공합니다.", { business_type: z.string().describe("창업 업종 (예: 카페, 음식점, 편의점, 미용실)"), region: z.string().optional().describe("창업 지역 (선택)"), }, async ({ business_type, region }) => { const result = await getStartupChecklist(business_type, region); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], isError: !result.success, }; } );