LEVEL 66 QUEST
MCP 도구 정의하기
커스텀 도구 함수를 TypeScript로 작성합니다.
도구 함수 구조
MCP 도구는 name, description, inputSchema로 정의됩니다.
// typescript
const tool = { name: "get_weather", description: "Get weather for a city", inputSchema: { type: "object", properties: { city: { type: "string", description: "City name" } }, required: ["city"] } };
const tool = { name: "get_weather", description: "Get weather for a city", inputSchema: { type: "object", properties: { city: { type: "string", description: "City name" } }, required: ["city"] } };
🔒
여기까지는 미리보기입니다
MCP 도구 정의하기
무료 가입하면 이어서 볼 수 있고, 강의를 완료할 때마다 XP와 레벨이 쌓입니다.
Google로 3초 만에 시작 →🧵 Threads로 시작무료 공개 강의 둘러보기 (Lv.1~3)무료 가입하면 이어서 볼 수 있고, 강의를 완료할 때마다 XP와 레벨이 쌓입니다.