keywordgraph-mcp-server 1.9.1 → 1.9.5

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 (111) hide show
  1. package/README.md +19 -11
  2. package/dist/config/brand.d.ts.map +1 -1
  3. package/dist/config/brand.js +1 -0
  4. package/dist/config/brand.js.map +1 -1
  5. package/dist/config/models.d.ts +7 -0
  6. package/dist/config/models.d.ts.map +1 -0
  7. package/dist/config/models.js +26 -0
  8. package/dist/config/models.js.map +1 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +2 -1
  11. package/dist/index.js.map +1 -1
  12. package/dist/instructions.js +4 -4
  13. package/dist/resources/about.d.ts.map +1 -1
  14. package/dist/resources/about.js +3 -2
  15. package/dist/resources/about.js.map +1 -1
  16. package/dist/schemas/index.d.ts +130 -71
  17. package/dist/schemas/index.d.ts.map +1 -1
  18. package/dist/schemas/index.js +131 -200
  19. package/dist/schemas/index.js.map +1 -1
  20. package/dist/tools/analyzeLlmResults.d.ts +1 -1
  21. package/dist/tools/analyzeLlmResults.d.ts.map +1 -1
  22. package/dist/tools/analyzeLlmResults.js +4 -1
  23. package/dist/tools/analyzeLlmResults.js.map +1 -1
  24. package/dist/tools/createKnowledgeGraph.d.ts +5 -2
  25. package/dist/tools/createKnowledgeGraph.d.ts.map +1 -1
  26. package/dist/tools/createKnowledgeGraph.js +23 -5
  27. package/dist/tools/createKnowledgeGraph.js.map +1 -1
  28. package/dist/tools/developConceptualBridges.d.ts +1 -1
  29. package/dist/tools/developConceptualBridges.d.ts.map +1 -1
  30. package/dist/tools/developConceptualBridges.js +3 -2
  31. package/dist/tools/developConceptualBridges.js.map +1 -1
  32. package/dist/tools/developLatentTopics.d.ts +1 -1
  33. package/dist/tools/developLatentTopics.d.ts.map +1 -1
  34. package/dist/tools/developLatentTopics.js +3 -2
  35. package/dist/tools/developLatentTopics.js.map +1 -1
  36. package/dist/tools/developTextTool.d.ts +1 -1
  37. package/dist/tools/developTextTool.d.ts.map +1 -1
  38. package/dist/tools/developTextTool.js +10 -6
  39. package/dist/tools/developTextTool.js.map +1 -1
  40. package/dist/tools/generateKnowledgeGraph.d.ts +5 -2
  41. package/dist/tools/generateKnowledgeGraph.d.ts.map +1 -1
  42. package/dist/tools/generateKnowledgeGraph.js +21 -7
  43. package/dist/tools/generateKnowledgeGraph.js.map +1 -1
  44. package/dist/tools/generateOntologyGraph.d.ts +3 -3
  45. package/dist/tools/generateOntologyGraph.d.ts.map +1 -1
  46. package/dist/tools/generateOntologyGraph.js +11 -20
  47. package/dist/tools/generateOntologyGraph.js.map +1 -1
  48. package/dist/tools/generateResearchIdeas.d.ts +2 -1
  49. package/dist/tools/generateResearchIdeas.d.ts.map +1 -1
  50. package/dist/tools/generateResearchIdeas.js +7 -5
  51. package/dist/tools/generateResearchIdeas.js.map +1 -1
  52. package/dist/tools/generateResearchQuestions.d.ts +2 -1
  53. package/dist/tools/generateResearchQuestions.d.ts.map +1 -1
  54. package/dist/tools/generateResearchQuestions.js +7 -5
  55. package/dist/tools/generateResearchQuestions.js.map +1 -1
  56. package/dist/tools/generateResponses.d.ts +1 -1
  57. package/dist/tools/generateResponses.d.ts.map +1 -1
  58. package/dist/tools/generateResponses.js +3 -2
  59. package/dist/tools/generateResponses.js.map +1 -1
  60. package/dist/tools/getGraphAroundTerm.d.ts +32 -0
  61. package/dist/tools/getGraphAroundTerm.d.ts.map +1 -0
  62. package/dist/tools/getGraphAroundTerm.js +69 -0
  63. package/dist/tools/getGraphAroundTerm.js.map +1 -0
  64. package/dist/tools/getNodeNeighborhood.d.ts.map +1 -1
  65. package/dist/tools/getNodeNeighborhood.js +4 -2
  66. package/dist/tools/getNodeNeighborhood.js.map +1 -1
  67. package/dist/tools/getTermGraph.d.ts +32 -0
  68. package/dist/tools/getTermGraph.d.ts.map +1 -0
  69. package/dist/tools/getTermGraph.js +69 -0
  70. package/dist/tools/getTermGraph.js.map +1 -0
  71. package/dist/tools/index.d.ts +1 -0
  72. package/dist/tools/index.d.ts.map +1 -1
  73. package/dist/tools/index.js +1 -0
  74. package/dist/tools/index.js.map +1 -1
  75. package/dist/tools/optimizeKnowledgeBase.d.ts +4 -2
  76. package/dist/tools/optimizeKnowledgeBase.d.ts.map +1 -1
  77. package/dist/tools/optimizeKnowledgeBase.js +18 -6
  78. package/dist/tools/optimizeKnowledgeBase.js.map +1 -1
  79. package/dist/tools/optimizeReasoning.d.ts +1 -1
  80. package/dist/tools/optimizeReasoning.d.ts.map +1 -1
  81. package/dist/tools/optimizeReasoning.js +2 -1
  82. package/dist/tools/optimizeReasoning.js.map +1 -1
  83. package/dist/tools/optimizeTextStructure.d.ts +1 -1
  84. package/dist/tools/optimizeTextStructure.d.ts.map +1 -1
  85. package/dist/tools/optimizeTextStructure.js +3 -2
  86. package/dist/tools/optimizeTextStructure.js.map +1 -1
  87. package/dist/tools/searchGraphs.d.ts.map +1 -1
  88. package/dist/tools/searchGraphs.js +2 -1
  89. package/dist/tools/searchGraphs.js.map +1 -1
  90. package/dist/types/index.d.ts +16 -0
  91. package/dist/types/index.d.ts.map +1 -1
  92. package/dist/utils/aiKnowledgeGraph.d.ts +45 -0
  93. package/dist/utils/aiKnowledgeGraph.d.ts.map +1 -0
  94. package/dist/utils/aiKnowledgeGraph.js +77 -0
  95. package/dist/utils/aiKnowledgeGraph.js.map +1 -0
  96. package/dist/utils/chunkByLines.d.ts +3 -0
  97. package/dist/utils/chunkByLines.d.ts.map +1 -0
  98. package/dist/utils/chunkByLines.js +19 -0
  99. package/dist/utils/chunkByLines.js.map +1 -0
  100. package/dist/utils/transformers.d.ts +7 -0
  101. package/dist/utils/transformers.d.ts.map +1 -1
  102. package/dist/utils/transformers.js +32 -0
  103. package/dist/utils/transformers.js.map +1 -1
  104. package/dist/utils/wikilinksMode.d.ts +9 -0
  105. package/dist/utils/wikilinksMode.d.ts.map +1 -1
  106. package/dist/utils/wikilinksMode.js +6 -4
  107. package/dist/utils/wikilinksMode.js.map +1 -1
  108. package/llms-full.infranodus.txt +17 -11
  109. package/llms-full.keywordgraph.txt +9 -6
  110. package/llms-full.txt +17 -11
  111. package/package.json +1 -1
