jujugrowth-mcp 1.0.6 → 1.0.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/README.md +13 -0
- package/package.json +1 -1
- package/server.mjs +11 -1
package/README.md
CHANGED
|
@@ -55,4 +55,17 @@ A token can be scoped to one business; the server then announces itself as
|
|
|
55
55
|
`jujugrowth (yoursite.com)` and only ever touches that site. Generate scoped
|
|
56
56
|
tokens in jujugrowth → Settings → Developer (one per business/repo).
|
|
57
57
|
|
|
58
|
+
## Prompts to get started
|
|
59
|
+
|
|
60
|
+
Open your AI in your site's project and try:
|
|
61
|
+
|
|
62
|
+
- **See the work:** "List my jujugrowth recommendations and summarize each in one line."
|
|
63
|
+
- **Implement one:** "Get the full brief for the most impactful recommendation, verify it against the code, then implement it here — show me a diff before committing. Mark it handled when it's in."
|
|
64
|
+
- **Fresh analysis (Pro):** "Ask jujugrowth to run a fresh website analysis for this site, then list the new recommendations."
|
|
65
|
+
- **Hands-off:** "Pull my open jujugrowth recommendations, implement the website/SEO ones in this repo (skip GA4-console or business-judgment items — flag those for me), open a PR, and mark each handled with a note."
|
|
66
|
+
|
|
67
|
+
The server also tells your AI the workflow on connect (verify-before-changing,
|
|
68
|
+
scope guardrails, always mark handled), so it follows the loop without you
|
|
69
|
+
spelling it out each time.
|
|
70
|
+
|
|
58
71
|
Requires Node ≥ 22. Optional env `JUJUGROWTH_API` (defaults to https://jujugrowth.com).
|
package/package.json
CHANGED
package/server.mjs
CHANGED
|
@@ -68,7 +68,7 @@ const TOOLS = [
|
|
|
68
68
|
{
|
|
69
69
|
name: "get_recommendation",
|
|
70
70
|
description:
|
|
71
|
-
"Get the full implementable brief for one recommendation (title, body, and a ready-to-implement claude_prompt when present).
|
|
71
|
+
"Get the full implementable brief for one recommendation (title, body, and a ready-to-implement claude_prompt when present). Verify the brief's current-state claims against the actual code first (they can be stale), then implement in the user's repo scoped to wording/structure/SEO — never touch checkout, auth, or analytics events. After it's shipped, ALWAYS call mark_recommendation_handled with a note of what you changed.",
|
|
72
72
|
inputSchema: {
|
|
73
73
|
type: "object",
|
|
74
74
|
properties: { tenantId: { type: "string" }, recId: { type: "string" } },
|
|
@@ -138,6 +138,16 @@ async function handle(msg) {
|
|
|
138
138
|
name: SITE_LABEL ? `jujugrowth (${SITE_LABEL})` : "jujugrowth",
|
|
139
139
|
version: "1.0.0",
|
|
140
140
|
},
|
|
141
|
+
// Workflow the AI should follow unprompted (so the human never has to
|
|
142
|
+
// say "now mark it handled"). Surfaced to the model by MCP clients.
|
|
143
|
+
instructions:
|
|
144
|
+
`This server provides growth recommendations for ${SITE_LABEL ? `the site "${SITE_LABEL}"` : "the user's site(s)"} and connects them to your code work. Standard loop:\n` +
|
|
145
|
+
"1) list_recommendations.\n" +
|
|
146
|
+
"2) get_recommendation for one you'll act on.\n" +
|
|
147
|
+
"3) Before changing anything, VERIFY the brief's current-state claims against the actual code — they can be stale; skip what's already done.\n" +
|
|
148
|
+
"4) Implement in the user's repo, scoped to wording/structure/SEO. Never change checkout, auth, or analytics events. Show a diff / open a PR for the user to review.\n" +
|
|
149
|
+
"5) ALWAYS call mark_recommendation_handled with a short note of what you changed once it's shipped — don't wait to be told.\n" +
|
|
150
|
+
"Skip GA4-console toggles and business-judgment items — flag those for the user instead of editing code. This server is bound to ONE site; never act on another.",
|
|
141
151
|
},
|
|
142
152
|
});
|
|
143
153
|
}
|