@theronap/cortex-mcp 0.9.19 → 0.9.20
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/lib/server.mjs +4 -3
- package/package.json +1 -1
package/lib/server.mjs
CHANGED
|
@@ -626,10 +626,10 @@ export async function runServer(version) {
|
|
|
626
626
|
{
|
|
627
627
|
title: 'Author a wiki node (live, while it is hot)',
|
|
628
628
|
description:
|
|
629
|
-
'Write your CURRENT understanding of a project/person/org/you into the org wiki as a maintained page. Call `authoring_context` FIRST. Author from your own synthesis of the session — the compiled mental model, not a transcript dump: what it IS, where it stands, dated decisions, open threads, key people. Weave inline [[links]] to other nodes (canonical names from the namespace; red-links for wanted-but-absent nodes). The server re-authorizes the tier and resolves links. Use this continuously whenever your understanding of a node meaningfully advanced, and at session end (/log).',
|
|
629
|
+
'Write your CURRENT understanding of a project/person/org/you into the org wiki as a maintained page. Call `authoring_context` FIRST. Author from your own synthesis of the session — the compiled mental model, not a transcript dump: what it IS, where it stands, dated decisions, open threads, key people. Weave inline [[links]] to other nodes (canonical names from the namespace; red-links for wanted-but-absent nodes). The server re-authorizes the tier and resolves links. CREATES the node if it does not exist yet (project/person/org) — the conversation IS the evidence, so a brand-new entity that surfaced only in this session is authorable on the spot; you do NOT need prior records. Because such a node has nothing external to corroborate it, author it DELIBERATELY: only when you genuinely understand it is a real, distinct entity, and use its exact canonical name so it does not duplicate one already in the namespace (`user` nodes are never created). Use this continuously whenever your understanding of a node meaningfully advanced, and at session end (/log).',
|
|
630
630
|
inputSchema: {
|
|
631
631
|
kind: z.enum(['project', 'person', 'org', 'user']).describe('the node type'),
|
|
632
|
-
name: z.string().describe('the
|
|
632
|
+
name: z.string().describe('the canonical node name — an EXACT existing name from the namespace to update it, or a new name to create the node (project/person/org). e.g. "Cortex" or "Theron Peterson"'),
|
|
633
633
|
summary: z.string().describe('one-sentence summary of what this is and its current state (may contain [[links]])'),
|
|
634
634
|
sections: z.array(z.object({
|
|
635
635
|
heading: z.string().describe('e.g. Overview, Current state, Decisions, Open threads, People'),
|
|
@@ -658,7 +658,8 @@ export async function runServer(version) {
|
|
|
658
658
|
const blue = out?.links?.blue ?? 0
|
|
659
659
|
const red = out?.links?.red ?? 0
|
|
660
660
|
const redList = Array.isArray(out?.redLinks) && out.redLinks.length ? `\nRed-links (wanted nodes): ${out.redLinks.map((r) => `[[${r}]]`).join(', ')}` : ''
|
|
661
|
-
const
|
|
661
|
+
const verb = out?.created ? 'Created + authored' : 'Authored'
|
|
662
|
+
const note = out?.built ? `${verb} "${name}" (${out.built} tier${out.built === 1 ? '' : 's'}). Links: ${blue} resolved, ${red} red.${redList}`
|
|
662
663
|
: `No change to "${name}"${out?.skipped?.length ? ` (${out.skipped.join(', ')})` : ''}.`
|
|
663
664
|
return { content: [{ type: 'text', text: note }] }
|
|
664
665
|
},
|