tachibot-mcp 2.0.2

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 (214) hide show
  1. package/.env.example +260 -0
  2. package/CHANGELOG.md +54 -0
  3. package/CODE_OF_CONDUCT.md +56 -0
  4. package/CONTRIBUTING.md +54 -0
  5. package/Dockerfile +36 -0
  6. package/LICENSE +644 -0
  7. package/README.md +201 -0
  8. package/SECURITY.md +95 -0
  9. package/dist/personality/komaai-expressions.js +12 -0
  10. package/dist/profiles/balanced.json +33 -0
  11. package/dist/profiles/code_focus.json +33 -0
  12. package/dist/profiles/full.json +33 -0
  13. package/dist/profiles/minimal.json +33 -0
  14. package/dist/profiles/research_power.json +33 -0
  15. package/dist/scripts/build-profiles.js +46 -0
  16. package/dist/src/application/services/focus/FocusModeRegistry.js +46 -0
  17. package/dist/src/application/services/focus/FocusTool.service.js +109 -0
  18. package/dist/src/application/services/focus/ModeRegistry.js +46 -0
  19. package/dist/src/application/services/focus/modes/focus-deep.mode.js +27 -0
  20. package/dist/src/application/services/focus/modes/status.mode.js +50 -0
  21. package/dist/src/application/services/focus/modes/tachibot-status.mode.js +50 -0
  22. package/dist/src/collaborative-orchestrator.js +391 -0
  23. package/dist/src/config/model-constants.js +188 -0
  24. package/dist/src/config/model-defaults.js +57 -0
  25. package/dist/src/config/model-preferences.js +382 -0
  26. package/dist/src/config/timeout-config.js +130 -0
  27. package/dist/src/config.js +173 -0
  28. package/dist/src/domain/interfaces/IFocusMode.js +5 -0
  29. package/dist/src/domain/interfaces/IProvider.js +6 -0
  30. package/dist/src/domain/interfaces/ITool.js +5 -0
  31. package/dist/src/focus-deep.js +245 -0
  32. package/dist/src/infrastructure/ascii/art/robots.ascii.js +16 -0
  33. package/dist/src/mcp-client.js +90 -0
  34. package/dist/src/memory/index.js +17 -0
  35. package/dist/src/memory/memory-config.js +135 -0
  36. package/dist/src/memory/memory-interface.js +174 -0
  37. package/dist/src/memory/memory-manager.js +383 -0
  38. package/dist/src/memory/providers/devlog-provider.js +385 -0
  39. package/dist/src/memory/providers/hybrid-provider.js +399 -0
  40. package/dist/src/memory/providers/local-provider.js +388 -0
  41. package/dist/src/memory/providers/mem0-provider.js +337 -0
  42. package/dist/src/modes/architect.js +477 -0
  43. package/dist/src/modes/auditor.js +362 -0
  44. package/dist/src/modes/challenger.js +841 -0
  45. package/dist/src/modes/code-reviewer.js +382 -0
  46. package/dist/src/modes/commit-guardian.js +424 -0
  47. package/dist/src/modes/documentation-writer.js +572 -0
  48. package/dist/src/modes/scout.js +587 -0
  49. package/dist/src/modes/shared/helpers/challenger-helpers.js +454 -0
  50. package/dist/src/modes/shared/helpers/index.js +17 -0
  51. package/dist/src/modes/shared/helpers/scout-helpers.js +270 -0
  52. package/dist/src/modes/shared/helpers/verifier-helpers.js +332 -0
  53. package/dist/src/modes/test-architect.js +767 -0
  54. package/dist/src/modes/verifier.js +378 -0
  55. package/dist/src/monitoring/performance-monitor.js +435 -0
  56. package/dist/src/optimization/batch-executor.js +121 -0
  57. package/dist/src/optimization/context-pruner.js +196 -0
  58. package/dist/src/optimization/cost-monitor.js +338 -0
  59. package/dist/src/optimization/index.js +65 -0
  60. package/dist/src/optimization/model-router.js +264 -0
  61. package/dist/src/optimization/result-cache.js +114 -0
  62. package/dist/src/optimization/token-optimizer.js +257 -0
  63. package/dist/src/optimization/token-tracker.js +118 -0
  64. package/dist/src/orchestrator-instructions.js +128 -0
  65. package/dist/src/orchestrator-lite.js +139 -0
  66. package/dist/src/orchestrator.js +191 -0
  67. package/dist/src/orchestrators/collaborative/interfaces/IToolExecutionEngine.js +1 -0
  68. package/dist/src/orchestrators/collaborative/interfaces/IToolExecutionStrategy.js +5 -0
  69. package/dist/src/orchestrators/collaborative/interfaces/IVisualizationRenderer.js +1 -0
  70. package/dist/src/orchestrators/collaborative/registries/ModelProviderRegistry.js +95 -0
  71. package/dist/src/orchestrators/collaborative/registries/ToolAdapterRegistry.js +64 -0
  72. package/dist/src/orchestrators/collaborative/services/tool-execution/ToolExecutionService.js +502 -0
  73. package/dist/src/orchestrators/collaborative/services/visualization/VisualizationService.js +206 -0
  74. package/dist/src/orchestrators/collaborative/types/session-types.js +5 -0
  75. package/dist/src/profiles/balanced.js +37 -0
  76. package/dist/src/profiles/code_focus.js +37 -0
  77. package/dist/src/profiles/debug_intensive.js +59 -0
  78. package/dist/src/profiles/full.js +37 -0
  79. package/dist/src/profiles/minimal.js +37 -0
  80. package/dist/src/profiles/research_code.js +59 -0
  81. package/dist/src/profiles/research_power.js +37 -0
  82. package/dist/src/profiles/types.js +5 -0
  83. package/dist/src/profiles/workflow_builder.js +53 -0
  84. package/dist/src/prompt-engineer-lite.js +78 -0
  85. package/dist/src/prompt-engineer.js +399 -0
  86. package/dist/src/reasoning-chain.js +508 -0
  87. package/dist/src/sequential-thinking.js +291 -0
  88. package/dist/src/server-diagnostic.js +74 -0
  89. package/dist/src/server-raw.js +158 -0
  90. package/dist/src/server-simple.js +58 -0
  91. package/dist/src/server.js +514 -0
  92. package/dist/src/session/session-logger.js +617 -0
  93. package/dist/src/session/session-manager.js +571 -0
  94. package/dist/src/session/session-tools.js +400 -0
  95. package/dist/src/tools/advanced-modes.js +200 -0
  96. package/dist/src/tools/claude-integration.js +356 -0
  97. package/dist/src/tools/consolidated/ai-router.js +174 -0
  98. package/dist/src/tools/consolidated/ai-tool.js +48 -0
  99. package/dist/src/tools/consolidated/brainstorm-tool.js +87 -0
  100. package/dist/src/tools/consolidated/environment-detector.js +80 -0
  101. package/dist/src/tools/consolidated/index.js +50 -0
  102. package/dist/src/tools/consolidated/search-tool.js +110 -0
  103. package/dist/src/tools/consolidated/workflow-tool.js +238 -0
  104. package/dist/src/tools/gemini-tools.js +329 -0
  105. package/dist/src/tools/grok-enhanced.js +376 -0
  106. package/dist/src/tools/grok-tools.js +299 -0
  107. package/dist/src/tools/lmstudio-tools.js +223 -0
  108. package/dist/src/tools/openai-tools.js +498 -0
  109. package/dist/src/tools/openrouter-tools.js +317 -0
  110. package/dist/src/tools/optimized-wrapper.js +204 -0
  111. package/dist/src/tools/perplexity-tools.js +294 -0
  112. package/dist/src/tools/pingpong-tool.js +343 -0
  113. package/dist/src/tools/qwen-wrapper.js +74 -0
  114. package/dist/src/tools/tool-router.js +444 -0
  115. package/dist/src/tools/unified-ai-provider.js +260 -0
  116. package/dist/src/tools/workflow-runner.js +425 -0
  117. package/dist/src/tools/workflow-validator-tool.js +107 -0
  118. package/dist/src/types.js +23 -0
  119. package/dist/src/utils/input-validator.js +130 -0
  120. package/dist/src/utils/model-router.js +91 -0
  121. package/dist/src/utils/progress-stream.js +255 -0
  122. package/dist/src/utils/provider-router.js +88 -0
  123. package/dist/src/utils/smart-api-client.js +146 -0
  124. package/dist/src/utils/table-builder.js +218 -0
  125. package/dist/src/utils/timestamp-formatter.js +134 -0
  126. package/dist/src/utils/tool-compressor.js +257 -0
  127. package/dist/src/utils/tool-config.js +201 -0
  128. package/dist/src/validators/dependency-graph-validator.js +147 -0
  129. package/dist/src/validators/interpolation-validator.js +222 -0
  130. package/dist/src/validators/output-usage-validator.js +151 -0
  131. package/dist/src/validators/syntax-validator.js +102 -0
  132. package/dist/src/validators/tool-registry-validator.js +123 -0
  133. package/dist/src/validators/tool-types.js +97 -0
  134. package/dist/src/validators/types.js +8 -0
  135. package/dist/src/validators/workflow-validator.js +134 -0
  136. package/dist/src/visualizer-lite.js +42 -0
  137. package/dist/src/visualizer.js +179 -0
  138. package/dist/src/workflows/circuit-breaker.js +199 -0
  139. package/dist/src/workflows/custom-workflows.js +451 -0
  140. package/dist/src/workflows/engine/AutoSynthesizer.js +97 -0
  141. package/dist/src/workflows/engine/StepParameterResolver.js +74 -0
  142. package/dist/src/workflows/engine/VariableInterpolator.js +123 -0
  143. package/dist/src/workflows/engine/WorkflowDiscovery.js +125 -0
  144. package/dist/src/workflows/engine/WorkflowExecutionEngine.js +485 -0
  145. package/dist/src/workflows/engine/WorkflowExecutor.js +113 -0
  146. package/dist/src/workflows/engine/WorkflowFileManager.js +244 -0
  147. package/dist/src/workflows/engine/WorkflowHelpers.js +114 -0
  148. package/dist/src/workflows/engine/WorkflowOutputFormatter.js +83 -0
  149. package/dist/src/workflows/engine/events/WorkflowEventBus.js +132 -0
  150. package/dist/src/workflows/engine/events/interfaces/IEventBus.js +5 -0
  151. package/dist/src/workflows/engine/handlers/ErrorRecoveryHandler.js +162 -0
  152. package/dist/src/workflows/engine/handlers/PromptEnhancementHandler.js +115 -0
  153. package/dist/src/workflows/engine/handlers/SessionPersistenceHandler.js +167 -0
  154. package/dist/src/workflows/engine/handlers/StepExecutionHandler.js +231 -0
  155. package/dist/src/workflows/engine/handlers/ToolInvocationHandler.js +46 -0
  156. package/dist/src/workflows/engine/interfaces/IAutoSynthesizer.js +5 -0
  157. package/dist/src/workflows/engine/interfaces/IStepParameterResolver.js +5 -0
  158. package/dist/src/workflows/engine/interfaces/IVariableInterpolator.js +5 -0
  159. package/dist/src/workflows/engine/interfaces/IWorkflowDiscovery.js +4 -0
  160. package/dist/src/workflows/engine/interfaces/IWorkflowFileManager.js +5 -0
  161. package/dist/src/workflows/engine/interfaces/IWorkflowOutputFormatter.js +5 -0
  162. package/dist/src/workflows/engine/state/WorkflowStateMachine.js +194 -0
  163. package/dist/src/workflows/engine/state/interfaces/IStateMachine.js +17 -0
  164. package/dist/src/workflows/fallback-strategies.js +373 -0
  165. package/dist/src/workflows/message-queue.js +455 -0
  166. package/dist/src/workflows/model-router.js +189 -0
  167. package/dist/src/workflows/orchestrator-examples.js +174 -0
  168. package/dist/src/workflows/orchestrator-integration.js +200 -0
  169. package/dist/src/workflows/self-healing.js +524 -0
  170. package/dist/src/workflows/tool-mapper.js +407 -0
  171. package/dist/src/workflows/tool-orchestrator.js +796 -0
  172. package/dist/src/workflows/workflow-engine.js +573 -0
  173. package/dist/src/workflows/workflow-parser.js +283 -0
  174. package/dist/src/workflows/workflow-types.js +95 -0
  175. package/dist/src/workflows.js +568 -0
  176. package/dist/test-workflow-file-output.js +93 -0
  177. package/docs/API_KEYS.md +570 -0
  178. package/docs/CLAUDE_CODE_SETUP.md +181 -0
  179. package/docs/CLAUDE_DESKTOP_MANUAL.md +127 -0
  180. package/docs/CONFIGURATION.md +745 -0
  181. package/docs/FOCUS_MODES.md +240 -0
  182. package/docs/INSTALLATION_BOTH.md +145 -0
  183. package/docs/TERMS.md +352 -0
  184. package/docs/TOOLS_REFERENCE.md +1622 -0
  185. package/docs/TOOL_PARAMETERS.md +496 -0
  186. package/docs/TOOL_PROFILES.md +236 -0
  187. package/docs/WORKFLOWS.md +987 -0
  188. package/docs/WORKFLOW_OUTPUT.md +198 -0
  189. package/docs/WORKFLOW_PROGRESS_TRACKING.md +305 -0
  190. package/docs/workflows/design-brainstorm.md +335 -0
  191. package/package.json +97 -0
  192. package/profiles/balanced.json +37 -0
  193. package/profiles/code_focus.json +37 -0
  194. package/profiles/debug_intensive.json +34 -0
  195. package/profiles/full.json +37 -0
  196. package/profiles/minimal.json +37 -0
  197. package/profiles/research_power.json +37 -0
  198. package/profiles/workflow_builder.json +37 -0
  199. package/smithery.yaml +66 -0
  200. package/start.sh +8 -0
  201. package/tools.config.json +81 -0
  202. package/tsconfig.json +18 -0
  203. package/workflows/accessibility-code-audit.yaml +92 -0
  204. package/workflows/code-architecture-review.yaml +202 -0
  205. package/workflows/code-review.yaml +142 -0
  206. package/workflows/core/iterative-problem-solver.yaml +283 -0
  207. package/workflows/creative-brainstorm-yaml.yaml +215 -0
  208. package/workflows/pingpong.yaml +141 -0
  209. package/workflows/system/README.md +412 -0
  210. package/workflows/system/challenger.yaml +175 -0
  211. package/workflows/system/scout.yaml +164 -0
  212. package/workflows/system/verifier.yaml +133 -0
  213. package/workflows/ultra-creative-brainstorm.yaml +318 -0
  214. package/workflows/ux-research-flow.yaml +92 -0
