funifier-mcp 0.2.23 → 0.2.25

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 (56) hide show
  1. package/.cursor/rules/funifier.mdc +1 -0
  2. package/.github/copilot-instructions.md +1 -0
  3. package/AGENTS.md +1 -0
  4. package/datasource-funifier-docs/.search-index.json +5588 -4475
  5. package/datasource-funifier-docs/.skills-map.json +3 -1
  6. package/datasource-funifier-docs/knowledge/guides/trigger-examples.md +511 -0
  7. package/datasource-funifier-docs/knowledge/guides/triggers-guide.md +1 -1
  8. package/datasource-funifier-docs/knowledge/modules/action.md +96 -39
  9. package/datasource-funifier-docs/knowledge/modules/challenge.md +285 -48
  10. package/datasource-funifier-docs/knowledge/modules/leaderboard.md +173 -71
  11. package/datasource-funifier-docs/knowledge/modules/point.md +108 -37
  12. package/datasource-funifier-docs/knowledge/modules/trigger.md +1 -1
  13. package/dist/cli/init.d.ts +1 -1
  14. package/dist/cli/init.d.ts.map +1 -1
  15. package/dist/cli/init.js +11 -4
  16. package/dist/cli/init.js.map +1 -1
  17. package/dist/core/api-client.d.ts +9 -9
  18. package/dist/core/api-client.d.ts.map +1 -1
  19. package/dist/core/api-client.js +58 -52
  20. package/dist/core/api-client.js.map +1 -1
  21. package/dist/core/api-client.test.js +49 -0
  22. package/dist/core/api-client.test.js.map +1 -1
  23. package/dist/core/constants.d.ts +1 -0
  24. package/dist/core/constants.d.ts.map +1 -1
  25. package/dist/core/constants.js +1 -0
  26. package/dist/core/constants.js.map +1 -1
  27. package/dist/mcp/bundle.js +71 -70
  28. package/dist/mcp/index.js +2 -1
  29. package/dist/mcp/index.js.map +1 -1
  30. package/dist/mcp/tools/get.d.ts.map +1 -1
  31. package/dist/mcp/tools/get.js +22 -8
  32. package/dist/mcp/tools/get.js.map +1 -1
  33. package/dist/mcp/tools/list.d.ts.map +1 -1
  34. package/dist/mcp/tools/list.js +9 -2
  35. package/dist/mcp/tools/list.js.map +1 -1
  36. package/dist/mcp/tools/save.d.ts.map +1 -1
  37. package/dist/mcp/tools/save.js +93 -4
  38. package/dist/mcp/tools/save.js.map +1 -1
  39. package/dist/mcp/tools/save.test.js +42 -0
  40. package/dist/mcp/tools/save.test.js.map +1 -1
  41. package/package.json +3 -2
  42. package/skills/funifier-create-action/SKILL.md +58 -18
  43. package/skills/funifier-create-aggregate/SKILL.md +1 -0
  44. package/skills/funifier-create-challenge/SKILL.md +1 -0
  45. package/skills/funifier-create-custom-page/SKILL.md +1 -0
  46. package/skills/funifier-create-leaderboard/SKILL.md +90 -18
  47. package/skills/funifier-create-level/SKILL.md +1 -0
  48. package/skills/funifier-create-point/SKILL.md +60 -18
  49. package/skills/funifier-create-quiz/SKILL.md +1 -0
  50. package/skills/funifier-create-scheduler/SKILL.md +1 -0
  51. package/skills/funifier-create-trigger/SKILL.md +110 -19
  52. package/skills/funifier-create-virtual-good/SKILL.md +1 -0
  53. package/skills/funifier-debug/SKILL.md +2 -0
  54. package/skills/funifier-help/SKILL.md +1 -0
  55. package/skills/funifier-implement-frontend/SKILL.md +1 -0
  56. package/skills/funifier-index/SKILL.md +9 -1
@@ -86,6 +86,7 @@ Configure in `.mcp.json` — see `README.md`. Tools: `funifier_list` (always fil
86
86
 
87
87
  ## Rules
88
88
 
89
+ - **Before any `funifier_*` MCP tool call**, check the Skill Workflows table above — if a skill matches, read its `SKILL.md` first. Skills contain correct enum values, field references, and examples.
89
90
  - Search docs with `funifier-mcp search` before loading any file.
90
91
  - Groovy scripts in Funifier: no `import` statements, use `manager` object for all platform APIs.
91
92
  - Rebuild skills after doc changes: `npm run build:skills`.
@@ -77,6 +77,7 @@ See `README.md` for MCP configuration.
77
77
 
78
78
  ### Key rules
79
79
 
80
+ - **Before any `funifier_*` MCP tool call**, check the Skill Workflows table above — if a skill matches, follow it. Skills contain correct enum values, field references, and examples that prevent common errors.
80
81
  - Always search docs before reading them in full.
81
82
  - Never assume patterns from existing live resources — use `datasource-funifier-docs/` as source of truth.
82
83
  - Funifier server-side scripts run in **Groovy** (Java-compatible). No `import` statements — all classes are pre-loaded.
package/AGENTS.md CHANGED
@@ -91,6 +91,7 @@ To get detailed workflow guidance for any skill, read the corresponding `skills/
91
91
 
92
92
  ## Key Rules
93
93
 
94
+ - **Before any `funifier_*` MCP tool call**, check the Skill Routing table above — if a skill matches, follow it. Skills contain correct enum values, field references, and examples that prevent common errors.
94
95
  - **Search before reading**: always run `funifier-mcp search` first, then read only the top results.
95
96
  - **Never list all MCP resources** without a `search` parameter — always filter.
96
97
  - **Docs are authoritative for patterns**: never infer patterns from existing live resources.