@usewhisper/mcp-server 0.4.0 → 0.5.0

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.
Files changed (57) hide show
  1. package/README.md +182 -154
  2. package/dist/autosubscribe-6EDKPBE2.js +4068 -4068
  3. package/dist/autosubscribe-GHO6YR5A.js +4068 -4068
  4. package/dist/autosubscribe-ISDETQIB.js +435 -435
  5. package/dist/chunk-3WGYBAYR.js +8387 -8387
  6. package/dist/chunk-52VJYCZ7.js +455 -455
  7. package/dist/chunk-5KBZQHDL.js +189 -189
  8. package/dist/chunk-5KIJNY6Z.js +370 -370
  9. package/dist/chunk-7SN3CKDK.js +1076 -1076
  10. package/dist/chunk-B3VWOHUA.js +271 -271
  11. package/dist/chunk-C57DHKTL.js +459 -459
  12. package/dist/chunk-EI5CE3EY.js +616 -616
  13. package/dist/chunk-FTWUJBAH.js +386 -386
  14. package/dist/chunk-H3HSKH2P.js +4841 -4841
  15. package/dist/chunk-JO3ORBZD.js +616 -616
  16. package/dist/chunk-L6DXSM2U.js +456 -456
  17. package/dist/chunk-LMEYV4JD.js +368 -368
  18. package/dist/chunk-MEFLJ4PV.js +8385 -8385
  19. package/dist/chunk-OBLI4FE4.js +275 -275
  20. package/dist/chunk-PPGYJJED.js +271 -271
  21. package/dist/chunk-QGM4M3NI.js +37 -37
  22. package/dist/chunk-T7KMSTWP.js +399 -399
  23. package/dist/chunk-TWEIYHI6.js +399 -399
  24. package/dist/chunk-UYWE7HSU.js +368 -368
  25. package/dist/chunk-X2DL2GWT.js +32 -32
  26. package/dist/chunk-X7HNNNJJ.js +1079 -1079
  27. package/dist/consolidation-2GCKI4RE.js +220 -220
  28. package/dist/consolidation-4JOPW6BG.js +220 -220
  29. package/dist/consolidation-FOVQTWNQ.js +222 -222
  30. package/dist/consolidation-IFQ52E44.js +209 -209
  31. package/dist/context-sharing-4ITCNKG4.js +307 -307
  32. package/dist/context-sharing-6CCFIAKL.js +275 -275
  33. package/dist/context-sharing-GYKLXHZA.js +307 -307
  34. package/dist/context-sharing-PH64JTXS.js +308 -308
  35. package/dist/context-sharing-Y6LTZZOF.js +307 -307
  36. package/dist/cost-optimization-6OIKRSBV.js +195 -195
  37. package/dist/cost-optimization-7DVSTL6R.js +307 -307
  38. package/dist/cost-optimization-BH5NAX33.js +286 -286
  39. package/dist/cost-optimization-F3L5BS5F.js +303 -303
  40. package/dist/ingest-2LPTWUUM.js +16 -16
  41. package/dist/ingest-7T5FAZNC.js +15 -15
  42. package/dist/ingest-EBNIE7XB.js +15 -15
  43. package/dist/ingest-FSHT5BCS.js +15 -15
  44. package/dist/ingest-QE2BTV72.js +14 -14
  45. package/dist/oracle-3RLQF3DP.js +259 -259
  46. package/dist/oracle-FKRTQUUG.js +282 -282
  47. package/dist/oracle-J47QCSEW.js +263 -263
  48. package/dist/oracle-MDP5MZRC.js +256 -256
  49. package/dist/search-BLVHWLWC.js +14 -14
  50. package/dist/search-CZ5NYL5B.js +12 -12
  51. package/dist/search-EG6TYWWW.js +13 -13
  52. package/dist/search-I22QQA7T.js +13 -13
  53. package/dist/search-T7H5G6DW.js +13 -13
  54. package/dist/server.d.ts +2 -2
  55. package/dist/server.js +1595 -96
  56. package/dist/server.js.map +1 -1
  57. package/package.json +51 -51
package/README.md CHANGED
@@ -2,169 +2,197 @@
2
2
 
3
3
  Model Context Protocol server for [Whisper Context API](https://usewhisper.dev) - Connect Claude Desktop to your knowledge base.
4
4
 
5
- **Version 0.2.0** - Now with 15 tools including SOTA Memory System, Oracle Research Mode, and Cost Optimization!
6
-
7
- ## What is MCP?
8
-
9
- The Model Context Protocol (MCP) allows Claude Desktop to connect directly to external knowledge sources and tools. This server gives Claude Desktop access to your Whisper Context projects, enabling seamless RAG-powered conversations with advanced memory and research capabilities.
10
-
11
- ## Installation
12
-
13
- ```bash
14
- npm install -g @usewhisper/mcp-server
15
- ```
16
-
17
- ## Setup
18
-
19
- ### 1. Get Your API Key
20
-
21
- Get your Whisper API key from the [dashboard](https://usewhisper.dev/dashboard).
22
-
23
- ### 2. Configure Claude Desktop
24
-
25
- Add to your Claude Desktop config file:
26
-
27
- **MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
28
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
29
-
30
- ```json
31
- {
32
- "mcpServers": {
33
- "whisper-context": {
34
- "command": "whisper-context-mcp",
35
- "env": {
36
- "WHISPER_API_KEY": "wctx_...",
37
- "WHISPER_PROJECT": "my-project"
38
- }
39
- }
40
- }
41
- }
42
- ```
43
-
44
- **Optional environment variables:**
45
- - `WHISPER_BASE_URL`: Custom API endpoint (defaults to `https://context.usewhisper.dev`)
46
-
47
- ### 3. Restart Claude Desktop
48
-
49
- After configuration, restart Claude Desktop. The MCP server will appear in the bottom-right corner.
5
+ Whisper makes code agents refuse unsupported claims about your codebase by combining retrieval, claim verification, and evidence-locked answering.
50
6
 
7
+ **Version 0.2.0** - Now with 15 tools including SOTA Memory System, Oracle Research Mode, and Cost Optimization!
8
+
9
+ ## What is MCP?
10
+
11
+ The Model Context Protocol (MCP) allows Claude Desktop to connect directly to external knowledge sources and tools. This server gives Claude Desktop access to your Whisper Context projects, enabling seamless RAG-powered conversations with advanced memory and research capabilities.
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ npm install -g @usewhisper/mcp-server
17
+ ```
18
+
19
+ ## Setup
20
+
21
+ ### 1. Get Your API Key
22
+
23
+ Get your Whisper API key from the [dashboard](https://usewhisper.dev/dashboard).
24
+
25
+ ### 2. Configure Claude Desktop
26
+
27
+ Add to your Claude Desktop config file:
28
+
29
+ **MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
30
+ **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
31
+
32
+ ```json
33
+ {
34
+ "mcpServers": {
35
+ "whisper-context": {
36
+ "command": "whisper-context-mcp",
37
+ "env": {
38
+ "WHISPER_API_KEY": "wctx_...",
39
+ "WHISPER_PROJECT": "my-project"
40
+ }
41
+ }
42
+ }
43
+ }
44
+ ```
45
+
46
+ **Optional environment variables:**
47
+ - `WHISPER_BASE_URL`: Custom API endpoint (defaults to `https://context.usewhisper.dev`)
48
+
49
+ ### 3. Restart Claude Desktop
50
+
51
+ After configuration, restart Claude Desktop. The MCP server will appear in the bottom-right corner.
52
+
51
53
  ## Available Tools
52
54
 
53
55
  Once connected, Claude Desktop gets access to these tools:
54
56
 
57
+ ### Trust pipeline (recommended first)
58
+
59
+ 1. `resolve_workspace`
60
+ 2. `repo_index_status`
61
+ 3. `get_relevant_context`
62
+ 4. `claim_verifier`
63
+ 5. `evidence_locked_answer`
64
+
55
65
  ### query_context
56
66
  Search your knowledge base with hybrid vector+keyword search, memory inclusion, and knowledge graph traversal.
57
-
58
- ```
59
- Query your docs project for "authentication flow"
60
- ```
61
-
67
+
68
+ ```
69
+ Query your docs project for "authentication flow"
70
+ ```
71
+
62
72
  ### add_memory
63
73
  Store persistent memories (facts, preferences, decisions) across conversations.
64
-
65
- ```
66
- Remember that I prefer TypeScript over JavaScript
67
- ```
68
-
69
- ### search_memories
70
- Recall facts and preferences from previous interactions.
71
-
72
- ```
73
- What programming languages do I prefer?
74
- ```
75
-
76
- ### list_projects
77
- List all available context projects.
78
-
79
- ### list_sources
80
- See all data sources connected to a project (GitHub, Notion, Confluence, etc).
81
-
82
- ### add_context
83
- Add text content directly to your knowledge base.
84
-
85
- ```
86
- Add this API documentation to my docs project
87
- ```
88
-
89
- ### track_conversation
90
- Record conversation messages for context tracking.
91
-
74
+
75
+ ```
76
+ Remember that I prefer TypeScript over JavaScript
77
+ ```
78
+
79
+ ### search_memories
80
+ Recall facts and preferences from previous interactions.
81
+
82
+ ```
83
+ What programming languages do I prefer?
84
+ ```
85
+
86
+ ### list_projects
87
+ List all available context projects.
88
+
89
+ ### list_sources
90
+ See all data sources connected to a project (GitHub, Notion, Confluence, etc).
91
+
92
+ ### add_context
93
+ Add text content directly to your knowledge base.
94
+
95
+ ```
96
+ Add this API documentation to my docs project
97
+ ```
98
+
99
+ ### track_conversation
100
+ Record conversation messages for context tracking.
101
+
92
102
  ### get_conversation
93
103
  Retrieve conversation history for a session.
94
104
 
95
- ## Usage Examples
96
-
97
- Once configured, you can chat with Claude Desktop naturally:
98
-
99
- ```
100
- You: "Query my engineering-docs project for how to deploy to production"
101
- Claude: [Uses query_context tool to search your docs]
102
-
103
- You: "Remember that our staging environment is at staging.example.com"
104
- Claude: [Uses add_memory to store this fact]
105
-
106
- You: "What projects do I have?"
107
- Claude: [Uses list_projects to show all your context projects]
108
- ```
109
-
110
- ## Features
111
-
112
- - **Semantic Search**: Vector embeddings + BM25 hybrid search
113
- - **Conversational Memory**: Persistent memories across sessions
114
- - **Knowledge Graph**: Graph-based context traversal
115
- - **Auto-sync Sources**: GitHub, Notion, Confluence, Slack, and 10+ more
116
- - **Direct Ingestion**: Add content directly from conversations
117
- - **Session Tracking**: Maintains conversation context
118
-
119
- ## Architecture
120
-
121
- The MCP server connects to your Whisper Context API:
122
- - **Whisper Context API** for semantic search, memory, and knowledge graph
123
- - **Stdio Transport** for Claude Desktop communication
124
- - **Zero dependencies** on database or infrastructure
125
-
126
- ## Environment Variables
127
-
128
- | Variable | Required | Description |
129
- |----------|----------|-------------|
130
- | `WHISPER_API_KEY` | Yes | Your Whisper API key (get from dashboard) |
131
- | `WHISPER_PROJECT` | Optional | Default project name/slug for all operations |
132
- | `WHISPER_BASE_URL` | Optional | Custom API endpoint (defaults to https://context.usewhisper.dev) |
133
-
134
- ## Troubleshooting
135
-
136
- ### Server not appearing in Claude Desktop
137
-
138
- 1. Check the config file path is correct
139
- 2. Verify JSON syntax is valid
140
- 3. Restart Claude Desktop completely
141
- 4. Check Claude Desktop logs: `~/Library/Logs/Claude/` (Mac) or `%APPDATA%\Claude\logs\` (Windows)
142
-
143
- ### Connection errors
144
-
145
- - Verify your `WHISPER_API_KEY` is valid (starts with `wctx_`)
146
- - Check that you have network connectivity to the API
147
- - Ensure your API key has the necessary permissions
148
-
149
- ### "Project not found" errors
150
-
151
- - Make sure your project name/slug is correct
152
- - Set `WHISPER_PROJECT` in config for a default project
153
- - Use `list_projects` tool to see all available projects
154
-
155
- ### No results from queries
156
-
157
- - Make sure your project has data sources connected or documents ingested
158
- - Verify the project name/slug matches exactly
159
- - Check that sources have been synced successfully in the dashboard
160
-
161
- ## Links
162
-
163
- - [Documentation](https://docs.usewhisper.dev/mcp)
164
- - [MCP Protocol](https://modelcontextprotocol.io)
165
- - [GitHub](https://github.com/usewhisper/whisper)
166
- - [Website](https://usewhisper.dev)
167
-
168
- ## License
169
-
170
- MIT
105
+ ### get_relevant_context
106
+ Core retrieval contract with ranked evidence payloads (`path:line` ready).
107
+
108
+ ### claim_verifier
109
+ Checks a claim and returns `supported | partial | unsupported` with evidence spans.
110
+
111
+ ### evidence_locked_answer
112
+ Returns a cited answer only when thresholds are met; otherwise returns explicit abstain payload.
113
+
114
+ ### forget
115
+ Deletes or invalidates memories with immutable audit metadata.
116
+
117
+ ### export_context_bundle / import_context_bundle
118
+ Round-trip project/workspace context in a portable bundle with checksum verification.
119
+
120
+ ### diff_context
121
+ Deterministic change view anchored by `session_id`, `timestamp`, or `commit`.
122
+
123
+ ## Usage Examples
124
+
125
+ Once configured, you can chat with Claude Desktop naturally:
126
+
127
+ ```
128
+ You: "Query my engineering-docs project for how to deploy to production"
129
+ Claude: [Uses query_context tool to search your docs]
130
+
131
+ You: "Remember that our staging environment is at staging.example.com"
132
+ Claude: [Uses add_memory to store this fact]
133
+
134
+ You: "What projects do I have?"
135
+ Claude: [Uses list_projects to show all your context projects]
136
+ ```
137
+
138
+ ## Features
139
+
140
+ - **Semantic Search**: Vector embeddings + BM25 hybrid search
141
+ - **Conversational Memory**: Persistent memories across sessions
142
+ - **Knowledge Graph**: Graph-based context traversal
143
+ - **Auto-sync Sources**: GitHub, Notion, Confluence, Slack, and 10+ more
144
+ - **Direct Ingestion**: Add content directly from conversations
145
+ - **Session Tracking**: Maintains conversation context
146
+
147
+ ## Architecture
148
+
149
+ The MCP server connects to your Whisper Context API:
150
+ - **Whisper Context API** for semantic search, memory, and knowledge graph
151
+ - **Stdio Transport** for Claude Desktop communication
152
+ - **Zero dependencies** on database or infrastructure
153
+
154
+ ## Environment Variables
155
+
156
+ | Variable | Required | Description |
157
+ |----------|----------|-------------|
158
+ | `WHISPER_API_KEY` | Yes | Your Whisper API key (get from dashboard) |
159
+ | `WHISPER_PROJECT` | Optional | Default project name/slug for all operations |
160
+ | `WHISPER_BASE_URL` | Optional | Custom API endpoint (defaults to https://context.usewhisper.dev) |
161
+
162
+ ## Troubleshooting
163
+
164
+ ### Server not appearing in Claude Desktop
165
+
166
+ 1. Check the config file path is correct
167
+ 2. Verify JSON syntax is valid
168
+ 3. Restart Claude Desktop completely
169
+ 4. Check Claude Desktop logs: `~/Library/Logs/Claude/` (Mac) or `%APPDATA%\Claude\logs\` (Windows)
170
+
171
+ ### Connection errors
172
+
173
+ - Verify your `WHISPER_API_KEY` is valid (starts with `wctx_`)
174
+ - Check that you have network connectivity to the API
175
+ - Ensure your API key has the necessary permissions
176
+
177
+ ### "Project not found" errors
178
+
179
+ - Make sure your project name/slug is correct
180
+ - Set `WHISPER_PROJECT` in config for a default project
181
+ - Use `list_projects` tool to see all available projects
182
+
183
+ ### No results from queries
184
+
185
+ - Make sure your project has data sources connected or documents ingested
186
+ - Verify the project name/slug matches exactly
187
+ - Check that sources have been synced successfully in the dashboard
188
+
189
+ ## Links
190
+
191
+ - [Documentation](https://docs.usewhisper.dev/mcp)
192
+ - [MCP Protocol](https://modelcontextprotocol.io)
193
+ - [GitHub](https://github.com/usewhisper/whisper)
194
+ - [Website](https://usewhisper.dev)
195
+
196
+ ## License
197
+
198
+ MIT