Skip to content

Reverse Engineering / Authorized Penetration Testing / Security Research Skill Router Pack AI-powered routing + On-demand toolchain bootstrapping + Self-evolving knowledge base Supports Claude Code, Kiro, Cursor, Cline, and other AI coding clients 逆向/渗透/安全技能路由包 - AI 自动路由 + 按需自举工具链 + 自动进化经验库 | 支持 Claude Code / Kiro / Cursor / Cline 等代码 AI 客户端

Shell

fix: separate MCP capability readiness from npx presence

jhuang-tw33015cc3f45f
diff --git a/skills/scripts/lib/ToolDiscovery.ps1 b/skills/scripts/lib/ToolDiscovery.ps1
index f81129b..32b5fac 100644
--- a/skills/scripts/lib/ToolDiscovery.ps1
+++ b/skills/scripts/lib/ToolDiscovery.ps1
@@ -304,22 +304,18 @@ function Get-ReverseToolCatalog {
[pscustomobject]@{
Name = 'jshookmcp'
Skill = 'js-reverse'
- Purpose = '通过 npx 启动 @jshookmcp/jshook MCP(仍需先配置并启用 MCP server)'
+ Purpose = '通过 npx 启动 @jshookmcp/jshook MCP(需 MCP 注册;npx 本身不代表该能力已安装)'
FixedVersion = '@jshookmcp/[email protected]'
VersionArgs = @()
- Fallbacks = @(
- [pscustomobject]@{ Type = 'command'; Value = 'npx' }
- )
+ Fallbacks = @()
}
[pscustomobject]@{
Name = 'reqable-mcp'
Skill = 'pentest-tools'
- Purpose = '通过 npx 启动 Reqable 桌面客户端 MCP(仍需先安装并启动 Reqable)'
+ Purpose = '通过 npx 启动 Reqable 桌面客户端 MCP(需 MCP 注册与 Reqable;npx 本身不代表该能力已安装)'
FixedVersion = '[email protected]'
VersionArgs = @()
- Fallbacks = @(
- [pscustomobject]@{ Type = 'command'; Value = 'npx' }
- )
+ Fallbacks = @()
}
[pscustomobject]@{
Name = 'agent-browser'
@@ -840,6 +836,17 @@ function Get-ReverseCapabilityState {
$toolReady = $false
}
+ $runtimeReady = $toolReady
+ if ($definition.bootstrapKind -eq 'npm-mcp') {
+ try {
+ $runtimeSpec = Resolve-ReverseToolSpec -Name 'npx'
+ $runtimeReady = [bool]$runtimeSpec.Available
+ }
+ catch {
+ $runtimeReady = $false
+ }
+ }
+
$verificationMode = if ($definition.PSObject.Properties['verificationMode']) { [string]$definition.verificationMode } else { '' }
$ready = $toolReady
if ($definition.PSObject.Properties['mcpNames']) {
@@ -852,7 +859,7 @@ function Get-ReverseCapabilityState {
}
default {
if ($definition.bootstrapKind -eq 'npm-mcp') {
- $ready = $registered -and $toolReady
+ $ready = $registered -and $runtimeReady
}
else {
$ready = $registered -or $toolReady
@@ -868,6 +875,7 @@ function Get-ReverseCapabilityState {
DocsUrl = [string]$definition.docsUrl
Ready = $ready
Registered = $registered
+ RuntimeAvailable = $runtimeReady
ServiceOnline = $serviceOnline
McpHttpVerified = $mcpHttpVerified
}