Token导航 LogoToken导航TokenDH.com
Backstage Dev AI Hub logo
AI代理未说明官方级别未说明来源级核验

Backstage Dev AI Hub

MCP Server

一个集中管理AI资产(指令、代理、技能和工作流)的Backstage插件,支持通过MCP服务器与多种AI编码工具集成。

工具数

7

提示词数

0

GitHub Stars

6

资源数

0
工作流自动化TypeScriptClaude开发工具集成ClaudeCursorVS Code

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

JulianPedro

提供方

JulianPedro

最后核验

2026/5/17 20:19

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Dev AI Hub--后台插件

一个集中的人工智能资产中心——指令、代理、技能和工作流——可供 GitHub Copilot, 克劳德代码, 谷歌双子座, 光标以及其他AI编码工具。

该插件将一个或多个Git存储库同步为事实来源,将资产存储在Backstage数据库中,通过UI公开它们,并通过嵌入式 MCP(模型上下文协议)服务器 因此,人工智能工具可以自动发现和安装资产。

Project Screenshot

https://github.com/user-attachments/assets/5728807d-2587-408b-88f2-4c2853606285

______________________________________________________________________

安装

1.添加包

在您的Backstage monorepo中:

yarn workspace backend add @julianpedro/plugin-dev-ai-hub-backend
yarn workspace app add @julianpedro/plugin-dev-ai-hub

2.注册后端插件

packages/backend/src/index.ts:

backend.add(import('@julianpedro/plugin-dev-ai-hub-backend'));

3.注册前端插件

新前端系统(NFS)

packages/app/src/App.tsx:

import { devAiHubPlugin } from '@julianpedro/plugin-dev-ai-hub';

const app = createApp({
  features: [
    // ...existing features
    devAiHubPlugin,
  ],
});

侧边栏项目是自动注册的,不需要额外的配置。

传统前端系统

packages/app/src/App.tsx,在内部添加路线 ``:

import { DevAiHubPage } from '@julianpedro/plugin-dev-ai-hub';

// inside :
} />

packages/app/src/components/Root/Root.tsx,添加侧边栏项:

import HubIcon from '@mui/icons-material/Hub';

// inside :

4.配置 app-config.yaml

devAiHub:
  providers:
    - id: "main-ai-assets"
      type: "github"                                          # github | gitlab | bitbucket | azure-devops | git
      target: "https://github.com/your-org/ai-assets.git"
      branch: "main"
      schedule:
        frequency:
          minutes: 30
        timeout:
          minutes: 5

# Required: Git integration for reading repositories
integrations:
  github:
    - host: github.com
      token: ${GITHUB_TOKEN}

app-config.example.yaml 更多提供者示例(GitLab、Bitbucket、过滤器)。

______________________________________________________________________

资产格式

每个AI资产都是存储库中具有相同基本名称的两个文件:

agents/
  product-manager.yaml   ← metadata envelope
  product-manager.md     ← pure markdown content (never modified by the plugin)
instructions/
  security-guidelines.yaml
  security-guidelines.md
skills/
  code-review/
    code-review.yaml
    SKILL.md
workflows/
  pr-review.yaml
  pr-review.md

YAML信封(.yaml)

name: product-manager-agent
label: Product Manager Agent
description: AI agent specialized in product management tasks
type: agent                          # instruction | agent | skill | workflow
tools:
  - github-copilot
tags:
  - product
  - planning
author: Your Name
version: 1.0.0

# Optional: override install path per tool
# installPath: ".claude/agents/product-manager.md"
# installPaths:
#   claude-code: ".claude/agents/product-manager.md"
#   github-copilot: ".github/agents/product-manager.agent.md"

如果 content 如果省略,解析器将查找 .md 在同一个目录中。对于技能,默认为 SKILL.md.

使用 tools: [all] 对于每个工具都应该出现的工具无关资产。

有关YAML信封字段的更多信息,请参见 YAML信封引用.

您可以使用示例文件夹中的资产来了解如何在项目中使用资产,或将其作为您自己资产的基础。

默认安装路径(按工具自动解析)

类型工具默认路径
instructionclaude-code.claude/rules/.md
instructiongithub-copilot.github/instructions/.instructions.md
instructiongoogle-geminiGEMINI.md
instructioncursor.cursor/rules/.mdc
agentclaude-code.claude/agents/.md
agentgithub-copilot.github/agents/.agent.md
skillclaude-code.claude/skills//SKILL.md
skillcursor.cursor/skills//SKILL.md
workflowclaude-code.claude/workflows/.md
workflowgithub-copilot.github/workflows/.workflow.md

