@@ -221,30 +221,6 @@ function generateHistory(
221221 return months ;
222222}
223223
224- // ---------------------------------------------------------------------------
225- // Response Formatting
226- // ---------------------------------------------------------------------------
227-
228- function formatBudgetSummary ( data : BudgetDataResponse ) : string {
229- const lines : string [ ] = [
230- "Budget Allocator Configuration" ,
231- "==============================" ,
232- "" ,
233- `Default Budget: ${ data . config . currencySymbol } ${ data . config . defaultBudget . toLocaleString ( ) } ` ,
234- `Available Presets: ${ data . config . presetBudgets . map ( ( b ) => `${ data . config . currencySymbol } ${ b . toLocaleString ( ) } ` ) . join ( ", " ) } ` ,
235- "" ,
236- "Categories:" ,
237- ...data . config . categories . map (
238- ( c ) => ` - ${ c . name } : ${ c . defaultPercent } % default` ,
239- ) ,
240- "" ,
241- `Historical Data: ${ data . analytics . history . length } months` ,
242- `Benchmark Stages: ${ data . analytics . stages . join ( ", " ) } ` ,
243- `Default Stage: ${ data . analytics . defaultStage } ` ,
244- ] ;
245- return lines . join ( "\n" ) ;
246- }
247-
248224// ---------------------------------------------------------------------------
249225// MCP Server Setup
250226// ---------------------------------------------------------------------------
@@ -263,7 +239,6 @@ server.registerTool(
263239 description :
264240 "Returns budget configuration with 24 months of historical allocations and industry benchmarks by company stage" ,
265241 inputSchema : { } ,
266- outputSchema : BudgetDataResponseSchema . shape ,
267242 _meta : { [ RESOURCE_URI_META_KEY ] : resourceUri } ,
268243 } ,
269244 async ( ) : Promise < CallToolResult > => {
@@ -292,10 +267,9 @@ server.registerTool(
292267 content : [
293268 {
294269 type : "text" ,
295- text : formatBudgetSummary ( response ) ,
270+ text : JSON . stringify ( response ) ,
296271 } ,
297272 ] ,
298- structuredContent : response ,
299273 } ;
300274 } ,
301275) ;
0 commit comments