Skip to content

Commit

Permalink
♻️ Refactor SSE and stdio servers to use unified protocol dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
wesen committed Jan 24, 2025
1 parent 73afb5a commit 4a035a1
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 657 deletions.
12 changes: 11 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,4 +341,14 @@ Changed SQLite tool output format from JSON to YAML for better readability.
Added tools for analyzing and querying the Cursor database:
- Added conversation management tools for retrieving and searching conversations
- Added code analysis tools for extracting and tracking code blocks
- Added context management tools for accessing file references and conversation context
- Added context management tools for accessing file references and conversation context

# Changelog

## Unified Protocol Dispatcher

Refactored SSE and stdio servers to use a common protocol dispatcher to handle MCP protocol methods. This improves code reuse and maintainability by:
- Creating a central dispatcher package for handling all protocol methods
- Unifying error handling and response creation
- Adding proper context handling for session IDs
- Reducing code duplication between transport implementations
Loading

0 comments on commit 4a035a1

Please sign in to comment.