Xpersona
A

AnyShare MCP Skills

CLAWHUB · Unverified

AnyShare 企业云盘技能。支持:搜索文件、上传/下载文件、分享链接读取、全文写作(生成大纲→确认→写正文)。触发词:AnyShare、asmcp、文档库、文件管理、知识库、anyshare.aishu.cn 分享链接。 Skill: AnyShare MCP Skills Owner: jerrrr Summary: AnyShare 企业云盘技能。支持:搜索文件、上传/下载文件、分享链接读取、全文写作(生成大纲→确认→写正文)。触发词:AnyShare、asmcp、文档库、文件管理、知识库、anyshare.aishu.cn 分享链接。 Tags: latest:0.2.8 Version history: v0.2.8 | 2026-05-09T05:52:08.162Z | user 认证方式更新:改为 headers.Authorization Bearer token,MCP URL 从 /mcp 更新至 /asmcp,移除旧 auth_login/auth_status 工具引用 v0.2.7 | 2026-04-08T05:16:11.354Z | user 更新全文写作大纲 skill_name 为 __全文写作__3 v0.2

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s171kjb40hpqqnm7zyh0xep0h583hqwg:anyshare-mcp-skills
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jerrrr-anyshare-mcp-skills/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

145,453 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---

## name: anyshare-mcp-skills
description: "AnyShare 智能知识管理技能。支持:搜索文件、上传/下载文件、分享链接读取、全文写作(生成大纲→确认→写正文)。触发词:AnyShare、asmcp、文档库、文件管理、知识库、anyshare.aishu.cn 分享链接。"
homepage: "[https://anyshare.aishu.cn](https://anyshare.aishu.cn)"
metadata: '{"openclaw":{"category":"productivity","emoji":"📁","requires":{"bins":["mcporter"]},"openclawSkillsEntryFile":"openclaw.skill-entry.json"}}'

# AnyShare MCP 技能

> **首次使用本技能时,按本文件「首次配置」章节执行。**

---

## ⚠️ 执行前必读

### 强制前置阅读(按需必读,否则跳过)


| 操作 | 必须先读 | 为何 |
| --- | --- | --- |
| 首次使用本技能 | **本 SKILL.md** → **「首次配置」** | 配置 MCP 服务地址 + 获取 Token;含步骤、用户确认话术 |
| 调用任何业务工具(file_search / upload / download 等)前 | **本 SKILL.md** → **「本技能工具与 mcporter 调用」**及对应场景步骤 | 参数格式(key=value)、固定字段、禁止传参 |
| 解析分享链接 | **本 SKILL.md** → **「本技能工具与 mcporter 调用」**→ `sharedlink_parse` 与 **「📎 分享链接(从 URL 到 docid)」** | **`link_id`**、**`item.id`**、顶层 **`id`**(见 C7) |
| **进入场景四(全文写作)前** | **本 SKILL.md** → 场景四 | 必须先获取 docid,否则禁止调用 smart_assistant |
| 排障 / 401 / 认证失败 | **[references/troubleshooting.md](references/troubleshooting.md)** | 错误码含义、常见现象与处理方式 |


### 硬卡点表