@@ -50,13 +50,15 @@ Get API key at: https://infranodus.com/api-access
50
50
 
51
51
  **Entity detection** (`modifyAnalyzedText` parameter):
52
52
  - `none` (default): Word co-occurrence graph
53
- - `detectEntities`: Mix entities and words
54
- - `extractEntitiesOnly`: Entity-only graph, best for ontologies and knowledge graphs
53
+ - `detectEntities`: An algorithm marks names as entities, mixed with the words
54
+ - `extractEntitiesOnly`: An algorithm finds names and only they become nodes. For plain text without `[[wikilinks]]`; for text already written as `[[entity]]` statements use `wikilinksMode: wikilinksOnly`
55
+ - `aiKnowledgeGraph` (`generate_knowledge_graph`, `create_knowledge_graph`): An AI model writes `[[entity]]` statements about a topic or a text, and only those entities become nodes. Slower, uses AI credits; optional `instructions` and `modelToUse`
55
56
 
56
57
  **AI models** (`modelToUse` parameter, no additional API keys needed):
57
- - `gpt-4o`, `gpt-4o-mini`, `gpt-5.4`, `gpt-5.4-mini`
58
- - `claude-sonnet-4.6`, `claude-opus-4.6`
59
- - `gemini-2.5-flash`, `gemini-2.5-flash-lite`
58
+ - `claude-opus-5-5` (default of the graph-generating tools), `claude-sonnet-5-5`, `claude-fable-5-1`
59
+ - `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`
60
+ - `gemini-4-argon`, `gemini-3.8-flash`, `gemini-3.5-flash-lite`
61
+ - `grok-4.7`, `grok-4.20-0309-non-reasoning`
60
62
 