@@ -0,0 +1,240 @@
1
+ # Tachibot-MCP Modes Documentation
2
+
3
+ ## Overview
4
+
5
+ Tachibot-MCP provides intelligent orchestration of multiple AI models through specialized workflows. Each mode is designed for specific types of reasoning tasks and can be invoked using primary names or aliases.
6
+
7
+ ## Available Modes
8
+
9
+ ### 🎨 Brainstorm/Creative/Ideate Mode
10
+ **Purpose**: Generate innovative ideas and explore creative possibilities
11
+
12
+ **Tool Flow**:
13
+ ```
14
+ 1. gemini_brainstorm - Initial creative exploration
15
+ 2. openai_brainstorm - Alternative perspectives
16
+ 3. perplexity_research - Real-world validation (optional)
17
+ 4. think - Reflection and pattern recognition
18
+ 5. openai_reason - Feasibility analysis
19
+ ```
20
+
21
+ **Use Cases**:
22
+ - Product ideation
23
+ - Creative problem-solving
24
+ - Feature brainstorming
25
+ - Marketing campaigns
26
+ - Innovation workshops
27
+
28
+ **Example**:
29
+ ```bash
30
+ focus --mode brainstorm "Design a new mobile app for elderly users"
31
+ focus --mode creative "Alternative uses for blockchain technology"
32
+ focus --mode ideate "Sustainable packaging solutions"
33
+ ```
34
+
35
+ ### 🔬 Research/Investigate Mode
36
+ **Purpose**: Deep investigation with comprehensive evidence gathering
37
+
38
+ **Tool Flow**:
39
+ ```
40
+ 1. perplexity_research - Comprehensive data gathering
41
+ 2. think - Pattern recognition
42
+ 3. openai_reason - Systematic analysis
43
+ 4. gemini_brainstorm - Creative applications (optional)
44
+ ```
45
+
46
+ **Use Cases**:
47
+ - Market research
48
+ - Technical investigations
49
+ - Academic research
50
+ - Competitive analysis
51
+ - Trend analysis
52
+
53
+ **Example**:
54
+ ```bash
55
+ focus --mode research "Latest developments in quantum computing"
56
+ focus --mode investigate "Impact of remote work on productivity"
57
+ ```
58
+
59
+ ### 🧩 Solve/Analyze Mode
60
+ **Purpose**: Systematic problem-solving and analytical reasoning
61
+
62
+ **Tool Flow**:
63
+ ```
64
+ 1. think - Problem decomposition
65
+ 2. openai_reason - First principles analysis
66
+ 3. perplexity_research - Evidence gathering
67
+ 4. gemini_brainstorm - Innovative solutions
68
+ ```
69
+
70
+ **Use Cases**:
71
+ - Technical debugging
72
+ - Business problem-solving
73
+ - Process optimization
74
+ - Root cause analysis
75
+ - Strategic planning
76
+
77
+ **Example**:
78
+ ```bash
79
+ focus --mode solve "Optimize database query performance"
80
+ focus --mode analyze "Why is customer retention dropping?"
81
+ ```
82
+
83
+ ### 🎯 Synthesis/Integrate Mode
84
+ **Purpose**: Combine multiple perspectives into coherent insights
85
+
86
+ **Tool Flow**:
87
+ ```
88
+ 1. gemini_brainstorm - Exploratory angles
89
+ 2. perplexity_research - Comprehensive data
90
+ 3. openai_reason - Analytical framework
91
+ 4. think - Integration reflection
92
+ ```
93
+
94
+ **Use Cases**:
95
+ - Strategic decision-making
96
+ - Multi-stakeholder alignment
97
+ - Complex report synthesis
98
+ - Cross-functional planning
99
+ - Holistic analysis
100
+
101
+ **Example**:
102
+ ```bash
103
+ focus --mode synthesis "Combine user feedback with technical constraints"
104
+ focus --mode integrate "Merge marketing and engineering roadmaps"
105
+ ```
106
+
107
+ ### ✅ Fact-Check/Verify/Validate Mode
108
+ **Purpose**: Validate claims and ideas with evidence-based analysis
109
+
110
+ **Tool Flow**:
111
+ ```
112
+ 1. think - Decompose claims
113
+ 2. perplexity_research - Find evidence
114
+ 3. openai_reason - Analyze contradictions
115
+ 4. gemini_brainstorm - Alternative explanations
116
+ 5. think - Final verdict synthesis
117
+ ```
118
+
119
+ **Use Cases**:
120
+ - Content verification
121
+ - Assumption validation
122
+ - Risk assessment
123
+ - Due diligence
124
+ - Quality assurance
125
+
126
+ **Example**:
127
+ ```bash
128
+ focus --mode fact-check "AI will replace all programmers by 2030"
129
+ focus --mode verify "This startup's growth claims"
130
+ focus --mode validate "Technical feasibility of the proposed solution"
131
+ ```
132
+
133
+ ### 🪞 Reflect/Review Mode
134
+ **Purpose**: Synthesize results from previous orchestration runs
135
+
136
+ **Tool Flow**:
137
+ - No tools executed - provides guidance for manual synthesis
138
+ - Reviews outputs from previous tool executions
139
+ - Identifies patterns and contradictions
140
+ - Creates actionable insights
141
+
142
+ **Use Cases**:
143
+ - Post-brainstorm synthesis
144
+ - Research summary
145
+ - Decision consolidation
146
+ - Learning extraction
147
+ - Action planning
148
+
149
+ **Example**:
150
+ ```bash
151
+ # After running any other mode:
152
+ focus --mode reflect
153
+ focus --mode review "Synthesize all findings"
154
+ ```
155
+
156
+ ### 🔍 Debug Mode
157
+ **Purpose**: Understand available workflows and troubleshoot
158
+
159
+ **Tool Flow**:
160
+ - No tools executed - provides system information
161
+ - Shows available workflows and tools
162
+ - Displays token efficiency options
163
+
164
+ **Use Cases**:
165
+ - Learning the system
166
+ - Troubleshooting
167
+ - Configuration testing
168
+
169
+ **Example**:
170
+ ```bash
171
+ focus --mode debug "Show me what's available"
172
+ ```
173
+
174
+ ## Mode Selection Guide
175
+
176
+ Choose your mode based on your primary goal:
177
+
178
+ | If you want to... | Use mode |
179
+ |-------------------|----------|
180
+ | Generate new ideas | `brainstorm` / `creative` / `ideate` |
181
+ | Find information and evidence | `research` / `investigate` |
182
+ | Solve a specific problem | `solve` / `analyze` |
183
+ | Combine multiple viewpoints | `synthesis` / `integrate` |
184
+ | Verify claims or assumptions | `fact-check` / `verify` / `validate` |
185
+ | Summarize previous results | `reflect` / `review` |
186
+ | Learn about the system | `debug` |
187
+
188
+ ## Token Efficiency
189
+
190
+ All modes support token-efficient operation:
191
+
192
+ ```bash
193
+ focus --mode brainstorm --tokenEfficient true "Your query"
194
+ ```
195
+
196
+ This reduces output by ~30% while maintaining core functionality.
197
+
198
+ ## Workflow Customization
199
+
200
+ Each workflow includes:
201
+ - **Required steps**: Core tools that always run
202
+ - **Optional steps**: Additional tools that may be skipped based on context
203
+ - **Adaptation checks**: Dynamic adjustments based on output length
204
+
205
+ ## Best Practices
206
+
207
+ 1. **Start with the right mode**: Choose based on your primary goal
208
+ 2. **Provide context**: Include relevant background in your query
209
+ 3. **Use reflect mode**: Always synthesize after complex workflows
210
+ 4. **Iterate**: Run multiple modes for comprehensive analysis
211
+ 5. **Token efficiency**: Use for faster responses when full output isn't needed
212
+
213
+ ## Example Multi-Mode Workflow
214
+
215
+ ```bash
216
+ # 1. Generate ideas
217
+ focus --mode brainstorm "New features for our app"
218
+
219
+ # 2. Validate feasibility
220
+ focus --mode fact-check "Can we implement real-time collaboration?"
221
+
222
+ # 3. Deep dive on specifics
223
+ focus --mode research "WebRTC implementation best practices"
224
+
225
+ # 4. Synthesize everything
226
+ focus --mode reflect
227
+ ```
228
+
229
+ ## Mode Aliases Reference
230
+
231
+ | Primary | Aliases |
232
+ |---------|---------|
233
+ | brainstorm | creative, ideate |
234
+ | research | investigate |
235
+ | solve | analyze |
236
+ | synthesis | integrate |
237
+ | fact-check | verify, validate |
238
+ | reflect | review |
239
+
240
+ Use whichever name feels most natural for your use case!
@@ -0,0 +1,145 @@
1
+ # Installing TachiBot MCP for Both Claude Code and Claude Desktop
2
+
3
+ ## Method 1: Claude Desktop Extension (.mcpb file)
4
+
5
+ ### Installation
6
+ 1. Download `tachibot-mcp.mcpb` from [Releases](https://github.com/byPawel/tachibot-mcp/releases)
7
+ 2. Open Claude Desktop
8
+ 3. Go to **Settings** → **Developer** → **Extensions**
9
+ 4. Click **"Install Extension"** and select the `.mcpb` file
10
+ 5. Enter your API keys when prompted
11
+ 6. Restart Claude Desktop
12
+
13
+ ## Method 2: Manual Configuration (Works for Both)
14
+
15
+ ### For Claude Desktop
16
+
17
+ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
18
+
19
+ ```json
20
+ {
21
+ "mcpServers": {
22
+ "tachibot": {
23
+ "command": "node",
24
+ "args": ["/path/to/tachibot-mcp/dist/src/server.js"],
25
+ "env": {
26
+ "TACHIBOT_PROFILE": "balanced",
27
+ "PERPLEXITY_API_KEY": "your-key",
28
+ "GROK_API_KEY": "your-key",
29
+ "OPENAI_API_KEY": "your-key",
30
+ "GOOGLE_API_KEY": "your-key"
31
+ }
32
+ }
33
+ }
34
+ }
35
+ ```
36
+
37
+ ### For Claude Code
38
+
39
+ Add to your project's `.claude/mcp.json`:
40
+
41
+ ```json
42
+ {
43
+ "mcpServers": {
44
+ "tachibot": {
45
+ "command": "node",
46
+ "args": ["/path/to/tachibot-mcp/dist/src/server.js"],
47
+ "env": {
48
+ "TACHIBOT_PROFILE": "balanced",
49
+ "PERPLEXITY_API_KEY": "your-key",
50
+ "GROK_API_KEY": "your-key",
51
+ "OPENAI_API_KEY": "your-key"
52
+ }
53
+ }
54
+ }
55
+ }
56
+ ```
57
+
58
+ Or install globally via NPM and use:
59
+
60
+ ```json
61
+ {
62
+ "mcpServers": {
63
+ "tachibot": {
64
+ "command": "tachibot",
65
+ "env": {
66
+ "TACHIBOT_PROFILE": "balanced",
67
+ "PERPLEXITY_API_KEY": "your-key",
68
+ "GROK_API_KEY": "your-key",
69
+ "OPENAI_API_KEY": "your-key"
70
+ }
71
+ }
72
+ }
73
+ }
74
+ ```
75
+
76
+ ## Method 3: Global NPM Installation
77
+
78
+ ```bash
79
+ # Install globally
80
+ npm install -g tachibot-mcp
81
+
82
+ # Find installation path
83
+ npm list -g tachibot-mcp
84
+ ```
85
+
86
+ Then use the `tachibot` command directly in your configuration.
87
+
88
+ ## Troubleshooting
89
+
90
+ ### Server Not Starting
91
+
92
+ 1. **Check Node.js version**: Ensure you have Node.js 18+ installed
93
+ ```bash
94
+ node --version
95
+ ```
96
+
97
+ 2. **Verify build**: Run the build command
98
+ ```bash
99
+ npm run build
100
+ ```
101
+
102
+ 3. **Test server directly**:
103
+ ```bash
104
+ node dist/src/server.js
105
+ ```
106
+ You should see initialization messages.
107
+
108
+ 4. **Check logs**:
109
+ - Claude Desktop: `tail -f ~/Library/Logs/Claude/mcp-server-tachibot*.log`
110
+ - Claude Code: Check the Output panel in the editor
111
+
112
+ ### ES Module Issues
113
+
114
+ If you see errors about ES modules:
115
+
116
+ 1. Ensure your Node.js version supports ES modules (18+)
117
+ 2. The package.json has `"type": "module"`
118
+ 3. All imports use `.js` extensions
119
+
120
+ ### API Key Issues
121
+
122
+ - API keys can be set in:
123
+ 1. Environment variables (`.env` file)
124
+ 2. Configuration JSON (env section)
125
+ 3. Claude Desktop Extension UI
126
+
127
+ ### Profile Selection
128
+
129
+ Available profiles:
130
+ - `minimal` - 8 tools, ~4-5k tokens
131
+ - `research_power` - 16 tools, ~9-10k tokens
132
+ - `code_focus` - 13 tools, ~8-9k tokens
133
+ - `balanced` - 17 tools, ~10-11k tokens (default)
134
+ - `full` - 26 tools, ~18-19k tokens
135
+
136
+ Set via `TACHIBOT_PROFILE` environment variable.
137
+
138
+ ## Verification
139
+
140
+ After installation, test by asking Claude:
141
+ - "Use the think tool to analyze this"
142
+ - "Use the perplexity_ask tool to search for..."
143
+ - "Use the focus tool for deep reasoning"
144
+
145
+ If tools appear and work, installation is successful!