提交插件
粘贴一个 GitHub 仓库的地址。插件市场会找出其中的所有插件,逐一检查,并预览它们上架后的页面。
插件市场按仓库收录插件。一个仓库可以包含任意多个插件,每个插件的标识是 owner/repo/id。仓库收录之后,你只需要 push 修改,插件市场每小时会重新扫描一次。 审核与安全规则
提交之前
- 每个插件放在单独的文件夹中,文件夹里包含
PLUGIN.md。清单引用的所有文件(例如tools/和widgets/中的文件)都要提交。 - 如实声明
campus、network和每个工具的effect。 - 不要索取校园密码。工具只返回数据,不返回指令。
---
spec: 1
id: my-plugin
name: 我的插件
description: 一句话说明它为同学们做什么。
version: 0.1.0
author: your-github-name
network: [example.pku.edu.cn]
tools:
lookup: tools/lookup.yaml
i18n:
en: { name: My plugin, description: What it does, in one sentence. }
---
Use `lookup` when the user asks about … Answer with …{
"$schema": "https://pkuharness.com/schema/plugin-manifest.v1.json",
"id": "my-plugin",
"name": "我的插件",
"description": "一句话说明它为同学们做什么。",
"endpoint": "https://my-plugin.example.com/mcp",
"requires": ["network"],
"scopes": ["example.pku.edu.cn"]
}