Skip to content

Commit 363db80

Browse files
committed
Improved server connection loggingso that all MCP servers now consistently show startup status
1 parent 752e122 commit 363db80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+4972
-849
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ test/
4949

5050
# Other
5151
reference/
52-
ROADMAPS/
52+
ROADMAPS_AND_DEV/

Bibble-Configuration-Guide.md

Lines changed: 0 additions & 175 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,63 @@
22

33
All notable changes to the Bibble project will be documented in this file.
44

5+
## [1.4.5] - 2025-08-29
6+
7+
### 🧹 CLEANUP & JSON PARSING FIXES
8+
9+
### Fixed
10+
- **🔧 CRITICAL: JSON Parsing Errors**: Fixed tool call argument parsing errors caused by concatenated JSON objects
11+
- Fixed issue where multiple tool calls resulted in malformed JSON like `{"path": "..."}{".content": "..."}`
12+
- Implemented proper multi-tool call handling using Map-based tracking by tool call index
13+
- Improved `processStreamResponse` to handle OpenAI streaming with multiple concurrent tool calls
14+
- JSON parsing now gracefully falls back to empty object `{}` on parse errors instead of crashing
15+
- **🔧 Debug Output Removal**: Cleaned up all debug output from chat interface
16+
- Removed all `[CHAT DEBUG]` messages cluttering the terminal output
17+
- Removed `[DEBUG]` tool argument parsing messages
18+
- Removed tool call logging that was showing in every tool execution
19+
- Chat interface now shows clean, professional output without debug noise
20+
21+
### Changed
22+
- **🛠️ Build Configuration**: Updated build script to include missing `zod-to-json-schema` external dependency
23+
- **⚡ Performance**: Improved tool call processing efficiency with better error handling
24+
- **🔌 MCP Server Startup**: Improved server connection logging with more accurate status messages
25+
- Changed from "running on stdio" to "connected successfully" for better accuracy across transport types
26+
- All MCP servers now consistently show their startup status in the terminal
27+
28+
### Technical Details
29+
- **JSON Processing**: Enhanced `processStreamResponse` method to track multiple tool calls by index
30+
- **Error Recovery**: Improved graceful fallback when tool arguments fail to parse
31+
- **Clean Interfaces**: Removed development debug output for production-ready experience
32+
33+
### Impact
34+
- **Before**: JSON parsing errors, cluttered debug output, concatenated tool arguments
35+
- **After**: Clean chat interface, reliable tool call parsing, professional user experience
36+
37+
This release eliminates the frustrating JSON parsing errors and provides a much cleaner, more professional chat experience! 🎯
38+
39+
## [1.4.4] - 2025-08-29
40+
41+
### 🚀 Built-in Tools Integration & Reliability Improvements
42+
43+
### Added
44+
- Built-in tools are now passed to the LLM as callable tools (not just documented in the prompt), ensuring the model can actually invoke them.
45+
- Clear usage examples for common tools (write_file, read_file, list_directory) in the system prompt.
46+
- Strong JSON argument formatting guidance in the system prompt to prevent concatenated JSON objects.
47+
48+
### Fixed
49+
- Tool call argument parsing errors caused by concatenated JSON strings (e.g., `{...}{...}`) now log diagnostic info and safely fall back to `{}` while guidance reduces occurrence.
50+
- Improved tool result formatting for built-in tools so arrays and objects display as readable content rather than `[Array]`/`[Object]`.
51+
- Debug logs now accurately report counts of built-in vs MCP vs control tools at each turn.
52+
53+
### Changed
54+
- Enhanced system prompt with explicit rules: "Tool arguments MUST be a single valid JSON object" and examples of correct vs incorrect usage.
55+
- Directory listing and file operation results show friendly, human-readable summaries.
56+
57+
### Impact
58+
- The LLM consistently sees and uses built-in tools.
59+
- Fewer malformed JSON tool calls; clearer errors when they occur.
60+
- Better, more helpful tool output in the terminal.
61+
562
## [1.4.3] - 2025-08-29
663

