@channel.io/channel-talk-integration-mcp
Version:
Channel Talk Integration MCP - Installation guides for Channel Talk SDK across multiple platforms
87 lines (77 loc) • 4.54 kB
JavaScript
import { z } from "zod";
export function registerGetInitialGuideTool(server) {
server.tool("get_initial_guide", "유저가 채널톡을 설치하려고 하면 이 툴을 가장 먼저 호출합니다. 유저가 한국어를 사용하면 한국어 가이드를 제공하고, 영어를 사용하면 language 파라미터에 'en'을 전달하여 영어 가이드를 제공합니다.", {
language: z
.enum(["ko", "en"])
.optional()
.describe("Language for the guide. Use 'en' for English, defaults to Korean if not specified"),
}, (args) => {
try {
const language = args.language;
const result = language === "en" ? getEnglishGuide() : getKoreanGuide();
return {
content: [
{
type: "text",
text: JSON.stringify(result, null, 2),
},
],
};
}
catch (error) {
const message = error instanceof Error ? error.message : String(error);
throw new Error(`Failed to execute get_initial_guide: ${message}`);
}
});
}
function getKoreanGuide() {
return {
result: `채널톡은 웹사이트나 모바일 앱에 설치할 수 있는 SDK를 통해 고객과 소통할 수 있는 플랫폼입니다.
## 주요 기능:
- **실시간 채팅 상담**: 고객과 실시간으로 소통
- **마케팅 기능**: 고객이 원하는 것을 찾을 수 있도록 지원
- **이벤트 트래킹**: 고객 행동 분석 및 인사이트 제공
## 지원 플랫폼:
- **JavaScript SDK**: 웹사이트용
- **Android SDK**: 안드로이드 앱용
- **iOS SDK**: iOS 앱용
- **React Native SDK**: 크로스 플랫폼 앱용
## 설치 전 필수사항:
1. **채널톡 가입**: 홈페이지(https://channel.io) 또는 채널톡 앱에서 가입
2. **채널 생성**: 서비스에 맞는 채널 생성
3. **플러그인 키 발급**: 웹 데스크 > 채널 설정 > 일반 설정 > 버튼 설치 및 설정 > 채널톡 버튼 설치 (가이드 이미지)[https://files.readme.io/18ac27f-plugin_kr.png]에서 플러그인 키 획득
유저에게 "설치 전 필수사항"에 대한 완료여부를 물어보세요. 완료되지 않았다면 필수사항을 완료하도록 안내해주세요.
참고 문서: https://developers.channel.io/reference/sdk-kr`,
next_step: `웹사이트에 채널톡을 설치하려면 **get_web_guide** 툴을 호출하세요.
웹뷰에 채널톡을 설치하려면 **get_webview_guide** 툴을 호출하세요.
안드로이드앱에 채널톡을 설치하려면 **get_android_guide** 툴을 호출하세요.
iOS 앱에 채널톡을 설치하려면 **get_ios_guide** 툴을 호출하세요.
React Native 앱에 채널톡을 설치하려면 **get_react_native_guide** 툴을 호출하세요.`,
};
}
function getEnglishGuide() {
return {
result: `Channel Talk is a platform that enables communication with customers through SDKs that can be installed on websites or mobile apps.
## Key Features:
- **Real-time Chat Support**: Communicate with customers in real-time
- **Marketing Features**: Help customers find what they're looking for
- **Event Tracking**: Customer behavior analysis and insights
## Supported Platforms:
- **JavaScript SDK**: For websites
- **Android SDK**: For Android apps
- **iOS SDK**: For iOS apps
- **React Native SDK**: For cross-platform apps
## Prerequisites:
1. **Channel Talk Sign-up**: Sign up at homepage (https://channel.io) or Channel Talk app
2. **Create Channel**: Create a channel for your service
3. **Get Plugin Key**: Go to Web Desk > Channel Settings > General Settings > Button Installation & Settings > Install Channel Talk Button. Get plugin key from the guide image (https://files.readme.io/18ac27f-plugin.png)
Please ask the user if they have completed the "Prerequisites". If not completed, guide them to complete the prerequisites first.
Reference Documentation: https://developers.channel.io/reference/sdk`,
next_step: `To install Channel Talk on a website, call the **get_web_guide** tool.
To install Channel Talk on a webview, call the **get_webview_guide** tool.
To install Channel Talk on an Android app, call the **get_android_guide** tool.
To install Channel Talk on an iOS app, call the **get_ios_guide** tool.
To install Channel Talk on a React Native app, call the **get_react_native_guide** tool.`,
};
}
//# sourceMappingURL=get-initial-guide.js.map