feat: add MCP server and local command history#408
Open
harshal-swe wants to merge 1 commit intoOpenWhispr:mainfrom
Open
feat: add MCP server and local command history#408harshal-swe wants to merge 1 commit intoOpenWhispr:mainfrom
harshal-swe wants to merge 1 commit intoOpenWhispr:mainfrom
Conversation
- Add stdio-based MCP server with tools: get_status, transcribe_audio, start/stop_dictation, get_transcriptions, get_command_history, search_commands, get_command_stats - Add MCP HTTP bridge with token-based auth for secure communication - Add command_log SQLite table that auto-logs every dictation with metadata - Add CommandHistory UI panel with search, filters, stats, export (JSON/CSV) - Add IPC handlers and preload bridge for command history operations - Add i18n translations for command history in all 10 supported languages
Collaborator
|
@harshal-swe thanks for the contribution, im curious, how are you currently using this? |
Author
I am using openwhispr in meetings or to record my thought and then using some other mcp like clickup to create tickets or add comments using claude code. Feels like this mcp would give me my privacy as the data is local and at the same time i can use data i want to go to right place. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Model Context Protocol (MCP) server support and a local verbal command history system to OpenWhispr, enabling AI tools like Claude Code to interact with the app programmatically.
MCP Server (
src/mcp/server.js)get_status,transcribe_audio,start_dictation,stop_dictation,get_transcriptions,get_command_history,search_commands,get_command_statssrc/helpers/mcpBridge.js) running on localhost with token-based authLocal Command History
command_logSQLite table that auto-logs every dictation with metadata (timestamp, duration, model, provider, status, source)db-save-transcriptionIPC handler — zero manual intervention requiredsaveCommandLog,getCommandHistory,searchCommandHistory,getCommandStats,deleteCommandLog,clearCommandHistory,exportCommandHistoryCommand History UI (
src/components/CommandHistory.tsx)Configuration
After installing, add to Claude Code MCP settings:
{ "mcpServers": { "openwhispr": { "command": "node", "args": ["/path/to/openwhispr/src/mcp/server.js"] } } }New dependencies:
@modelcontextprotocol/sdk^1.12.1,zod^3.24.0Test plan
tools/listget_statusreturns app status, model, provider when app is runningcommand_logtable created on first run with proper indexes