764
### 🎯 AGENT INTELLIGENCE & TOOL SYSTEM IMPROVEMENTS

OVERVIEW.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
Bibble is a sophisticated command-line interface (CLI) chatbot application that integrates with multiple language model providers and supports the Model Context Protocol (MCP) for enhanced functionality through external tools. Built with TypeScript, it provides a robust terminal-based AI assistant experience with comprehensive tool integration.
44

5-
**Version**: 1.4.3
5+
**Version**: 1.4.5
66
**Author**: Pink Pixel
77
**NPM Package**: @pinkpixel/bibble
8-
*Last updated: August 29, 2025 - 05:11 UTC*
8+
*Last updated: August 29, 2025 - 09:45 UTC*
99

1010
## Project Overview
1111

@@ -376,6 +376,42 @@ Version 1.4.0 introduces a **REVOLUTIONARY TOOL CALLING INTERFACE** that transfo
376376
- `BIBBLE_ENHANCED_TOOLS=true` (default): Enable enhanced tool display
377377
- `BIBBLE_ENHANCED_TOOLS=false`: Use legacy display for compatibility
378378

379+
### Built-in Tools Integration (v1.4.4) - August 29, 2025
380+
381+
Version 1.4.4 introduces **COMPREHENSIVE BUILT-IN TOOLS INTEGRATION** that eliminates the need for external MCP server dependencies while providing superior performance and reliability:
382+
383+
**🛠️ Complete Built-in Tools Suite:**
384+
- **Filesystem Tools**: `read_file`, `write_file`, `create_directory`, `list_directory`, `move_file`, `copy_file`, `delete_file`, `get_file_info`, `find_files`
385+
- **Process Management**: `execute_command`, `get_processes`, `kill_process`, `monitor_process`
386+
- **Search Capabilities**: `search_files`, `search_in_file`, `grep_search` with powerful ripgrep integration
387+
- **Text Editing**: `find_replace_in_file`, `insert_text`, `delete_lines` with fuzzy matching fallback
388+
- **Configuration Management**: Integrated configuration system with security and validation
389+
390+
**🎯 Key Benefits:**
391+
- **Self-Contained**: No external MCP server dependencies required
392+
- **Enhanced Performance**: Direct integration eliminates MCP overhead
393+
- **Higher Limits**: 10,000+ line file operations vs typical 1,000 line MCP limits
394+
- **Better Error Handling**: Native error handling with graceful degradation
395+
- **Security Features**: Path validation, access controls, and secure command execution
396+
397+
**🏗️ Architecture Integration:**
398+
- **Location**: Complete implementation in `src/tools/built-in/` directory
399+
- **Organization**: Modular structure with config, filesystem, process, search, and edit categories
400+
- **Type Safety**: Comprehensive TypeScript interfaces and validation
401+
- **Agent Integration**: Seamless registration with Bibble's Agent class alongside existing MCP tools
402+
403+
**🔧 Technical Implementation:**
404+
- **Registry System**: `BuiltInToolRegistry` manages tool registration and lifecycle
405+
- **Utilities**: Comprehensive utilities for security, validation, and cross-platform compatibility
406+
- **Configuration**: Integrated with existing Bibble configuration system
407+
- **Error Handling**: Consistent error patterns matching Bibble's existing architecture
408+
409+
**⚡ Performance Features:**
410+
- **Streaming**: Large file handling with efficient streaming
411+
- **Background Processing**: Non-blocking operations for search and process management
412+
- **Memory Efficiency**: Optimized memory usage for large operations
413+
- **Cross-Platform**: Full Windows, macOS, and Linux compatibility
414+
379415
### Security Policy & Conversation Fixes (v1.4.2) - August 29, 2025
380416

381417
Version 1.4.2 addresses critical security policy UX issues and eliminates the duplicate response problem for a **CLEANER AND MORE RELIABLE USER EXPERIENCE**:

0 commit comments

Comments
 (0)