| # | 规则 | 关联场景 |
| --- | --- | --- |
| C1 | 搜索文件**只用 `file_search`**,禁止 RAG 类工具或目录树展开 | 场景一 |
| C2 | 展示搜索/列目录结果前,**必须先调 `file_convert_path` 再输出**(禁止跳过) | 场景一、[分享链接](#分享链接从-url-到-docid) |
| C3 | 上传/下载前,**必须用户明确回复"是"确认 docid**,禁止代选 | 场景二、场景三 |
| **C4** | **大纲未确认前禁止调用 `__大纲写作__1`**(大纲门闩) | 场景四 |
| **C5** | `source_ranges[].id` **必须传 id**(docid 最后一段),**禁止传完整 docid** | 场景四 |
| **C6** | 用 **`sharedlink_parse(link_id)`** 解析分享链;**`link_id`** 从用户 URL 中 **`/link/`** 路径段之后**原样提取** | [分享链接](#分享链接从-url-到-docid) |
| **C7** | **`docid`** = 响应 **`item.id`**(`gns://…`);顶层 **`id`** 为分享链自身 id,**不等于** `item.id` | [分享链接](#分享链接从-url-到-docid) |
| **C8** | **进入全文写作前**须已定位目标文档:**至少掌握 docid(`gns://…`)或能唯一推出 `source_ranges[].id`(docid 最后一段)**。尚无则须先 **`file_search`** / [分享链接](#分享链接从-url-到-docid) / 用户提供 **docid** 等,禁止无文档锚点即调用 `smart_assistant` 或对话内代写 | 场景四 |
| **C9** | **在场原则**:持有 docid 后,必须使用 AnyShare 工具链,**禁止下载到本地用外部工具处理**(场景三用户明确要求下载除外) | 所有含 docid 的场景 |
| **C10** | **全文写作**:取得 id 后**必须直接调用 smart_assistant**,禁止先下载再写 | 场景四 |
| **C11** | **禁止**调用 **`file_upload`**(即使 `mcporter list asmcp` 仍列出该工具也不得使用)。上传**仅**允许 **`file_osbeginupload` → 按返回的 `authrequest` 对对象存储 HTTP PUT 文件体 → `file_osendupload`**;**PUT 未成功则禁止调用 `file_osendupload`** | 场景二 |


---

## 🔄 完整执行流程

> **分支优先级**:用户消息里若出现 **`https://…/link/…`**(或文档域下等价分享 URL),**先走「分享链接」分支**,再判断书写类、搜索等;避免把「带链接 + 让写稿」误判为纯全文写作而跳过解析。

```
用户输入
  │
  ▼
① 首次使用?── 是 ──→ 执行「首次配置」章节
  │                   → 向用户汇报 asmcp.url + 连通性
  │                   → 确认是否为**本企业**正式端点
  否
  ▼
② 凭证检查(自动)── headers.Authorization 未设置或 token 失效 ──→ **提示用户重新配置凭证**(按 **「首次配置」Step 4 获取 Token → 写入 headers → 重启 daemon)──→ 重试至可用
  │                                           │
  │ 通过 ◀────────────────────────────────────┘
  ▼
③ 意图识别
  │
  ├─ 含 `/link/` 的分享 URL?── 是 ──→ 「📎 分享链接(从 URL 到 docid)」:`sharedlink_parse` → docid / id
  │
  ├─ 书写类诉求?(生成/撰写/改写/续写/润色/文章/报告/文案/大纲/材料)── 是 ──→ 确认全文写作?
  │                     

_meta.json

{
  "ownerId": "kn743mjk8z68ddenp16vhaterh83gvht",
  "slug": "anyshare-mcp-skills",
  "version": "0.2.8",
  "publishedAt": 1778305928162
}

references/troubleshooting.md

# AnyShare MCP — 常见错误与排查

> 按需查阅。完整流程与配置以技能根目录 **`SKILL.md`** 为准。  
> 认证通过写入 **`~/.mcporter/mcporter.json`** 的 `headers.Authorization` 字段完成。见 **`../SKILL.md`** **「首次配置」**。

---

## 初始化与 mcporter 配置

| 现象 | 可能原因 | 处理 |
| --- | --- | --- |
| 首次使用不知道填什么地址 | 技能包默认仅为占位;**企业客户**应向运维索取**本企业** **MCP 服务地址** | 按 **`SKILL.md`**「首次配置」:写入后无论成败都请用户确认是否为本企业正式端点 |
| 找不到 `asmcp` 或 `mcporter list` 无 asmcp | 未配置或未重载 daemon | 按 **`SKILL.md`** 写入 `~/.mcporter/mcporter.json`,执行 `mcporter daemon restart` 后再 `mcporter list` |
| 换网关后工具全失败 | **MCP 服务地址**已变但配置未更新 | 按 **`SKILL.md`「首次配置」** 更新 `asmcp.url` 并重启 daemon |
| `mcporter list` 有 `asmcp` 但请求返回 **503** | 默认官方 URL 在你网络/部署下不可达,或需私有化网关 | 向运维索取实际 MCP 端点并更新 `asmcp.url`;非技能文档错误 |
| 配置写入后仍连不上 MCP | **MCP 服务地址**(`url`)错误或服务未监听 | 核对 **MCP 服务地址**与端口;确认服务端 HTTP 可达 |

---

## 凭证与令牌

| 现象 | 可能原因 | 处理 |
| --- | --- | --- |
| 401 / 业务接口报未授权 | token 失效、吊销或无权访问该资源 | 按 **`SKILL.md`**「首次配置」Step 4:用户重新获取 token → 更新 `~/.mcporter/mcporter.json` 的 `headers.Authorization` → `mcporter daemon restart` |
| 换账号后仍是旧用户 | 配置中仍是旧账号的 token | 用新账号 token 更新 `headers.Authorization`,重启 daemon |
| daemon 重启后工具报认证失败 | `headers.Authorization` 中 token 已过期 | 用户重新获取 token → 更新配置 → `mcporter daemon restart` |

---

## 工具发现与调用

| 现象 | 可能原因 | 处理 |
| --- | --- | --- |
| 不知道有哪些工具 / 参数 | 与主技能约定不一致 | 以 **`mcporter list asmcp`** 返回的 schema 为准(`SKILL.md` 核心注意第 5 条) |
| `mcporter call` 报错或参数无效 | 使用了 `--key value` 风格 | 使用 **`key=value`**,例如:`mcporter call asmcp.file_search keyword="文档" type="doc" start=0 rows=25` |
| `Call to asmcp.* timed out after 60000ms`(或类似) | **mcporter** 对单次 `call` 的默认超时(约 60s),非 MCP 网关配置 | **运行 OpenClaw 的设备**:将技能包 **`openclaw.skill-entry.json`** 合并进 **`~/.openclaw/openclaw.json`** → **`skills.entries["anyshare-mcp-skills"].env`**(见 **`SKILL.md`「首次配置」Step 2**);兜底:单次命令加 **`--timeout 600000`**;daemon 变更后建议 **`mcporter daemon restart`** |
| 直连 HTTP `tools/list` 无响应 | 未先 initialize 或地址错误 | 备选:按 `SKILL.md`「工具调用方式」③;日常优先 mcporter |

---

## 文件与搜索

| 现象 | 可能原因 | 处理 |
| --- | --- | --- |
| 技能要求**勿用** `file_upload`(见 `SKILL.md` **C11**) | 误选一键上传 | 上传仅用 **`file_osbeginupload` → PUT → `file_osendupload`** |
| `file_search` 分页/范围与预期不符 | 参数与实现不一致 | 仅传 `SKILL.md` 场景一允许的字段;以 `mcporter list asmcp` 中 `file_search` 的 schema 为准 |
| 搜索结果为空 | 关键词不匹配或路径/标签过滤过严 | 放宽关键词,或减少 `range`、标签限制 |
| `file_convert_path` 失败或 **`namepath` 为空** | `docid` 非完整 gns、无权限、或 `/efast/v1/file/convertpath` 报错 | 核对传入 **完整 `gns://…` docid** 与登录态;仍失败时**仅展示完整 docid**,路径展示可省略,**不阻塞**搜索/上传/下载主流程 |

---

## 上传 / 下载

| 现象 | 可能原因 | 处理 |
| --- | --- | --- |
| `file_osbeginupload` / `file_osendupload` 失败或参数无效 | `docid`/`rev`/`length`/`name` 与流程不一致,或 docid 无权限 | **begin** 用目标**目录** docid(**C3**);**end** 的 `docid`/`rev` 须与 **begin 响应**一致;`length` 须等于实际文件字节数 |
| 对象存储 **PUT** 失败 | URL/鉴权过期、网络、或请求体与 `length` 不符 | 重试 begin;检查 `authrequest` 头与文件体;**PUT 成功前不要调用** `file_osendupload` |
| `file_osdownload` 失败 | 文件删除、无权限或 docid 错误 | 重新 `file_search` 并由用户确认 |

---

## `smart_assistant`(场景四全文写作)

| 现象 | 可能原因 | 处理 |
| -

SECURITY.md

# Security

## Treat this skill as operational guidance, not executable trust

- Review `SKILL.md` and scripts before use in production. Third-party or
  registry-installed skills should be audited like any other automation.
- **Never** commit or paste real cookies, OAuth tokens, or Bearer strings into
  Git, ClawHub descriptions, or chat logs.

## Secrets and configuration

- **MCP service URL** defaults to `https://anyshare.aishu.cn/asmcp` in the skill template; override in `~/.mcporter/mcporter.json` (`asmcp.url`) for private deployments. Values are **environment-specific**.
  Do not commit internal-only URLs to public repos if they expose your network topology.
- **Access tokens** are written to `~/.mcporter/mcporter.json` under `asmcp.headers.Authorization` (documented in **`SKILL.md`**, section **「首次配置」**). Do not commit secrets or paste tokens into chat logs.
- **Token renewal**: when a token expires or is revoked, update `headers.Authorization` in `~/.mcporter/mcporter.json` and run `mcporter daemon restart`. Tokens are not cached by the skill itself.
- **Pasted tokens** must not appear in shell history, chat logs, or version control.
- **Environment-variable injection** of tokens is **not** the default path; **`openclaw.skill-entry.json`** only documents **`MCPORTER_CALL_TIMEOUT`**.

## Data handling

- The skill may access enterprise documents only as permitted by your AnyShare
  account and MCP server policy. Follow your organization's data-classification rules.

## Reporting

- For vulnerabilities in **this skill's documentation or packaging**, open an
  issue in the repository that maintains this skill. For product security issues
  in AnyShare itself, follow AISHU's official disclosure channels.

skill-card.md

## Description:

Guides an agent through AnyShare enterprise document search, upload and download, share-link parsing, and long-form writing workflows via the asmcp MCP server.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jerrrr](https://clawhub.ai/user/jerrrr)

### License/Terms of Use:

MIT-0

## Use Case:

Employees and enterprise knowledge workers use this skill to work with AnyShare documents: finding files, confirming document identities, transferring files, parsing shared links, and generating long-form drafts from selected documents.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Access tokens may be exposed if pasted into chat or stored in plaintext local configuration.

Mitigation: Use only trusted AnyShare MCP endpoints, prefer local secure entry or a secret manager, restrict permissions on ~/.mcporter and mcporter.json, use narrowly scoped tokens where possible, and rotate any token previously pasted into a conversation.

Risk: The skill can access enterprise documents according to the user's AnyShare account and MCP server policy.

Mitigation: Deploy with trusted MCP servers and follow organizational authorization and data-classification rules before searching, downloading, uploading, sharing, or drafting from documents.

Risk: Incorrect document identifier or share-link handling can cause the agent to act on the wrong AnyShare file or folder.

Mitigation: Require explicit user confirmation before upload and download actions, display resolved paths when available, and preserve the documented distinction between full docid values and final-segment ids for writing workflows.

## Reference(s):

- [AnyShare](https://anyshare.aishu.cn)
- [AnyShare MCP troubleshooting](references/troubleshooting.md)
- [Security notes](SECURITY.md)
- [ClawHub skill page](https://clawhub.ai/jerrrr/skills/anyshare-mcp-skills)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with JSON configuration snippets and shell command examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include AnyShare document identifiers, share links, file paths, generated outlines, and generated draft text depending on the requested workflow.]

## Skill Version(s):

0.2.8 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to AnyShare MCP Skills and adjacent AI workflows.