@brutalist/mcp 0.4.3 → 0.5.1

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
@@ -12,7 +12,7 @@ Three brutal CLI agents. Zero sugar-coating. Maximum carnage.
12
12
 
13
13
  Three brutal CLI agents that can analyze anything. Each agent brings different perspectives to demolish your work from every angle.
14
14
 
15
- Real file-system analysis. Actual brutal prompts. No participation trophies.
15
+ Real file-system analysis. Actual brutal prompts. Intelligent pagination for enterprise codebases. No participation trophies.
16
16
 
17
17
  ## Brutalist Workflows
18
18
 
@@ -175,6 +175,27 @@ Add to `~/.codeium/windsurf/mcp_config.json` or use **Plugin Store**
175
175
  ```
176
176
  </details>
177
177
 
178
+ ## 📄 Pagination Support (v0.5.0+)
179
+
180
+ Handle enterprise-scale analyses that exceed Claude Code's 25K token limit:
181
+
182
+ ```bash
183
+ # Enable pagination for large codebases
184
+ roast_codebase({targetPath: "/monorepo", limit: 20000})
185
+
186
+ # Continue reading from where you left off
187
+ roast_codebase({targetPath: "/monorepo", offset: 20000, limit: 20000})
188
+
189
+ # Smart chunking preserves readability
190
+ roast_codebase({targetPath: "/complex-system", cursor: "offset:25000"})
191
+ ```
192
+
193
+ **Features:**
194
+ - **Smart Boundary Detection** - Preserves paragraphs and sentences
195
+ - **Token Estimation** - Real-time cost awareness (~4 chars = 1 token)
196
+ - **Rich Metadata** - Progress indicators and continuation instructions
197
+ - **Configurable Chunks** - 1K to 100K characters per response
198
+
178
199
  ## Tools
179
200
 
180
201
  ### Code & Architecture Analysis
@@ -4,13 +4,19 @@ export declare class BrutalistServer {
4
4
  server: McpServer;
5
5
  config: BrutalistServerConfig;
6
6
  private cliOrchestrator;
7
+ private httpTransport?;
7
8
  constructor(config?: BrutalistServerConfig);
9
+ private handleStreamingEvent;
10
+ private handleProgressUpdate;
8
11
  start(): Promise<void>;
12
+ private startStdioServer;
13
+ private startHttpServer;
9
14
  private registerTools;
10
15
  private executeCLIDebate;
11
16
  private synthesizeDebate;
12
17
  private executeBrutalistAnalysis;
13
18
  private formatToolResponse;
19
+ private formatPaginatedResponse;
14
20
  private formatErrorResponse;
15
21
  private handleToolExecution;
16
22
  }
@@ -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;AAKpE,OAAO,EACL,qBAAqB,EAItB,MAAM,sBAAsB,CAAC;AAI9B,qBAAa,eAAe;IACnB,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,qBAAqB,CAAC;IACrC,OAAO,CAAC,eAAe,CAAuB;gBAElC,MAAM,GAAE,qBAA0B;IAsBxC,KAAK;IAWX,OAAO,CAAC,aAAa;YA6cP,gBAAgB;IAsE9B,OAAO,CAAC,gBAAgB;YA4CV,wBAAwB;IAyEtC,OAAO,CAAC,kBAAkB;IAgD1B,OAAO,CAAC,mBAAmB;YA8Bb,mBAAmB;CAUlC"}
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,OAAO,CAAC,mBAAmB;YA8Bb,mBAAmB;CAUlC"}