From c256eaaaa79b544cd25fc5e7490e3375cb7a15db Mon Sep 17 00:00:00 2001 From: Antonio Zaitoun Date: Fri, 20 Feb 2026 19:11:08 +0200 Subject: [PATCH 1/3] Small tool improvements --- src/server/mcp-handler.ts | 5 ++--- web-ui/home.html | 10 +++++++++- web-ui/index.html | 23 +++++++++++++++++++++-- web-ui/project.html | 23 +++++++++++++++++++++-- 4 files changed, 53 insertions(+), 8 deletions(-) diff --git a/src/server/mcp-handler.ts b/src/server/mcp-handler.ts index b977f46..c6a7192 100644 --- a/src/server/mcp-handler.ts +++ b/src/server/mcp-handler.ts @@ -13,7 +13,6 @@ import { SessionManager } from './session-manager'; import { CommandToolExecutor } from './tool-executor'; import { MCPProxy } from './mcp-proxy'; import { SubprocessManager } from './subprocess-manager'; -import { extractAllVariables } from '../shared/variable-resolver'; import { VERSION } from '../version'; import { logger } from '../shared/logger'; @@ -93,7 +92,7 @@ export class CapaMCPServer { // On-demand mode: Only expose meta-tools (setup_tools and call_tool) tools.push({ name: 'setup_tools', - description: 'Activate skills and load their required tools. Returns the full list of available tools with their schemas for your reference.', + description: 'Activate skills and load their required tools. This tool should always be called when the agent learns (loads) a skill. Returns the full list of available tools with their schemas for your reference.', inputSchema: { type: 'object', properties: { @@ -743,7 +742,7 @@ export class CapaMCPServer { // On-demand mode: Only expose meta-tools (setup_tools and call_tool) tools.push({ name: 'setup_tools', - description: 'Activate skills and load their required tools. Returns the full list of available tools with their schemas for your reference.', + description: 'Activate skills and load their required tools. This tool should always be called when the agent learns (loads) a skill. Returns the full list of available tools with their schemas for your reference.', inputSchema: { type: 'object', properties: { diff --git a/web-ui/home.html b/web-ui/home.html index e4d5d92..a622c66 100644 --- a/web-ui/home.html +++ b/web-ui/home.html @@ -100,6 +100,7 @@ color: var(--text-secondary); font-size: 13px; transition: background-color 0.2s, border-color 0.2s; + margin-left: 16px; } .theme-toggle:hover { @@ -610,6 +611,12 @@

No projects configured

} } + function projectDisplayName(path, fallback) { + if (!path) return fallback || 'Unknown'; + const parts = path.replace(/[/\\]$/, '').split(/[/\\]/); + return parts.filter(Boolean).pop() || fallback || 'Unknown'; + } + function createProjectRow(project) { const row = document.createElement('a'); row.className = 'project-row'; @@ -617,10 +624,11 @@

No projects configured

const lastUpdated = new Date(project.updated_at); const formattedDate = formatDate(lastUpdated); + const displayName = projectDisplayName(project.path, project.id); row.innerHTML = `
-
${escapeHtml(project.id)}
+
${escapeHtml(displayName)}
${escapeHtml(project.path)}
${project.skills_count}
diff --git a/web-ui/index.html b/web-ui/index.html index ccdcb4f..d8cbf97 100644 --- a/web-ui/index.html +++ b/web-ui/index.html @@ -159,7 +159,7 @@ color: var(--text-secondary); font-size: 13px; transition: background-color 0.2s, border-color 0.2s; - margin-left: auto; + margin-left: 16px; } .theme-toggle:hover { @@ -176,7 +176,7 @@ display: flex; align-items: center; gap: 8px; - margin-left: 16px; + margin-left: auto; } .nav-link { @@ -680,6 +680,15 @@ Loading...