# Studio 通用资源库 MCP 接入

这个 MCP 是通用资源库服务，不再命名为 IP/授权专用服务。当前只接入了授权相关的第一个资源库，后续可继续接入电商产品、包装设计、营销素材等。

## Hermes 配置

在需要使用资源库的 Hermes profile `config.yaml` 中加入：

```yaml
mcp_servers:
  studio_resource_library:
    url: "http://100.113.171.115:18871/mcp"
    timeout: 120
    connect_timeout: 30
```

重启 profile/gateway 后，工具名前缀会是：

```text
mcp_studio_resource_library_...
```

## 主要工具

- `get_manifest`：获取总索引信息
- `list_domains`：列出大分类，例如 authorization / ecommerce / packaging / marketing
- `list_libraries`：列出资源库，可按 domain 过滤
- `list_categories`：列出素材内部品类、标签、风格
- `search_assets`：跨资源库搜索素材，可按 domain/library/category/tag/asset_type 过滤
- `get_asset`：按 `global_id` 或 `asset_id + library_id` 获取素材
- `get_rag_chunk`：获取素材对应 RAG 切片

## 当前 endpoint

```text
http://100.113.171.115:18871/mcp
```

## 当前索引目录

Studio Mac：

```text
/Volumes/root_for_ai/studio-resource-hub-control/indexes/resource-library
```

Bot1：

```text
/Users/bot1/Volumes/root_for_ai/studio-resource-hub-control/indexes/resource-library
```