61
63
  **Response types** (`responseType` parameter):
62
64
  - `response`: Default analytical response
@@ -85,7 +87,8 @@ Generates a knowledge graph from text using network analysis. Shows main concept
85
87
  - `includeGraph` (boolean): Include full graph structure with cluster details
86
88
  - `includeStatements` (boolean): Include original statements
87
89
  - `addNodesAndEdges` (boolean): Include raw nodes and edges
88
- - `modifyAnalyzedText`: Entity detection mode
90
+ - `modifyAnalyzedText`: Entity detection mode; `aiKnowledgeGraph` builds an AI knowledge graph of a topic or text
91
+ - `modelToUse`, `instructions`: Only with `aiKnowledgeGraph` — the AI model, and the user's own instructions (which entities, scope); they cannot change the output format
89
92
 
90
93
  **Returns**: statistics (modularity, diversity_stats), contentGaps, mainTopicalClusters, mainConcepts, conceptualGateways, topRelations, topInfluentialNodes, knowledgeGraphByCluster.
91
94
 
@@ -124,23 +127,24 @@ Identifies content gaps — missing connections between topical clusters that re
124
127
 
125
128
  **Parameters**: `text` / `url` / `graphName`
126
129
 
127
- **Returns**: `contentGaps` array. Format: "Gap N: ClusterA (keywords) -> ClusterB (keywords)"
130
+ **Returns**: `contentGaps` array. Format: "Gap N: ClusterA (keywords) -> ClusterB (keywords)". Also `insightClusters`: the 1–3 clusters the AI bridges by default, one line per gap depth, each cluster tagged `gap`, `bridge` or `influence`. Format: "Insight clusters N (state): [gap] ClusterA (keywords) + [bridge] ClusterB (keywords)". Every tool that returns `contentGaps` returns `insightClusters` beside it.
128
131
 
129
132
  ---
130
133
 
131
134
  ### generate_research_questions
132
135
 
133
- Generates research questions that bridge content gaps identified in text.
136
+ Generates research questions that bridge the topical clusters of a text. By default the questions bridge the insight clusters.
134
137
 
135
138
  **Use for**: Generating prompts for LLM workflows, research ideation, bridging knowledge gaps.
136
139
 
137
140
  **Parameters**:
138
141
  - `text` / `url` / `graphName`: Input source
142
+ - `optimize`: which clusters the questions are generated from. `optimize` (default) uses the insight clusters, picked from the structure of the graph to move it toward a balanced shape; `gap` the widest content gap; `develop` all the main topics; `latent` the under-developed ones
139
143
  - `useSeveralGaps` (boolean): Generate questions for multiple gaps (more diverse)
140
- - `gapDepth` (number): Explore less prominent gaps (0 = top gap)
144
+ - `gapDepth` (number): Explore less prominent gaps or insight clusters (0 = the first)
141
145
  - `modelToUse` (string): AI model to use
142
146
 
143
- **Returns**: `questions` array of research question strings.
147
+ **Returns**: `questions` array of research question strings, and `insightClusters`.
144
148
 
145
149
  ---
146
150
 
@@ -150,12 +154,14 @@ Generates ideas that develop the text further based on content gaps. By default
150
154
 
151
155
  **Parameters**:
152
156
  - `text` / `url` / `graphName`: Input source
157
+ - `optimize`: which clusters the ideas are generated from. `optimize` (default) uses the insight clusters, picked from the structure of the graph to move it toward a balanced shape; `gap` the widest content gap; `develop` all the main topics; `latent` the under-developed ones
153
158
  - `useSeveralGaps` (boolean): Ideas for multiple gaps
159
+ - `gapDepth` (number): Explore less prominent gaps or insight clusters (0 = the first)
154
160
  - `shouldTranscend` (boolean): Connect to broader discourse
155
161
  - `responseType`: 'response' (analytical) or 'idea' (business-oriented)
156
162
  - `modelToUse` (string): AI model to use
157
163
 
158
- **Returns**: `responses` array of idea strings.
164
+ **Returns**: `responses` array of idea strings (`ideas` with `responseType: 'idea'`), and `insightClusters`.
159
165
 
