Agent Skillsnetalertx/NetAlertX › mcp-activation

mcp-activation

GitHub

配置 MCP 连接以启用 AI Agent 与 NetAlertX 运行时的实时交互,支持数据库查询、网络扫描和设备管理等动态操作。

.gemini/skills/mcp-activation/SKILL.md netalertx/NetAlertX

触发场景

需要访问运行时 API 进行调试 执行数据库查询或触发网络扫描 验证应用运行时状态

安装

npx skills add netalertx/NetAlertX --skill mcp-activation -g -y
更多选项

非标准路径

npx skills add https://github.com/netalertx/NetAlertX/tree/main/.gemini/skills/mcp-activation -g -y

不安装直接使用

npx skills use netalertx/NetAlertX@mcp-activation

指定 Agent (Claude Code)

npx skills add netalertx/NetAlertX --skill mcp-activation -a claude-code -g -y

安装 repo 全部 skill

npx skills add netalertx/NetAlertX --all -g -y

预览 repo 内 skill

npx skills add netalertx/NetAlertX --list

SKILL.md

Frontmatter
{
    "name": "mcp-activation",
    "description": "Enables live interaction with the NetAlertX runtime. This skill configures the Model Context Protocol (MCP) connection, granting full API access for debugging, troubleshooting, and real-time operations including database queries, network scans, and device management."
}

MCP Activation Skill

This skill configures the NetAlertX development environment to expose the Model Context Protocol (MCP) server to AI agents.

Why use this?

By default, agents only have access to the static codebase (files). To perform dynamic actions—such as:

  • Querying the database (e.g., getting device lists, events)
  • Triggering actions (e.g., network scans, Wake-on-LAN)
  • Validating runtime state (e.g., checking if a fix actually works)

...you need access to the MCP Server running inside the container. This skill sets up the necessary authentication tokens and connection configs to bridge your agent to that live server.

Prerequisites

  1. Devcontainer: You must be connected to the NetAlertX devcontainer.
  2. Server Running: The backend server must be running (to generate app.conf with the API token).

Activation Steps

  1. Activate Devcontainer Skill: If you are not already inside the container, activate the management skill:

    activate_skill("devcontainer-management")
    
  2. Generate Configurations: Run the configuration generation script inside the container. This script extracts the API Token and creates the necessary settings files (.gemini/settings.json and .vscode/mcp.json).

    # Run inside the container
    /workspaces/NetAlertX/.devcontainer/scripts/generate-configs.sh
    
  3. Apply Changes:

    • For Gemini CLI: The agent session must be restarted to load the new .gemini/settings.json.

      "I have generated the MCP configuration. Please restart this session to activate the netalertx-devcontainer tools."

    • For VS Code (GitHub Copilot / Cline): The VS Code window must be reloaded to pick up the new .vscode/mcp.json.

      "I have generated the MCP configuration. Please run 'Developer: Reload Window' in VS Code to activate the MCP server."

Verification

After restarting, you should see new tools available (e.g., netalertx-devcontainer__get_devices).

版本历史

  • 8aec57b 当前 2026-07-24 22:14

同 Skill 集合

.gemini/skills/devcontainer-management/SKILL.md
.gemini/skills/project-navigation/SKILL.md
.gemini/skills/settings/SKILL.md
.gemini/skills/skills-index/SKILL.md
.gemini/skills/testing-workflow/SKILL.md
.github/skills/api-development/SKILL.md
.github/skills/authentication/SKILL.md
.github/skills/code-standards/SKILL.md
.github/skills/database-patterns/SKILL.md
.github/skills/database-reset/SKILL.md
.github/skills/devcontainer-configs/SKILL.md
.github/skills/devcontainer-services/SKILL.md
.github/skills/devcontainer-setup/SKILL.md
.github/skills/docker-build/SKILL.md
.github/skills/docker-prune/SKILL.md
.github/skills/mcp-activation/SKILL.md
.github/skills/plugin-run-development/SKILL.md
.github/skills/project-navigation/SKILL.md
.github/skills/sample-data/SKILL.md
.github/skills/settings-management/SKILL.md
.github/skills/skills-overview/SKILL.md
.github/skills/testing-workflow/SKILL.md

元信息

文件数
0
版本
548d698
Hash
5b1e1812
收录时间
2026-07-24 22:14

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 14:39
浙ICP备14020137号-1 $访客地图$