funifier-mcp 0.2.4 → 0.2.7

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.
package/dist/mcp/index.js CHANGED
@@ -14,6 +14,11 @@ async function main() {
14
14
  await runInit();
15
15
  return;
16
16
  }
17
+ if (subcommand === "search") {
18
+ const { default: runSearch } = require("../cli/search");
19
+ runSearch();
20
+ return;
21
+ }
17
22
  if (subcommand === "--version" || subcommand === "-v") {
18
23
  // eslint-disable-next-line @typescript-eslint/no-var-requires
19
24
  const pkg = require("../../package.json");
@@ -21,9 +26,10 @@ async function main() {
21
26
  return;
22
27
  }
23
28
  if (subcommand === "--help" || subcommand === "-h") {
24
- console.log("Usage: funifier-mcp Start the MCP server (stdio)");
25
- console.log(" funifier-mcp init Interactive setup for AI platforms");
26
- console.log(" funifier-mcp --version Print version");
29
+ console.log("Usage: funifier-mcp Start the MCP server (stdio)");
30
+ console.log(" funifier-mcp init Interactive setup for AI platforms");
31
+ console.log(' funifier-mcp search "<query>" Search Funifier documentation');
32
+ console.log(" funifier-mcp --version Print version");
27
33
  return;
28
34
  }
29
35
  // Create the API holder (manages connection state)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":";;;AAEA,oEAAoE;AACpE,wEAAiF;AACjF,6CAAyC;AACzC,mCAAwC;AACxC,6DAA8D;AAC9D,mDAAsD;AAEtD,KAAK,UAAU,IAAI;IACjB,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACnC,IAAI,UAAU,KAAK,MAAM,EAAE,CAAC;QAC1B,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;QACpD,MAAM,OAAO,EAAE,CAAC;QAChB,OAAO;IACT,CAAC;IACD,IAAI,UAAU,KAAK,WAAW,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;QACtD,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c,EAAE,CAAC;IAEjD,wBAAwB;IACxB,MAAM,MAAM,GAAG,IAAI,kBAAS,CAAC;QAC3B,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,OAAO;KACjB,CAAC,CAAC;IAEH,6CAA6C;IAC7C,IAAA,qBAAa,EAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACjC,IAAA,iCAAiB,EAAC,MAAM,CAAC,CAAC;IAC1B,IAAA,2BAAe,EAAC,MAAM,CAAC,CAAC;IAExB,6BAA6B;IAC7B,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAEhC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,CAAC,KAAK,CACX,wFAAwF,CACzF,CAAC;IACJ,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,2CAA2C,EAAE,KAAK,CAAC,CAAC;IAClE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "funifier-mcp",
3
- "version": "0.2.4",
3
+ "version": "0.2.7",
4
4
  "description": "Funifier AI toolkit — MCP server, API client, and Claude Code skills for the Funifier gamification platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "build": "tsc",
35
35
  "bundle": "npm run build && esbuild dist/mcp/index.js --bundle --outfile=dist/mcp/bundle.js --format=cjs --platform=node --minify",
36
36
  "dev": "tsc --watch",
37
- "prepublishOnly": "npm run bundle",
37
+ "prepublishOnly": "npm run build:skills && npm run bundle",
38
38
  "test": "vitest run",
39
39
  "test:watch": "vitest watch",
40
40
  "build:skills": "tsx scripts/build-skills.ts",
@@ -67,4 +67,4 @@
67
67
  "engines": {
68
68
  "node": ">=18"
69
69
  }
70
- }
70
+ }
@@ -34,7 +34,7 @@ Só então prossiga com a implementação.
34
34
  Run lexical search to load only what you need:
35
35
 
36
36
  ```bash
37
- npx tsx scripts/search-docs.ts "action track player behavior attributes log event" --skill funifier-create-action
37
+ npx funifier-mcp search "action track player behavior attributes log event" --skill funifier-create-action
38
38
  ```
39
39
 
40
40
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -73,7 +73,7 @@ Note que `aggregate` é uma **string** contendo JSON serializado (com `\n` e `\"
73
73
  Run lexical search to load only what you need:
74
74
 
75
75
  ```bash
76
- npx tsx scripts/search-docs.ts "aggregate mongodb pipeline report dashboard query prepared" --skill funifier-create-aggregate
76
+ npx funifier-mcp search "aggregate mongodb pipeline report dashboard query prepared" --skill funifier-create-aggregate
77
77
  ```
78
78
 
79
79
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -34,7 +34,7 @@ Só então prossiga com a implementação.
34
34
  Run lexical search to load only what you need:
35
35
 
36
36
  ```bash
37
- npx tsx scripts/search-docs.ts "challenge mission reward rules action points gamification" --skill funifier-create-challenge
37
+ npx funifier-mcp search "challenge mission reward rules action points gamification" --skill funifier-create-challenge
38
38
  ```
39
39
 
40
40
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -73,7 +73,7 @@ Note que `aggregate` é uma **string** contendo JSON serializado (com `\n` e `\"
73
73
  Run lexical search to load only what you need:
74
74
 
75
75
  ```bash
76
- npx tsx scripts/search-docs.ts "custom page studio dashboard angularjs bootstrap admin crud kpi" --skill funifier-create-custom-page
76
+ npx funifier-mcp search "custom page studio dashboard angularjs bootstrap admin crud kpi" --skill funifier-create-custom-page
77
77
  ```
78
78
 
79
79
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -34,7 +34,7 @@ Só então prossiga com a implementação.
34
34
  Run lexical search to load only what you need:
35
35
 
36
36
  ```bash
37
- npx tsx scripts/search-docs.ts "leaderboard ranking score top players classification board" --skill funifier-create-leaderboard
37
+ npx funifier-mcp search "leaderboard ranking score top players classification board" --skill funifier-create-leaderboard
38
38
  ```
39
39
 
40
40
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -34,7 +34,7 @@ Só então prossiga com a implementação.
34
34
  Run lexical search to load only what you need:
35
35
 
36
36
  ```bash
37
- npx tsx scripts/search-docs.ts "level progression rank tier xp points unlock" --skill funifier-create-level
37
+ npx funifier-mcp search "level progression rank tier xp points unlock" --skill funifier-create-level
38
38
  ```
39
39
 
40
40
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -34,7 +34,7 @@ Só então prossiga com a implementação.
34
34
  Run lexical search to load only what you need:
35
35
 
36
36
  ```bash
37
- npx tsx scripts/search-docs.ts "point xp coin currency score metric category" --skill funifier-create-point
37
+ npx funifier-mcp search "point xp coin currency score metric category" --skill funifier-create-point
38
38
  ```
39
39
 
40
40
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -34,7 +34,7 @@ Só então prossiga com a implementação.
34
34
  Run lexical search to load only what you need:
35
35
 
36
36
  ```bash
37
- npx tsx scripts/search-docs.ts "quiz question answer questionnaire multiple choice survey" --skill funifier-create-quiz
37
+ npx funifier-mcp search "quiz question answer questionnaire multiple choice survey" --skill funifier-create-quiz
38
38
  ```
39
39
 
40
40
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -73,7 +73,7 @@ Note que `aggregate` é uma **string** contendo JSON serializado (com `\n` e `\"
73
73
  Run lexical search to load only what you need:
74
74
 
75
75
  ```bash
76
- npx tsx scripts/search-docs.ts "scheduler cron groovy java scheduled job periodic" --skill funifier-create-scheduler
76
+ npx funifier-mcp search "scheduler cron groovy java scheduled job periodic" --skill funifier-create-scheduler
77
77
  ```
78
78
 
79
79
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -73,7 +73,7 @@ Note que `aggregate` é uma **string** contendo JSON serializado (com `\n` e `\"
73
73
  Run lexical search to load only what you need:
74
74
 
75
75
  ```bash
76
- npx tsx scripts/search-docs.ts "trigger event groovy java before_create after_win entity script" --skill funifier-create-trigger
76
+ npx funifier-mcp search "trigger event groovy java before_create after_win entity script" --skill funifier-create-trigger
77
77
  ```
78
78
 
79
79
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -34,7 +34,7 @@ Só então prossiga com a implementação.
34
34
  Run lexical search to load only what you need:
35
35
 
36
36
  ```bash
37
- npx tsx scripts/search-docs.ts "virtual good item catalog store purchase marketplace shop" --skill funifier-create-virtual-good
37
+ npx funifier-mcp search "virtual good item catalog store purchase marketplace shop" --skill funifier-create-virtual-good
38
38
  ```
39
39
 
40
40
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -34,7 +34,7 @@ Só então prossiga com a implementação.
34
34
  Run lexical search to load only what you need:
35
35
 
36
36
  ```bash
37
- npx tsx scripts/search-docs.ts "debug error log exception timeout groovy stack trace fix" --skill funifier-debug
37
+ npx funifier-mcp search "debug error log exception timeout groovy stack trace fix" --skill funifier-debug
38
38
  ```
39
39
 
40
40
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -34,7 +34,7 @@ Só então prossiga com a implementação.
34
34
  Run lexical search to load only what you need:
35
35
 
36
36
  ```bash
37
- npx tsx scripts/search-docs.ts "help documentation guide module question how what funifier" --skill funifier-help
37
+ npx funifier-mcp search "help documentation guide module question how what funifier" --skill funifier-help
38
38
  ```
39
39
 
40
40
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -34,7 +34,7 @@ Só então prossiga com a implementação.
34
34
  Run lexical search to load only what you need:
35
35
 
36
36
  ```bash
37
- npx tsx scripts/search-docs.ts "frontend api authentication fetch jwt token javascript react angular" --skill funifier-implement-frontend
37
+ npx funifier-mcp search "frontend api authentication fetch jwt token javascript react angular" --skill funifier-implement-frontend
38
38
  ```
39
39
 
40
40
  Read only files returned with score > 0.5 (this threshold is printed in the search output).
@@ -12,7 +12,7 @@ description: Entry point for all Funifier skills — routes to the right skill f
12
12
  3. For general questions with no matching skill, run lexical search:
13
13
 
14
14
  ```bash
15
- npx tsx scripts/search-docs.ts "<user question>"
15
+ npx funifier-mcp search "<user question>"
16
16
  ```
17
17
 
18
18
  ## Available Skills