160
166
  ---
161
167
 
@@ -50,13 +50,15 @@ Get API key at: https://keywordgraph.com/api-access
50
50
 
51
51
  **Entity detection** (`modifyAnalyzedText` parameter):
52
52
  - `none` (default): Word co-occurrence graph
53
- - `detectEntities`: Mix entities and words
54
- - `extractEntitiesOnly`: Entity-only graph, best for ontologies and knowledge graphs
53
+ - `detectEntities`: An algorithm marks names as entities, mixed with the words
54
+ - `extractEntitiesOnly`: An algorithm finds names and only they become nodes. For plain text without `[[wikilinks]]`; for text already written as `[[entity]]` statements use `wikilinksMode: wikilinksOnly`
55
+ - `aiKnowledgeGraph` (`generate_knowledge_graph`, `create_knowledge_graph`): An AI model writes `[[entity]]` statements about a topic or a text, and only those entities become nodes. Slower, uses AI credits; optional `instructions` and `modelToUse`
55
56
 
56
57
  **AI models** (`modelToUse` parameter, no additional API keys needed):
57
- - `gpt-4o`, `gpt-4o-mini`, `gpt-5.4`, `gpt-5.4-mini`
58
- - `claude-sonnet-4.6`, `claude-opus-4.6`
59
- - `gemini-2.5-flash`, `gemini-2.5-flash-lite`
58
+ - `claude-opus-5-5` (default of the graph-generating tools), `claude-sonnet-5-5`, `claude-fable-5-1`
59
+ - `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`
60
+ - `gemini-4-argon`, `gemini-3.8-flash`, `gemini-3.5-flash-lite`
61
+ - `grok-4.7`, `grok-4.20-0309-non-reasoning`
60
62
 
61
63
  **Response types** (`responseType` parameter):
62
64
  - `response`: Default analytical response
@@ -85,7 +87,8 @@ Generates a knowledge graph from text using network analysis. Shows main concept
85
87
  - `includeGraph` (boolean): Include full graph structure with cluster details
86
88
  - `includeStatements` (boolean): Include original statements
87
89
  - `addNodesAndEdges` (boolean): Include raw nodes and edges
88
- - `modifyAnalyzedText`: Entity detection mode
90
+ - `modifyAnalyzedText`: Entity detection mode; `aiKnowledgeGraph` builds an AI knowledge graph of a topic or text
91
+ - `modelToUse`, `instructions`: Only with `aiKnowledgeGraph` — the AI model, and the user's own instructions (which entities, scope); they cannot change the output format
89
92
 
90
93
  **Returns**: statistics (modularity, diversity_stats), contentGaps, mainTopicalClusters, mainConcepts, conceptualGateways, topRelations, topInfluentialNodes, knowledgeGraphByCluster.
91
94
 
package/llms-full.txt CHANGED
@@ -50,13 +50,15 @@ Get API key at: https://infranodus.com/api-access
50
50
 
51
51
  **Entity detection** (`modifyAnalyzedText` parameter):
52
52
  - `none` (default): Word co-occurrence graph
53
- - `detectEntities`: Mix entities and words
54
- - `extractEntitiesOnly`: Entity-only graph, best for ontologies and knowledge graphs
53
+ - `detectEntities`: An algorithm marks names as entities, mixed with the words
54
+ - `extractEntitiesOnly`: An algorithm finds names and only they become nodes. For plain text without `[[wikilinks]]`; for text already written as `[[entity]]` statements use `wikilinksMode: wikilinksOnly`
55
+ - `aiKnowledgeGraph` (`generate_knowledge_graph`, `create_knowledge_graph`): An AI model writes `[[entity]]` statements about a topic or a text, and only those entities become nodes. Slower, uses AI credits; optional `instructions` and `modelToUse`
55
56
 
56
57
  **AI models** (`modelToUse` parameter, no additional API keys needed):
57
- - `gpt-4o`, `gpt-4o-mini`, `gpt-5.4`, `gpt-5.4-mini`
58
- - `claude-sonnet-4.6`, `claude-opus-4.6`
59
- - `gemini-2.5-flash`, `gemini-2.5-flash-lite`
58
+ - `claude-opus-5-5` (default of the graph-generating tools), `claude-sonnet-5-5`, `claude-fable-5-1`
59
+ - `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`
60
+ - `gemini-4-argon`, `gemini-3.8-flash`, `gemini-3.5-flash-lite`
61
+ - `grok-4.7`, `grok-4.20-0309-non-reasoning`
60
62
 
