feat: Add torch MCP tools for multi-browser control
- Add torchHandlers.ts with 5 tools: - list_torch_clients: list connected browsers with metadata - get_torch_status: show current torch holder - transfer_torch: transfer control to another browser - request_torch: request MCP control - release_torch: release MCP control - Add 'transfer' message type to server torch-handler - Add torch category to all pages - Export helper functions from torch.ts
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export type ToolCategory = 'global' | 'canvas' | 'component' | 'theme' | 'database' | 'source' | 'project' | 'terminal' | 'git'
|
||||
export type ToolCategory = 'global' | 'canvas' | 'component' | 'theme' | 'database' | 'source' | 'project' | 'terminal' | 'git' | 'torch'
|
||||
|
||||
export interface ToolMeta {
|
||||
name: string
|
||||
@@ -75,7 +75,14 @@ export const ALL_TOOL_METAS: ToolMeta[] = [
|
||||
{ name: 'get_git_diff', description: 'Obtiene el diff de cambios no commiteados', category: 'git' },
|
||||
{ name: 'compare_commits', description: 'Compara dos commits o ramas', category: 'git' },
|
||||
{ name: 'git_log', description: 'Obtiene el historial de commits', category: 'git' },
|
||||
{ name: 'get_git_branches', description: 'Lista todas las ramas del repositorio', category: 'git' }
|
||||
{ name: 'get_git_branches', description: 'Lista todas las ramas del repositorio', category: 'git' },
|
||||
|
||||
// Torch tools (multi-browser MCP control)
|
||||
{ name: 'list_torch_clients', description: 'Lista browsers conectados al sistema de antorcha', category: 'torch' },
|
||||
{ name: 'get_torch_status', description: 'Obtiene quien tiene el control del MCP', category: 'torch' },
|
||||
{ name: 'transfer_torch', description: 'Transfiere el control a otro browser', category: 'torch' },
|
||||
{ name: 'request_torch', description: 'Solicita el control del MCP', category: 'torch' },
|
||||
{ name: 'release_torch', description: 'Libera el control del MCP', category: 'torch' }
|
||||
]
|
||||
|
||||
// Get all tool names
|
||||
|
||||
Reference in New Issue
Block a user