claude-brain 0.27.2 → 0.27.3
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.
- package/VERSION +1 -1
- package/package.json +1 -1
- package/src/server/handlers/list-tools.ts +6 -6
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.27.
|
|
1
|
+
0.27.3
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* List Tools Handler
|
|
3
3
|
* Handles the MCP tools/list request
|
|
4
4
|
*
|
|
5
|
-
* In unified tool mode (
|
|
6
|
-
* In legacy mode, all
|
|
5
|
+
* In unified tool mode (default), exposes brain + search_code.
|
|
6
|
+
* In legacy mode, all tools are exposed.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { ToolRegistry } from '@/tools/registry'
|
|
@@ -19,10 +19,10 @@ export async function handleListTools() {
|
|
|
19
19
|
try {
|
|
20
20
|
const { config } = getServices()
|
|
21
21
|
if (config.unifiedToolMode) {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
22
|
+
const tools = ['brain', 'search_code']
|
|
23
|
+
.map(name => ToolRegistry.getToolByName(name))
|
|
24
|
+
.filter(Boolean)
|
|
25
|
+
return { tools }
|
|
26
26
|
}
|
|
27
27
|
} catch {
|
|
28
28
|
// Services not ready, fall through to default
|