61
63
  **Response types** (`responseType` parameter):
62
64
  - `response`: Default analytical response
@@ -85,7 +87,8 @@ Generates a knowledge graph from text using network analysis. Shows main concept
85
87
  - `includeGraph` (boolean): Include full graph structure with cluster details
86
88
  - `includeStatements` (boolean): Include original statements
87
89
  - `addNodesAndEdges` (boolean): Include raw nodes and edges
88
- - `modifyAnalyzedText`: Entity detection mode
90
+ - `modifyAnalyzedText`: Entity detection mode; `aiKnowledgeGraph` builds an AI knowledge graph of a topic or text
91
+ - `modelToUse`, `instructions`: Only with `aiKnowledgeGraph` — the AI model, and the user's own instructions (which entities, scope); they cannot change the output format
89
92
 
90
93
  **Returns**: statistics (modularity, diversity_stats), contentGaps, mainTopicalClusters, mainConcepts, conceptualGateways, topRelations, topInfluentialNodes, knowledgeGraphByCluster.
91
94
 
@@ -124,23 +127,24 @@ Identifies content gaps — missing connections between topical clusters that re
124
127
 
125
128
  **Parameters**: `text` / `url` / `graphName`
126
129
 
127
- **Returns**: `contentGaps` array. Format: "Gap N: ClusterA (keywords) -> ClusterB (keywords)"
130
+ **Returns**: `contentGaps` array. Format: "Gap N: ClusterA (keywords) -> ClusterB (keywords)". Also `insightClusters`: the 1–3 clusters the AI bridges by default, one line per gap depth, each cluster tagged `gap`, `bridge` or `influence`. Format: "Insight clusters N (state): [gap] ClusterA (keywords) + [bridge] ClusterB (keywords)". Every tool that returns `contentGaps` returns `insightClusters` beside it.
128
131
 
129
132
  ---
130
133
 
131
134
  ### generate_research_questions
132
135
 
133
- Generates research questions that bridge content gaps identified in text.
136
+ Generates research questions that bridge the topical clusters of a text. By default the questions bridge the insight clusters.
134
137
 
135
138
  **Use for**: Generating prompts for LLM workflows, research ideation, bridging knowledge gaps.
136
139
 
137
140
  **Parameters**:
138
141
  - `text` / `url` / `graphName`: Input source
142
+ - `optimize`: which clusters the questions are generated from. `optimize` (default) uses the insight clusters, picked from the structure of the graph to move it toward a balanced shape; `gap` the widest content gap; `develop` all the main topics; `latent` the under-developed ones
139
143
  - `useSeveralGaps` (boolean): Generate questions for multiple gaps (more diverse)
140
- - `gapDepth` (number): Explore less prominent gaps (0 = top gap)
144
+ - `gapDepth` (number): Explore less prominent gaps or insight clusters (0 = the first)
141
145
  - `modelToUse` (string): AI model to use
142
146
 
143
- **Returns**: `questions` array of research question strings.
147
+ **Returns**: `questions` array of research question strings, and `insightClusters`.
144
148
 
145
149
  ---
146
150
 
@@ -150,12 +154,14 @@ Generates ideas that develop the text further based on content gaps. By default
150
154
 
151
155
  **Parameters**:
152
156
  - `text` / `url` / `graphName`: Input source
157
+ - `optimize`: which clusters the ideas are generated from. `optimize` (default) uses the insight clusters, picked from the structure of the graph to move it toward a balanced shape; `gap` the widest content gap; `develop` all the main topics; `latent` the under-developed ones
153
158
  - `useSeveralGaps` (boolean): Ideas for multiple gaps
159
+ - `gapDepth` (number): Explore less prominent gaps or insight clusters (0 = the first)
154
160
  - `shouldTranscend` (boolean): Connect to broader discourse
155
161
  - `responseType`: 'response' (analytical) or 'idea' (business-oriented)
156
162
  - `modelToUse` (string): AI model to use
157
163
 
158
- **Returns**: `responses` array of idea strings.
164
+ **Returns**: `responses` array of idea strings (`ideas` with `responseType: 'idea'`), and `insightClusters`.
159
165
 
160
166
  ---
161
167
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keywordgraph-mcp-server",
3
- "version": "1.9.1",
3
+ "version": "1.9.5",
4
4
  "description": "KeywordGraph MCP server - A Model Context Protocol server for network thinking and graph analysis",
5
5
  "type": "module",
6
6
  "module": "src/index.ts",