@opennous/mcp 0.22.0 → 0.23.0
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/package.json +1 -1
- package/src/server.js +12 -3
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -37,7 +37,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
37
37
|
import { z } from "zod";
|
|
38
38
|
import { get, post } from "./client.js";
|
|
39
39
|
|
|
40
|
-
export const SERVER_VERSION = "0.
|
|
40
|
+
export const SERVER_VERSION = "0.23.0";
|
|
41
41
|
|
|
42
42
|
// ─── helpers ──────────────────────────────────────────────────────────────────
|
|
43
43
|
|
|
@@ -521,6 +521,8 @@ export function createServer() {
|
|
|
521
521
|
|
|
522
522
|
const ws = s.workspace ?? {};
|
|
523
523
|
lines.push(`WORKSPACE: ${ws.name || "(unnamed)"}${ws.website ? ` · ${ws.website}` : ""}${ws.business_type ? ` · ${ws.business_type}` : ""}`);
|
|
524
|
+
const pl = s.plan ?? {};
|
|
525
|
+
lines.push(`PLAN: ${pl.name || pl.id || "free"}${pl.crm_sync === false ? " (CRM sync not included — do not offer it)" : ""}`);
|
|
524
526
|
lines.push("");
|
|
525
527
|
|
|
526
528
|
const mark = (b) => (b ? "✓" : "✗");
|
|
@@ -530,7 +532,11 @@ export function createServer() {
|
|
|
530
532
|
const ints = setup.integrations?.connected ?? [];
|
|
531
533
|
lines.push(` ${mark((setup.integrations?.count ?? 0) > 0)} Integrations (${setup.integrations?.count ?? 0})${ints.length ? `: ${ints.map((i) => i.name).join(", ")}` : ""}`);
|
|
532
534
|
const crm = setup.crm_sync ?? {};
|
|
533
|
-
|
|
535
|
+
if (crm.available === false) {
|
|
536
|
+
lines.push(` – CRM sync (not on the ${pl.name || pl.id || "current"} plan)`);
|
|
537
|
+
} else {
|
|
538
|
+
lines.push(` ${mark(crm.configured)} CRM sync${crm.configured ? `: ${(crm.providers ?? []).map((p) => p.provider).join(", ")}` : ""}${crm.pending_hygiene_proposals ? ` · ${crm.pending_hygiene_proposals} hygiene proposal(s) to review` : ""}`);
|
|
539
|
+
}
|
|
534
540
|
lines.push(` ${mark(setup.enrichment?.connected)} Enrichment${setup.enrichment?.provider ? `: ${setup.enrichment.provider}` : ""}`);
|
|
535
541
|
lines.push(` ${mark((setup.webhooks?.count ?? 0) > 0 || (setup.triggers?.count ?? 0) > 0)} Events — ${setup.webhooks?.count ?? 0} webhook(s), ${setup.triggers?.count ?? 0} trigger(s)`);
|
|
536
542
|
|
|
@@ -607,7 +613,10 @@ export function createServer() {
|
|
|
607
613
|
"update_gtm_profile, then call this to translate that context into a weighted set of scoring " +
|
|
608
614
|
"signals so accounts get scored for fit. If a model already exists it is left alone unless you " +
|
|
609
615
|
"pass force:true (use that when the GTM context has changed and the model should be rebuilt). If " +
|
|
610
|
-
"it reports no GTM context yet, record some with update_gtm_profile first, then call this again."
|
|
616
|
+
"it reports no GTM context yet, record some with update_gtm_profile first, then call this again. " +
|
|
617
|
+
"When building the playbook during onboarding, also ASK the user for a few closed-WON customer " +
|
|
618
|
+
"domains and closed-LOST domains — real outcomes sharpen the ICP. Record them with update_gtm_profile " +
|
|
619
|
+
"(e.g. section 'ICP': 'Closed-won: acme.com, globex.com; closed-lost: tinyco.io') so the model reflects who actually buys.",
|
|
611
620
|
{
|
|
612
621
|
force: z.boolean().optional()
|
|
613
622
|
.describe("Rebuild the model even if one already exists — use when the GTM context has changed."),
|