keywordgraph-mcp-server 1.9.1 → 1.9.4
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 +15 -9
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +1 -0
- package/dist/config/brand.js.map +1 -1
- package/dist/config/models.d.ts +7 -0
- package/dist/config/models.d.ts.map +1 -0
- package/dist/config/models.js +26 -0
- package/dist/config/models.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/instructions.js +4 -4
- package/dist/resources/about.d.ts.map +1 -1
- package/dist/resources/about.js +3 -2
- package/dist/resources/about.js.map +1 -1
- package/dist/schemas/index.d.ts +106 -69
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +100 -190
- package/dist/schemas/index.js.map +1 -1
- package/dist/tools/analyzeLlmResults.d.ts +1 -1
- package/dist/tools/analyzeLlmResults.d.ts.map +1 -1
- package/dist/tools/analyzeLlmResults.js +2 -1
- package/dist/tools/analyzeLlmResults.js.map +1 -1
- package/dist/tools/createKnowledgeGraph.d.ts +5 -2
- package/dist/tools/createKnowledgeGraph.d.ts.map +1 -1
- package/dist/tools/createKnowledgeGraph.js +23 -5
- package/dist/tools/createKnowledgeGraph.js.map +1 -1
- package/dist/tools/developConceptualBridges.d.ts +1 -1
- package/dist/tools/developConceptualBridges.d.ts.map +1 -1
- package/dist/tools/developConceptualBridges.js +3 -2
- package/dist/tools/developConceptualBridges.js.map +1 -1
- package/dist/tools/developLatentTopics.d.ts +1 -1
- package/dist/tools/developLatentTopics.d.ts.map +1 -1
- package/dist/tools/developLatentTopics.js +3 -2
- package/dist/tools/developLatentTopics.js.map +1 -1
- package/dist/tools/developTextTool.d.ts +1 -1
- package/dist/tools/developTextTool.d.ts.map +1 -1
- package/dist/tools/developTextTool.js +7 -6
- package/dist/tools/developTextTool.js.map +1 -1
- package/dist/tools/generateKnowledgeGraph.d.ts +5 -2
- package/dist/tools/generateKnowledgeGraph.d.ts.map +1 -1
- package/dist/tools/generateKnowledgeGraph.js +21 -7
- package/dist/tools/generateKnowledgeGraph.js.map +1 -1
- package/dist/tools/generateOntologyGraph.d.ts +3 -3
- package/dist/tools/generateOntologyGraph.d.ts.map +1 -1
- package/dist/tools/generateOntologyGraph.js +9 -20
- package/dist/tools/generateOntologyGraph.js.map +1 -1
- package/dist/tools/generateResearchIdeas.d.ts +1 -1
- package/dist/tools/generateResearchIdeas.d.ts.map +1 -1
- package/dist/tools/generateResearchIdeas.js +3 -2
- package/dist/tools/generateResearchIdeas.js.map +1 -1
- package/dist/tools/generateResearchQuestions.d.ts +1 -1
- package/dist/tools/generateResearchQuestions.d.ts.map +1 -1
- package/dist/tools/generateResearchQuestions.js +3 -2
- package/dist/tools/generateResearchQuestions.js.map +1 -1
- package/dist/tools/generateResponses.d.ts +1 -1
- package/dist/tools/generateResponses.d.ts.map +1 -1
- package/dist/tools/generateResponses.js +3 -2
- package/dist/tools/generateResponses.js.map +1 -1
- package/dist/tools/getGraphAroundTerm.d.ts +32 -0
- package/dist/tools/getGraphAroundTerm.d.ts.map +1 -0
- package/dist/tools/getGraphAroundTerm.js +69 -0
- package/dist/tools/getGraphAroundTerm.js.map +1 -0
- package/dist/tools/getNodeNeighborhood.d.ts.map +1 -1
- package/dist/tools/getNodeNeighborhood.js +4 -2
- package/dist/tools/getNodeNeighborhood.js.map +1 -1
- package/dist/tools/getTermGraph.d.ts +32 -0
- package/dist/tools/getTermGraph.d.ts.map +1 -0
- package/dist/tools/getTermGraph.js +69 -0
- package/dist/tools/getTermGraph.js.map +1 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/optimizeKnowledgeBase.d.ts +1 -1
- package/dist/tools/optimizeKnowledgeBase.d.ts.map +1 -1
- package/dist/tools/optimizeKnowledgeBase.js +2 -1
- package/dist/tools/optimizeKnowledgeBase.js.map +1 -1
- package/dist/tools/optimizeReasoning.d.ts +1 -1
- package/dist/tools/optimizeReasoning.d.ts.map +1 -1
- package/dist/tools/optimizeReasoning.js +2 -1
- package/dist/tools/optimizeReasoning.js.map +1 -1
- package/dist/tools/optimizeTextStructure.d.ts +1 -1
- package/dist/tools/optimizeTextStructure.d.ts.map +1 -1
- package/dist/tools/optimizeTextStructure.js +3 -2
- package/dist/tools/optimizeTextStructure.js.map +1 -1
- package/dist/tools/searchGraphs.d.ts.map +1 -1
- package/dist/tools/searchGraphs.js +2 -1
- package/dist/tools/searchGraphs.js.map +1 -1
- package/dist/utils/aiKnowledgeGraph.d.ts +45 -0
- package/dist/utils/aiKnowledgeGraph.d.ts.map +1 -0
- package/dist/utils/aiKnowledgeGraph.js +77 -0
- package/dist/utils/aiKnowledgeGraph.js.map +1 -0
- package/dist/utils/chunkByLines.d.ts +3 -0
- package/dist/utils/chunkByLines.d.ts.map +1 -0
- package/dist/utils/chunkByLines.js +19 -0
- package/dist/utils/chunkByLines.js.map +1 -0
- package/dist/utils/wikilinksMode.d.ts +9 -0
- package/dist/utils/wikilinksMode.d.ts.map +1 -1
- package/dist/utils/wikilinksMode.js +6 -4
- package/dist/utils/wikilinksMode.js.map +1 -1
- package/llms-full.infranodus.txt +9 -6
- package/llms-full.keywordgraph.txt +9 -6
- package/llms-full.txt +9 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -123,13 +123,13 @@ InfraNodus MCP Server enables LLM workflows and AI assistants to analyze text us
|
|
|
123
123
|
- Use AI to generate a reasoning ontology graph (entities and the relations between them) from one of three sources: a `prompt` (a topic — e.g. "build an ontology on AI attention mechanisms"), a `text` (a long document or a structural digest of a project, chunked server-side), or a `sourceGraphName` (an existing graph — e.g. a fully ingested repo or corpus — whose statements are read back, chunked, and condensed into an ontology)
|
|
124
124
|
- `ontologyMode: 'codebase'` frames the extraction around modules, functions, data stores, services, and the concepts they implement; `ontologyMode: 'procedural'` writes a **digest** instead — prose statements on how the project works with `[[wikilinks]]`, each typed as `[principles]`, `[rules]`, `[procedures]`, `[handoffs]`, `[main_ideas]` or `[gaps]` (saved as the statement's category), from an already-uploaded docs/structure graph; save it as `repo-<project>-digest` for `optimize_knowledge_base`; `chunkSize` (default 12000 chars) controls granularity; every chunk appends to the same graph and the response reports `chunksProcessed` / `chunksTotal`
|
|
125
125
|
- Saved as a persistent InfraNodus graph by default and a link is returned; set `saveGraph: false` if the user asks not to save, or when you only need a one-off AI ontology overview of a topic for the current context that won't be reused later (the generated statements are returned directly without persisting)
|
|
126
|
-
- `modelToUse` defaults to `claude-opus-5` for richer ontologies (also `claude-fable-5`, `gpt-
|
|
126
|
+
- `modelToUse` defaults to `claude-opus-5-5` for richer ontologies (also `claude-fable-5-1`, `gpt-6.1-terra`); pick `-mini`/`-lite` variants (or `gpt-4o-mini`) for faster, cheaper generation
|
|
127
127
|
- Returns the compact graph structure (`knowledgeGraph`) and analytics (main topical clusters, content gaps, top influential nodes, top relations, statistics) by default. Set `includeGraph: false` to save context space when only the ontology statements or insights are needed. Set `includeAnalytics: false` if you just need the raw ontology without graph-derived insights — keep it on whenever you want to understand the structure, gaps, or key concepts
|
|
128
128
|
|
|
129
129
|
18. **analyze_llm_results**
|
|
130
130
|
- Ask an LLM to describe a topic and turn its response into a knowledge graph that reveals how the model frames it — main concepts, clusters, content gaps, and the relations between them
|
|
131
131
|
- Use it to probe model bias, surface the implicit structure of an LLM's view on a subject, or compare how different models describe the same topic
|
|
132
|
-
- `modelToUse` defaults to `claude-opus-5`; pick the model you actually want to study
|
|
132
|
+
- `modelToUse` defaults to `claude-opus-5-5`; pick the model you actually want to study
|
|
133
133
|
- `modifyAnalyzedText` controls how the LLM output is parsed: `'detectEntities'` (default — mixed entities + words), `'extractEntitiesOnly'` (entity-only graph), or `'none'` (plain co-occurrence)
|
|
134
134
|
- Saves the graph by default; set `saveGraph: false` for a one-off probe. Returns analytics by default and omits the raw graph (`includeGraph: false`) to keep responses compact — enable `includeGraph` when you also need nodes/edges
|
|
135
135
|
|
|
@@ -203,36 +203,41 @@ InfraNodus MCP Server enables LLM workflows and AI assistants to analyze text us
|
|
|
203
203
|
- Fetch a specific search result for a graph
|
|
204
204
|
- Can be used in ChatGPT Deep Research mode via Developer Mode > Connectors
|
|
205
205
|
|
|
206
|
-
33. **
|
|
206
|
+
33. **get_graph_around_term**
|
|
207
|
+
- The graph around a term across your graphs: every statement that contains the term — or all of several terms (`matchAll`, the default) or any of them — in all your graphs or the named ones, built into one graph with the terms themselves left out, so the topics, gaps and relations describe the context the terms sit in (the app's search view with the searched term hidden)
|
|
208
|
+
- Returns which graphs the statements came from with a count each, the statistics, topical clusters, content gaps, main concepts and top relations, the compact graph (`includeGraph`, on by default) and the statements with their graph of origin (`includeStatements`, off by default); `removeTerms: false` keeps the terms in
|
|
209
|
+
- Your own graphs only; `search` says where a term occurs, `get_node_neighborhood` walks one graph from one concept
|
|
210
|
+
|
|
211
|
+
34. **list_graphs**
|
|
207
212
|
- List the graphs (contexts) in your InfraNodus account, with optional filters by name, type, date, language, or favorite status
|
|
208
213
|
- Use it to discover which graphs exist before analyzing them with `analyze_existing_graph_by_name`, searching them, or writing to them
|
|
209
214
|
|
|
210
|
-
|
|
215
|
+
35. **enable_project_learnings**
|
|
211
216
|
- Create the opt-in, per-project, append-only learnings graph (`learn-<project>`) in your account — the place where the assistant saves what it learned about operating in a project
|
|
212
217
|
- Called only when you explicitly ask to start saving learnings for a project; idempotent, so calling it again just returns the existing graph
|
|
213
218
|
- The assistant tells you first what will be stored (project knowledge only, never anything about you), where (a private graph you can delete at any time), and that batches are shown before saving
|
|
214
219
|
|
|
215
|
-
|
|
220
|
+
36. **add_project_learnings**
|
|
216
221
|
- Save learnings about a project — where things live, traps, conventions, decisions, workflows, and a self-assessment of what worked well and what should be done differently next time — as statements with a `type` category each, for later sessions on any client
|
|
217
222
|
- Refuses (without error) when the project has not been enabled and never creates the graph itself
|
|
218
223
|
- Dry run by default: returns what would be written, marking near-duplicates as `reinforced`; writes only with `confirm: true` — or in the same call when your client supports MCP elicitation and you approve the form
|
|
219
224
|
- Rejects statements with secret-like content server-side (indices only, never the content)
|
|
220
225
|
|
|
221
|
-
|
|
226
|
+
37. **get_project_learnings**
|
|
222
227
|
- Retrieve learnings for a project: by `prompt` (GraphRAG — most relevant statements plus an overview of what is known), by `entity` (a file path, module, or concept), or a structural overview with neither
|
|
223
228
|
- Call with no `project` to list the projects that have learnings in your account
|
|
224
229
|
- Returns `enabled: false` with an empty list when a project has no learnings graph — not an error
|
|
225
230
|
|
|
226
231
|
_Also available as the `save-learnings` prompt in clients that expose MCP prompts. Set `INFRANODUS_LEARNINGS=0` to remove these three tools from the server entirely (see [Project learnings](#project-learnings))._
|
|
227
232
|
|
|
228
|
-
|
|
233
|
+
38. **optimize_knowledge_base**
|
|
229
234
|
- Structural feedback on a whole code base, document vault, or body of procedural knowledge (rules, frameworks, principles) from its digest graph (`repo-<project>-digest` / `vault-<project>-digest`) — or from a digest you write and pass as text, saved with `saveAs`
|
|
230
235
|
- Diagnoses the structure (biased / focused / diversified / dispersed) and reads it for the chosen `focus` (`codebase`, `vault`, `procedural`, `general`): what dominates, which areas are under-developed (with latent-topic ideas), which clusters never connect — missing integrations, missing bridge notes, missing hand-offs between frameworks — plus AI suggestions for what to develop next
|
|
231
236
|
- `compareWith` up to two other layers of the same project (e.g. digest vs structure map, docs vs code) and get what each has that the other lacks: rules without code, code without documentation, features described but not built
|
|
232
237
|
- Two ways to get the digest: the assistant reads the project and writes it (the infranodus skill's **digest** build mode, or `text` + `saveAs` here), or `generate_ontology_graph` with `ontologyMode: 'procedural'` writes it server-side from an uploaded docs/structure graph
|
|
233
238
|
- Pairs with the infranodus skill's build modes: full ingestion, digest, structure map, ontology
|
|
234
239
|
|
|
235
|
-
|
|
240
|
+
39. **submit_workflow_feedback**
|
|
236
241
|
- Internal telemetry: after a workflow of InfraNodus calls, the assistant reports what it actually did with the output — how much it used, whether it contained anything new, whether it was the right tool, how many calls it took, concrete defects — as observations rather than a score; a rating is derived from them server-side
|
|
237
242
|
- Autonomous: it never asks you anything and never surfaces in the conversation
|
|
238
243
|
- The report contains short paraphrases of what you were working on (capped at 200 characters), the same policy as the prompts InfraNodus already logs; `MCPCAT_ANONYMOUS=1` skips the per-user log entirely
|
|
@@ -616,7 +621,8 @@ Analyzes text and generates a knowledge graph.
|
|
|
616
621
|
- `categoriesAsNodes` (boolean, default false): Show category labels as `[[label]]` nodes. Only for large knowledge bases and Obsidian vaults where the connections between pages matter; otherwise the labels stay metadata
|
|
617
622
|
- `wikilinksMode` (string): How `[[wikilinks]]` become nodes — "default", "wikilinksOnly", "obsidianStyle", "parentAndConcepts", or "plainText"
|
|
618
623
|
- `includeStatements` (boolean): Include original statements in response
|
|
619
|
-
- `modifyAnalyzedText` (string):
|
|
624
|
+
- `modifyAnalyzedText` (string): How nodes are made — "none" (words), "detectEntities" (an algorithm marks names, mixed with words), "extractEntitiesOnly" (only the names an algorithm finds; for plain text without `[[wikilinks]]`), or "aiKnowledgeGraph" (an AI model writes `[[entity]]` statements about a topic or a text, and only those entities become nodes; slower, uses AI credits). Text already written as `[[entity]]` statements goes in with `wikilinksMode: "wikilinksOnly"`
|
|
625
|
+
- `modelToUse` (string), `instructions` (string): Only with "aiKnowledgeGraph" — the AI model, and the user's own instructions (which entities, scope); they cannot change the output format
|
|
620
626
|
|
|
621
627
|
### analyze_existing_graph_by_name
|
|
622
628
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../src/config/brand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,OAAO,GAAG,YAAY,GAAG,cAAc,CAAC;AAEpD,MAAM,WAAW,QAAQ;IACxB,EAAE,EAAE,OAAO,CAAC;IACZ,4EAA4E;IAC5E,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,MAAM,EAAE,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Y,IAAI,MAAM,CAErC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAQpC;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnD"}
|
package/dist/config/brand.js
CHANGED
|
@@ -56,6 +56,7 @@ const BRANDS = {
|
|
|
56
56
|
"generate_contextual_hint",
|
|
57
57
|
"retrieve_from_knowledge_base",
|
|
58
58
|
"get_node_neighborhood",
|
|
59
|
+
"get_graph_around_term",
|
|
59
60
|
// Project learnings are for people operating in repos/projects,
|
|
60
61
|
// not the SEO/keyword audience.
|
|
61
62
|
"enable_project_learnings",
|
package/dist/config/brand.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/config/brand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAsCH,MAAM,MAAM,GAA8B;IACzC,UAAU,EAAE;QACX,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,gBAAgB;QACxB,OAAO,EAAE,+BAA+B;QACxC,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,uBAAuB;QACnC,aAAa,EAAE,EAAE;QACjB,GAAG,EAAE;YACJ,WAAW,EAAE,uBAAuB;YACpC,OAAO,EAAE,uBAAuB;YAChC,WAAW,EACV,iGAAiG;YAClG,UAAU,EAAE,yDAAyD;YACrE,QAAQ,EAAE;gBACT,KAAK;gBACL,wBAAwB;gBACxB,YAAY;gBACZ,iBAAiB;gBACjB,kBAAkB;aAClB;SACD;KACD;IACD,YAAY,EAAE;QACb,EAAE,EAAE,cAAc;QAClB,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EAAE,iCAAiC;QAC1C,SAAS,EAAE,cAAc;QACzB,UAAU,EAAE,yBAAyB;QACrC,kEAAkE;QAClE,yEAAyE;QACzE,aAAa,EAAE;YACd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,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,WAAW,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC;AACpE,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,WAAW;IAC1B,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC;IAChD,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAE9B,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC;IAChD,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAEtD,OAAO,KAAK,CAAC,EAAE,CAAC;AACjB,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,aAAa,CAAC,IAAY;IACzC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const AI_MODELS: readonly ["claude-opus-5-5", "claude-sonnet-5-5", "claude-fable-5-1", "gpt-6.1-terra", "gpt-6.1-sol", "gpt-5.6-terra", "gpt-5.6-sol", "gpt-5.4", "gpt-5.4-mini", "gpt-4o", "gpt-4o-mini", "gemini-4-argon", "gemini-3.8-flash", "gemini-3.5-flash-lite", "grok-4.7", "grok-4.20-0309-non-reasoning"];
|
|
2
|
+
/** Default for the tools that write text: questions, ideas, suggestions. */
|
|
3
|
+
export declare const DEFAULT_AI_MODEL = "gpt-6.1-terra";
|
|
4
|
+
/** Default for the tools that generate graph statements (ontology, AI
|
|
5
|
+
* knowledge graph) or probe a model's view (analyze_llm_results). */
|
|
6
|
+
export declare const DEFAULT_GRAPH_MODEL = "claude-opus-5-5";
|
|
7
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/config/models.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,sSAiBZ,CAAC;AAEX,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAEhD;qEACqE;AACrE,eAAO,MAAM,mBAAmB,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// The models the app offers (infranodus-app MODEL_GROUPS, resolved in
|
|
2
|
+
// lib/ai.js), without the legacy gpt-4 and gpt-3.5-turbo.
|
|
3
|
+
export const AI_MODELS = [
|
|
4
|
+
"claude-opus-5-5",
|
|
5
|
+
"claude-sonnet-5-5",
|
|
6
|
+
"claude-fable-5-1",
|
|
7
|
+
"gpt-6.1-terra",
|
|
8
|
+
"gpt-6.1-sol",
|
|
9
|
+
"gpt-5.6-terra",
|
|
10
|
+
"gpt-5.6-sol",
|
|
11
|
+
"gpt-5.4",
|
|
12
|
+
"gpt-5.4-mini",
|
|
13
|
+
"gpt-4o",
|
|
14
|
+
"gpt-4o-mini",
|
|
15
|
+
"gemini-4-argon",
|
|
16
|
+
"gemini-3.8-flash",
|
|
17
|
+
"gemini-3.5-flash-lite",
|
|
18
|
+
"grok-4.7",
|
|
19
|
+
"grok-4.20-0309-non-reasoning",
|
|
20
|
+
];
|
|
21
|
+
/** Default for the tools that write text: questions, ideas, suggestions. */
|
|
22
|
+
export const DEFAULT_AI_MODEL = "gpt-6.1-terra";
|
|
23
|
+
/** Default for the tools that generate graph statements (ontology, AI
|
|
24
|
+
* knowledge graph) or probe a model's view (analyze_llm_results). */
|
|
25
|
+
export const DEFAULT_GRAPH_MODEL = "claude-opus-5-5";
|
|
26
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/config/models.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,0DAA0D;AAC1D,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,iBAAiB;IACjB,mBAAmB;IACnB,kBAAkB;IAClB,eAAe;IACf,aAAa;IACb,eAAe;IACf,aAAa;IACb,SAAS;IACT,cAAc;IACd,QAAQ;IACR,aAAa;IACb,gBAAgB;IAChB,kBAAkB;IAClB,uBAAuB;IACvB,UAAU;IACV,8BAA8B;CACrB,CAAC;AAEX,4EAA4E;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAEhD;qEACqE;AACrE,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAc,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAc,MAAM,mBAAmB,CAAC;AAyE7D,OAAO,EAAE,YAAY,EAAE,CAAC;AAwBxB,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACpC,MAAM,EACN,OAAmB,GACnB,EAAE;IACF,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;IACrC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC/B;;;;;;;;;;;;;;;;;;;;;;GAiPA"}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
2
2
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
3
|
import { configSchema, serverInfo } from "./config/index.js";
|
|
4
4
|
import { brand, brandApiKey, brandApiBase, isToolEnabled, } from "./config/brand.js";
|
|
5
|
-
import { generateKnowledgeGraphTool, createKnowledgeGraphTool, generateOntologyGraphTool, analyzeLlmResultsTool, addMemoryTool, getMemoryTool, enableMemoryTool, analyzeExistingGraphTool, analyzeTextTool, analyzeTextSignatureTool, generateContentGapsTool, generateTopicalClustersTool, generateResearchQuestionsTool, generateResearchIdeasTool, generateResponsesFromGraphTool, generateContextualHintTool, retrieveContextForPromptFromGraphTool, getNodeNeighborhoodTool, developConceptualBridgesTool, developLatentTopicsTool, optimizeTextStructureTool, optimizeReasoningTool, listGraphsTool, searchExistingGraphsTool, searchExistingGraphsFetchTool, generateOverlapGraphFromTextsTool, generateMergedGraphFromTextsTool, generateDifferenceGraphFromTextsTool, generateGoogleSearchResultsGraphTool, generateYoutubeSearchResultsGraphTool, generateGoogleSearchQueriesGraphTool, generateGoogleResultsVsQueriesGraphTool, generateSEOGraphTool, developTextTool, enableProjectLearningsTool, addProjectLearningsTool, getProjectLearningsTool, submitWorkflowFeedbackTool, optimizeKnowledgeBaseTool, deleteStatementsTool, updateStatementsTool, deleteGraphTool, } from "./tools/index.js";
|
|
5
|
+
import { generateKnowledgeGraphTool, createKnowledgeGraphTool, generateOntologyGraphTool, analyzeLlmResultsTool, addMemoryTool, getMemoryTool, enableMemoryTool, analyzeExistingGraphTool, analyzeTextTool, analyzeTextSignatureTool, generateContentGapsTool, generateTopicalClustersTool, generateResearchQuestionsTool, generateResearchIdeasTool, generateResponsesFromGraphTool, generateContextualHintTool, retrieveContextForPromptFromGraphTool, getNodeNeighborhoodTool, getGraphAroundTermTool, developConceptualBridgesTool, developLatentTopicsTool, optimizeTextStructureTool, optimizeReasoningTool, listGraphsTool, searchExistingGraphsTool, searchExistingGraphsFetchTool, generateOverlapGraphFromTextsTool, generateMergedGraphFromTextsTool, generateDifferenceGraphFromTextsTool, generateGoogleSearchResultsGraphTool, generateYoutubeSearchResultsGraphTool, generateGoogleSearchQueriesGraphTool, generateGoogleResultsVsQueriesGraphTool, generateSEOGraphTool, developTextTool, enableProjectLearningsTool, addProjectLearningsTool, getProjectLearningsTool, submitWorkflowFeedbackTool, optimizeKnowledgeBaseTool, deleteStatementsTool, updateStatementsTool, deleteGraphTool, } from "./tools/index.js";
|
|
6
6
|
import { aboutResource } from "./resources/about.js";
|
|
7
7
|
import { llmsTxtResource, llmsFullTxtResource } from "./resources/llms-txt.js";
|
|
8
8
|
import { prompts } from "./prompts/index.js";
|
|
@@ -130,6 +130,7 @@ export default function createServer({ config, variant = "default", }) {
|
|
|
130
130
|
generateContextualHintTool,
|
|
131
131
|
retrieveContextForPromptFromGraphTool,
|
|
132
132
|
getNodeNeighborhoodTool,
|
|
133
|
+
getGraphAroundTermTool,
|
|
133
134
|
developConceptualBridgesTool,
|
|
134
135
|
developLatentTopicsTool,
|
|
135
136
|
optimizeTextStructureTool,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EACN,KAAK,EACL,WAAW,EACX,YAAY,EACZ,aAAa,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACN,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,8BAA8B,EAC9B,0BAA0B,EAC1B,qCAAqC,EACrC,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,cAAc,EACd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,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QAChC,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC;QACJ,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAChC,uEAAuE;IACxE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;QACrD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC;AACF,CAAC;AAED,oEAAoE;AACpE,wEAAwE;AACxE,oDAAoD;AACpD,IACC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,EACpC,CAAC;IACF,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACtB,OAAO,CAAC,KAAK,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;QACzD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/instructions.js
CHANGED
|
@@ -15,22 +15,22 @@ export const serverInstructions = `${brand.name} MCP server for knowledge graph
|
|
|
15
15
|
|
|
16
16
|
INPUT TYPES: All analysis tools accept text (string), url (webpage or YouTube video URL — automatically transcribed), or graphName (existing ${brand.name} graph). Provide exactly one input type per call. Every tool that takes text also takes statements (array of short discrete statements — notes, records, memory items, relations) with two optional parallel arrays: categories (metadata labels stored on that statement for filtering, grouping, and later delete/update by label; they become [[label]] nodes only with categoriesAsNodes: true, which is meant for large knowledge bases and Obsidian vaults where the connections between pages are the point) and timestamps (ISO 8601 dates for time filters and dynamic graphs). Use text/url for prose and long documents. The comparison tools take the same fields per item of their contexts array, where metadata applies only if every context uses statements.
|
|
17
17
|
|
|
18
|
-
ENTITY DETECTION MODES: Use modifyAnalyzedText parameter — 'none' (default, word co-occurrence graph), 'detectEntities' (
|
|
18
|
+
ENTITY DETECTION MODES: Use modifyAnalyzedText parameter — 'none' (default, word co-occurrence graph), 'detectEntities' (an algorithm marks names as entities, mixed with words), 'extractEntitiesOnly' (an algorithm finds names and only they become nodes; for plain text without [[wikilinks]]). For a knowledge graph of a topic or a text, use 'aiKnowledgeGraph' on generate_knowledge_graph or create_knowledge_graph: an AI model writes [[entity]] statements and only those entities become nodes (slower, uses AI credits, optional instructions). Text you have already written as [[entity]] statements goes in with wikilinksMode: 'wikilinksOnly', never with entity detection on top.
|
|
19
19
|
|
|
20
20
|
WORKFLOW PATTERNS:
|
|
21
|
-
1. Quick structural overview: generate_knowledge_graph or generate_topical_clusters → get main topics, clusters, gaps.
|
|
21
|
+
1. Quick structural overview: generate_knowledge_graph or generate_topical_clusters → get main topics, clusters, gaps; then get_node_neighborhood for every follow-up about one node of that graph (keep it at hand together with the overview tools).
|
|
22
22
|
2. Deep text development: develop_text_tool (combines optimize + latent topics + conceptual bridges in one call with progress tracking).
|
|
23
23
|
3. Research ideation: generate_content_gaps → generate_research_questions or generate_research_ideas. Use useSeveralGaps for diversity, gapDepth for less prominent gaps.
|
|
24
24
|
4. Text optimization: optimize_text_structure (auto-detects bias/focus/dispersion and suggests appropriate development). For the model's own reasoning or chat with the user, use optimize_reasoning (same analysis applied to the reasoning trace/conversation, steering it toward optimal diversity and coherence).
|
|
25
25
|
5. Outside-the-box thinking: develop_conceptual_bridges (connects discourse to broader context) or set shouldTranscend/transcendDiscourse: true.
|
|
26
|
-
6. RAG augmentation: generate_contextual_hint (lightweight structural summary) or retrieve_from_knowledge_base with includeGraphSummary (GraphRAG retrieval; hops: 2 adds statements linked through an intermediate concept). "
|
|
26
|
+
6. RAG augmentation: generate_contextual_hint (lightweight structural summary) or retrieve_from_knowledge_base with includeGraphSummary (GraphRAG retrieval; hops: 2 adds statements linked through an intermediate concept). Any question about one node — "what is X connected to / related to / linked to?", "what are X's neighbors?", "what does X depend on or lead to?" — is get_node_neighborhood (neighbors by hop distance with the statements on those links; no need to download the full graph and walk it), even when the graph's statements are already in context from an earlier call: the walk is authoritative, reading co-occurrence out of a statement list is not. The graph around a term across graphs (all of them or the named ones) with the term itself left out — the app's search view with the term hidden: get_graph_around_term; search only tells which graphs mention it.
|
|
27
27
|
7. Comparing texts: overlap_between_texts (similarities), difference_between_texts (what's missing in first text), merged_graph_from_texts (combined overview).
|
|
28
28
|
8. SEO/content optimization: generate_seo_report (comprehensive, ~90s timeout needed) or run analyze_google_search_results → analyze_related_search_queries → search_queries_vs_search_results individually.
|
|
29
29
|
9. Memory: "remember / save to memory" means memory_add_relations, "recall / check memory" means memory_get_relations, "optimize / find gaps in memory" means optimize_knowledge_base. Use [[wikilinks]] for entity marking. Three kinds: project learnings (how to work in a project: the *_project_learnings tools), topic memory (facts about an outside subject, client or case: scope 'topic' + topic) and personal memory (the user's own preferences and setup: scope 'personal'); scoped memory must be enabled once with enable_memory, on the user's request only. A plain graphName still saves to that graph immediately. Personal facts never go into learnings; never substitute one kind for another.
|
|
30
30
|
10. Graph management: list_graphs to discover existing graphs, search + fetch for content retrieval, delete_statements to remove statements from the user's own graph by filter, update_statements to edit them in place, and delete_graph to remove a whole graph (see DELETION AND EDITING below).
|
|
31
31
|
11. Optimizing a code base, document vault, or set of rules/frameworks: optimize_knowledge_base on the project's digest graph (repo-<project>-digest / vault-<project>-digest — an LLM-written digest of how it works) with focus set to codebase, vault, or procedural — structural state, what dominates, what is under-developed, which clusters never connect; compareWith other layers (structure, docs, links) to find rules without code, code without docs, features described but not built. No digest yet: if you can read the files, write it (100–300 one-line statements on how it works, [[wikilinks]] on modules/concepts/files, '## [[Topic]]' headings) and pass it as text with saveAs; if the content is already a graph, generate_ontology_graph with ontologyMode 'procedural' and sourceGraphName, saved as the digest name, then optimize_knowledge_base on it.
|
|
32
32
|
|
|
33
|
-
AI MODELS: Tools that generate AI responses accept modelToUse parameter. Available:
|
|
33
|
+
AI MODELS: Tools that generate AI responses accept modelToUse parameter. Available: claude-opus-5-5 (default of the graph-generating tools), claude-sonnet-5-5, claude-fable-5-1, gpt-6.1-terra (default of the text-writing tools), gpt-6.1-sol, gpt-5.6-terra, gpt-5.6-sol, gpt-5.4, gpt-5.4-mini, gpt-4o, gpt-4o-mini, gemini-4-argon, gemini-3.8-flash, gemini-3.5-flash-lite, grok-4.7, grok-4.20-0309-non-reasoning. No additional API keys needed.
|
|
34
34
|
|
|
35
35
|
PROJECT LEARNINGS: When operating inside a named project (a repo, folder, or vault), call get_project_learnings with the task as prompt at the start of a substantive task; if it returns enabled: false, carry on and do not suggest enabling unless the user asks about learnings. At the end of a substantive task (multi-step, involved discovery, corrections, or a non-obvious fix), reflect: what was not derivable from the code, would have saved time, survived verification, is about the project (never the user), and ideally connects things not obviously connected — plus a self-assessment: what approach worked well here and what should be done differently next time (type 'approach'). If learnings are enabled, propose them with add_project_learnings (dry run), show them to the user, and write with confirm: true only on their agreement — unless they said not to ask. Zero learnings is normal. Never call enable_project_learnings without an explicit request.
|
|
36
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"about.d.ts","sourceRoot":"","sources":["../../src/resources/about.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"about.d.ts","sourceRoot":"","sources":["../../src/resources/about.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAyEzB,CAAC"}
|
package/dist/resources/about.js
CHANGED
|
@@ -29,7 +29,7 @@ Available Tools:
|
|
|
29
29
|
9. overlap_between_texts - Create knowledge graphs from two or more texts and find the overlap (similarities) between them
|
|
30
30
|
10. merged_graph_from_texts - Build a graph of all the texts, URLs, and existing graphs provided, providing topical clusters and gaps present in the merged graph generated from all the texts
|
|
31
31
|
11. difference_between_texts - Create knowledge graphs from two or more text and find what's not present in the first graph that's present in the others
|
|
32
|
-
12. analyze_llm_results - Ask an LLM to describe a topic and turn its answer into a knowledge graph that reveals how the model frames it (main concepts, clusters, content gaps, relations). Useful for probing model bias or comparing how different models describe the same topic. Default model: claude-opus-5. Saves by default; returns analytics by default and omits raw graph (includeGraph: false) to keep responses compact
|
|
32
|
+
12. analyze_llm_results - Ask an LLM to describe a topic and turn its answer into a knowledge graph that reveals how the model frames it (main concepts, clusters, content gaps, relations). Useful for probing model bias or comparing how different models describe the same topic. Default model: claude-opus-5-5. Saves by default; returns analytics by default and omits raw graph (includeGraph: false) to keep responses compact
|
|
33
33
|
13. analyze_google_search_results - Generate a Google search results graph from search queries
|
|
34
34
|
14. analyze_youtube_results - Generate a knowledge graph from YouTube results (search results, a channel's or playlist's videos, video comments, or transcribed subtitles) to reveal main topics, clusters, and content gaps
|
|
35
35
|
15. analyze_related_search_queries - Generate a graph of search requests related to search queries provided
|
|
@@ -46,7 +46,8 @@ Available Tools:
|
|
|
46
46
|
26. delete_statements - Delete statements from a graph in the user's own account by one filter (categories = everything from one source, statements, query, before/after, deleteAll, or statementIds); dry run by default, irreversible only with confirm: true or an accepted elicitation form; the per-source replace and in-place rebuild path together with create_knowledge_graph. Never called on the assistant's own initiative
|
|
47
47
|
27. update_statements - Edit statements of a graph in the user's own account in place (content, categories, timestamp) keeping their id, date, and position: edits (specific statements by exact current text or id) or one selector with set/replace (bulk relabelling, find-and-replace such as renaming a [[concept]] or a source path); dry run showing before → after by default, irreversible only with confirm: true or an accepted elicitation form. Never called on the assistant's own initiative
|
|
48
48
|
28. delete_graph - Delete one graph from the user's own account entirely (statements, revisions, settings, URL); dry run by default, irreversible only with confirm: true or an accepted elicitation form. delete_statements with deleteAll is the alternative that keeps the graph. Never called on the assistant's own initiative
|
|
49
|
-
29. get_node_neighborhood - What one concept is connected to in a saved graph, by hop distance (1–3): its stats, neighbors nearest and strongest first with the node each was reached through, and the statements on those links; similar node names when the concept isn't found
|
|
49
|
+
29. get_node_neighborhood - What one concept is connected to, related to, or linked to in a saved graph, by hop distance (1–3): its stats, neighbors nearest and strongest first with the node each was reached through, and the statements on those links; similar node names when the concept isn't found. The answer to any question about one node, even when the graph's statements are already in context
|
|
50
|
+
30. get_graph_around_term - The graph around a term across the user's graphs (all or named): the statements containing the term (all of several terms with matchAll, the default, or any of them) built into one graph with the terms left out, with its statistics, topics, gaps, relations, the compact graph and, on request, the statements with their graph of origin
|
|
50
51
|
|
|
51
52
|
Key Features:
|
|
52
53
|
- Topic modeling and clustering
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"about.js","sourceRoot":"","sources":["../../src/resources/about.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,cAAc;IACnB,UAAU,EAAE;QACX,IAAI,EAAE,SAAS,KAAK,CAAC,IAAI,aAAa;QACtC,WAAW,EAAE,GAAG,KAAK,CAAC,IAAI,uGAAuG,KAAK,CAAC,IAAI,wFAAwF,KAAK,CAAC,IAAI,0PAA0P;QACve,QAAQ,EAAE,YAAY;KACtB;IACD,OAAO,EAAE,KAAK,IAAI,EAAE;QACnB,OAAO;YACN,QAAQ,EAAE;gBACT;oBACC,GAAG,EAAE,cAAc;oBACnB,QAAQ,EAAE,YAAY;oBACtB,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI;;wFAEgE,KAAK,CAAC,IAAI;;;oFAGd,KAAK,CAAC,IAAI;;;;;;;0DAOpC,KAAK,CAAC,IAAI;;;;;;;;;;;uCAW7B,KAAK,CAAC,IAAI;oDACG,KAAK,CAAC,IAAI
|
|
1
|
+
{"version":3,"file":"about.js","sourceRoot":"","sources":["../../src/resources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