@brutalist/mcp 0.5.0 → 0.6.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/README.md CHANGED
@@ -14,6 +14,69 @@ Three brutal CLI agents that can analyze anything. Each agent brings different p
14
14
 
15
15
  Real file-system analysis. Actual brutal prompts. Intelligent pagination for enterprise codebases. No participation trophies.
16
16
 
17
+ ### Prerequisites
18
+
19
+ Install at least one CLI agent:
20
+ - **Claude Code**: `npm install -g claude` (or via Claude desktop app)
21
+ - **Codex**: Install from [OpenAI Codex](https://github.com/openai/codex-cli)
22
+ - **Gemini**: `npm install -g @google/gemini-cli` or authenticate via `gemini auth`
23
+
24
+ ### Setup
25
+
26
+ <details>
27
+ <summary><strong>Claude Code</strong> — One-liner</summary>
28
+
29
+ ```bash
30
+ claude mcp add brutalist --scope user -- npx -y @brutalist/mcp
31
+ ```
32
+ </details>
33
+
34
+ <details>
35
+ <summary><strong>VS Code / Cline</strong> — Manual config</summary>
36
+
37
+ ```bash
38
+ code --add-mcp '{"name":"brutalist","command":"npx","args":["-y","@brutalist/mcp"]}'
39
+ ```
40
+ </details>
41
+
42
+ <details>
43
+ <summary><strong>Gemini CLI</strong> — One-liner</summary>
44
+
45
+ ```bash
46
+ gemini mcp add brutalist -- npx -y @brutalist/mcp
47
+ ```
48
+ </details>
49
+
50
+ <details>
51
+ <summary><strong>Cursor</strong> — Manual config</summary>
52
+
53
+ Add to `~/.cursor/mcp.json` or use **Settings → MCP & Integrations**
54
+
55
+ ```json
56
+ {
57
+ "brutalist": {
58
+ "command": "npx",
59
+ "args": ["-y", "@brutalist/mcp"]
60
+ }
61
+ }
62
+ ```
63
+ </details>
64
+
65
+ <details>
66
+ <summary><strong>Windsurf</strong> — Manual config</summary>
67
+
68
+ Add to `~/.codeium/windsurf/mcp_config.json` or use **Plugin Store**
69
+
70
+ ```json
71
+ {
72
+ "brutalist": {
73
+ "command": "npx",
74
+ "args": ["-y", "@brutalist/mcp"]
75
+ }
76
+ }
77
+ ```
78
+ </details>
79
+
17
80
  ## Brutalist Workflows
18
81
 
19
82
  ### 🔍 **Codebase Destruction**
@@ -112,69 +175,6 @@ Each agent runs locally on your machine with custom brutal prompts to find real
112
175
 
113
176
  **⏱️ Analysis Timeout:** 25 minutes default - thorough analysis takes time to find real issues. Complex codebases and architectural reviews need deep analysis to catch subtle problems that quick scans miss.
114
177
 
115
- ## Setup
116
-
117
- ### Prerequisites
118
-
119
- Install at least one CLI agent:
120
- - **Claude Code**: `npm install -g claude` (or via Claude desktop app)
121
- - **Codex**: Install from [OpenAI Codex](https://github.com/openai/codex-cli)
122
- - **Gemini**: `npm install -g @google/gemini-cli` or authenticate via `gemini auth`
123
-
124
- <details>
125
- <summary><strong>Claude Code</strong> — One-liner</summary>
126
-
127
- ```bash
128
- claude mcp add brutalist --scope user -- npx -y @brutalist/mcp
129
- ```
130
- </details>
131
-
132
- <details>
133
- <summary><strong>VS Code / Cline</strong> — Manual config</summary>
134
-
135
- ```bash
136
- code --add-mcp '{"name":"brutalist","command":"npx","args":["-y","@brutalist/mcp"]}'
137
- ```
138
- </details>
139
-
140
- <details>
141
- <summary><strong>Gemini CLI</strong> — One-liner</summary>
142
-
143
- ```bash
144
- gemini mcp add brutalist -- npx -y @brutalist/mcp
145
- ```
146
- </details>
147
-
148
- <details>
149
- <summary><strong>Cursor</strong> — Manual config</summary>
150
-
151
- Add to `~/.cursor/mcp.json` or use **Settings → MCP & Integrations**
152
-
153
- ```json
154
- {
155
- "brutalist": {
156
- "command": "npx",
157
- "args": ["-y", "@brutalist/mcp"]
158
- }
159
- }
160
- ```
161
- </details>
162
-
163
- <details>
164
- <summary><strong>Windsurf</strong> — Manual config</summary>
165
-
166
- Add to `~/.codeium/windsurf/mcp_config.json` or use **Plugin Store**
167
-
168
- ```json
169
- {
170
- "brutalist": {
171
- "command": "npx",
172
- "args": ["-y", "@brutalist/mcp"]
173
- }
174
- }
175
- ```
176
- </details>
177
-
178
178
  ## 📄 Pagination Support (v0.5.0+)
179
179
 
180
180
  Handle enterprise-scale analyses that exceed Claude Code's 25K token limit:
@@ -5,6 +5,7 @@ export declare class BrutalistServer {
5
5
  config: BrutalistServerConfig;
6
6
  private cliOrchestrator;
7
7
  private httpTransport?;
8
+ private responseCache;
8
9
  constructor(config?: BrutalistServerConfig);
9
10
  private handleStreamingEvent;
10
11
  private handleProgressUpdate;
@@ -12,9 +13,18 @@ export declare class BrutalistServer {
12
13
  private startStdioServer;
13
14
  private startHttpServer;
14
15
  private registerTools;
16
+ private registerSpecialTools;
17
+ /**
18
+ * Unified handler for all roast tools - DRY principle
19
+ */
20
+ private handleRoastTool;
15
21
  private executeCLIDebate;
16
22
  private synthesizeDebate;
17
23
  private executeBrutalistAnalysis;
24
+ /**
25
+ * Extract full content from analysis result for caching
26
+ */
27
+ private extractFullContent;
18
28
  private formatToolResponse;
19
29
  private formatPaginatedResponse;
20
30
  private formatErrorResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"brutalist-server.d.ts","sourceRoot":"","sources":["../src/brutalist-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAQpE,OAAO,EACL,qBAAqB,EAKtB,MAAM,sBAAsB,CAAC;AAa9B,qBAAa,eAAe;IACnB,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,qBAAqB,CAAC;IACrC,OAAO,CAAC,eAAe,CAAuB;IAC9C,OAAO,CAAC,aAAa,CAAC,CAAgC;gBAE1C,MAAM,GAAE,qBAA0B;IAwB9C,OAAO,CAAC,oBAAoB,CAgB1B;IAEF,OAAO,CAAC,oBAAoB,CAmB1B;IAEI,KAAK;YAeG,gBAAgB;YAMhB,eAAe;IAqE7B,OAAO,CAAC,aAAa;YAqhBP,gBAAgB;IAkK9B,OAAO,CAAC,gBAAgB;YAwFV,wBAAwB;IAuFtC,OAAO,CAAC,kBAAkB;IAwD1B,OAAO,CAAC,uBAAuB;IAwE/B,O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