@crmforall/connector 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/server.js +18 -3
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -15,8 +15,23 @@ const tools_1 = require("./tools");
15
15
  async function main() {
16
16
  const config = (0, config_1.loadConfig)();
17
17
  if (!config) {
18
- console.error("[crmforall-connector] 설정이 없습니다. 먼저 `npx @crmforall/connect init`을 실행하세요.");
19
- process.exit(1);
18
+ // 설정 전(플러그인 설치 직후 등) 죽지 않고 '설치 안내 모드'로 떠서 다음 단계를 알려준다.
19
+ const setup = new mcp_js_1.McpServer({ name: "crmforall-connector", version: "0.1.9" }, { instructions: "아직 DB 설정이 없습니다. 터미널에서 `npx @crmforall/connect init`을 먼저 실행해 연결하세요." });
20
+ setup.tool("onboarding_status", "온보딩 상태 — 아직 설정(연결) 전입니다.", {}, async () => ({
21
+ content: [
22
+ {
23
+ type: "text",
24
+ text: JSON.stringify({
25
+ ready: false,
26
+ nextStep: "터미널에서 `npx @crmforall/connect init --token=<설치토큰> --platform-url=https://crmforall-console.vercel.app` 을 실행해 DB를 연결한 뒤, 이 세션을 재시작하세요.",
27
+ docs: "https://crmforall-console.vercel.app/docs/dev/connector",
28
+ }),
29
+ },
30
+ ],
31
+ }));
32
+ await setup.connect(new stdio_js_1.StdioServerTransport());
33
+ console.error("[crmforall-connector] 설정 없음 — 설치 안내 모드로 시작 (connect init 필요)");
34
+ return;
20
35
  }
21
36
  let db = null;
22
37
  const getDb = async () => {
@@ -29,7 +44,7 @@ async function main() {
29
44
  };
30
45
  const server = new mcp_js_1.McpServer({
31
46
  name: "crmforall-connector",
32
- version: "0.1.0",
47
+ version: "0.1.9",
33
48
  }, {
34
49
  instructions: [
35
50
  "크렘포올 DB 커넥터입니다. 고객사 DB를 진단·연결·매핑해 크렘포올 플랫폼과 잇습니다.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crmforall/connector",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "crmforall MCP 커넥터 — 운영 DB 읽기, CRM 스키마 쓰기(승인 토큰 필수), 대상 산출",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",