______________________________________________________________________

MCP服务器

MCP服务器运行 嵌入式 在Backstage后端——不需要单独的进程。它使用StreamableHTTP传输。

网址: http://:7007/api/dev-ai-hub/mcp

?tool= 查询参数过滤AI工具接收的资产。忽略它以接收所有资产。 这 ?provider= 查询参数过滤AI工具接收的资产。忽略它以接收所有资产。 这 ?proactive=true 查询参数启用主动模式。此模式用于在需要时自动向AI工具提供资产。

克劳德代码

.mcp.json~/.claude/mcp.json:

{
  "mcpServers": {
    "dev-ai-hub": {
      "type": "http",
      "url": "http://:7007/api/dev-ai-hub/mcp?tool=claude-code"
    }
  }
}

GitHub副本(VS代码)

.vscode/settings.json 或VS Code用户设置:

{
  "github.copilot.chat.mcp.servers": {
    "dev-ai-hub": {
      "type": "http",
      "url": "http://:7007/api/dev-ai-hub/mcp?tool=github-copilot"
    }
  }
}

谷歌Gemini CLI

~/.gemini/settings.json:

{
  "mcpServers": {
    "dev-ai-hub": {
      "type": "http",
      "url": "http://:7007/api/dev-ai-hub/mcp?tool=google-gemini"
    }
  }
}

光标

.cursor/mcp.json:

{
  "mcpServers": {
    "dev-ai-hub": {
      "type": "http",
      "url": "http://:7007/api/dev-ai-hub/mcp?tool=cursor"
    }
  }
}

可用的MCP工具

工具说明
list_assets列出资产,可选择按类型筛选。支持分页
search_assets在名称、描述和内容之间进行全文搜索。支持类型和标签过滤器
get_asset通过精确的ID或部分名称匹配获取完整的元数据和降价内容
install_asset返回活动工具的内容+推荐安装路径;模型写入文件。递增安装计数器
get_popular返回安装最多的资产,可选择按类型筛选
list_providers列出所有已配置的存储库及其同步状态、资产计数和上次同步时间
suggest_assets根据项目背景描述主动建议资产。仅在何时可用?主动=真

可用的MCP提示

提示描述
check_for_assets指示模型使用当前任务上下文调用suggest_assets,并在开始工作之前提供安装相关资产。仅在以下情况下可用?主动=真

⚡ 仅主动-仅在MCP URL包含时注册?主动=真。

聊天中的使用示例:

“列出Dev AI Hub中可用的代理” “在中心搜索代码审查资产” “在此项目中安装Product Manager代理”

______________________________________________________________________

REST API

GET  /api/dev-ai-hub/assets                   List assets (filters: type, tool, tags, search, provider, page, pageSize)
GET  /api/dev-ai-hub/assets/:id               Asset detail
GET  /api/dev-ai-hub/assets/:id/raw           Pure markdown content
GET  /api/dev-ai-hub/assets/:id/download      Download as .md or .zip (skills)
POST /api/dev-ai-hub/assets/:id/track-install Increment install counter
GET  /api/dev-ai-hub/providers                List configured providers with sync status
POST /api/dev-ai-hub/providers/:id/sync       Trigger manual sync
GET  /api/dev-ai-hub/stats                    Totals by type, tool, and provider

POST   /api/dev-ai-hub/mcp                    Initialize MCP session or handle existing
GET    /api/dev-ai-hub/mcp                    SSE stream for server-to-client notifications
DELETE /api/dev-ai-hub/mcp                    Terminate MCP session

______________________________________________________________________

包结构

角色描述
@julianpedro/plugin-dev-ai-hubfrontend-pluginReact UI——页面、卡片、过滤器、安装对话框
@julianpedro/plugin-dev-ai-hub-backendbackend-plugin同步服务、REST API、嵌入式MCP服务器
@julianpedro/plugin-dev-ai-hub-commoncommon-library共享TypeScript类型、Zod模式、安装路径约定
@julianpedro/plugin-dev-ai-hub-nodenode-library外部提供程序模块的扩展点

______________________________________________________________________

许可证

阿帕奇-2.0

目录标签

目录标签

工作流自动化TypeScriptClaude开发工具集成AI资产管理本地部署Git仓库同步MCP协议自动化工作流

支持客户端

ClaudeCursorVS Code

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

7

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明token部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP