@luffysolution/omnischolar-pi 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -1
- package/README.md +2 -2
- package/docs/INSTALLATION.en.md +4 -8
- package/docs/INSTALLATION.md +4 -8
- package/package.json +1 -1
- package/pi-extension/dist/index.js +9 -2
package/README.en.md
CHANGED
|
@@ -78,7 +78,7 @@ npx skills remove --skill '*' --agent codex --global --yes
|
|
|
78
78
|
The plugin and host configurations start the latest PyPI MCP with:
|
|
79
79
|
|
|
80
80
|
```sh
|
|
81
|
-
uvx --from luffysolution-omnischolar@latest omnischolar mcp
|
|
81
|
+
uvx --refresh-package luffysolution-omnischolar --from luffysolution-omnischolar@latest omnischolar mcp
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
</details>
|
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ codex plugin marketplace upgrade omnischolar
|
|
|
65
65
|
ChatGPT 桌面应用中重启应用后打开 **Plugins**,选择 **OmniScholar** 并安装或启用;Codex CLI 可运行 `/plugins` 浏览插件。插件已经包含 Skills,并通过下面的命令启动 PyPI 最新 MCP:
|
|
66
66
|
|
|
67
67
|
```sh
|
|
68
|
-
uvx --from luffysolution-omnischolar@latest omnischolar mcp
|
|
68
|
+
uvx --refresh-package luffysolution-omnischolar --from luffysolution-omnischolar@latest omnischolar mcp
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
### Claude Code 插件
|
|
@@ -136,7 +136,7 @@ npx skills remove --skill '*' --agent codex --global --yes
|
|
|
136
136
|
"omnischolar": {
|
|
137
137
|
"type": "stdio",
|
|
138
138
|
"command": "uvx",
|
|
139
|
-
"args": ["--from", "luffysolution-omnischolar@latest", "omnischolar", "mcp"]
|
|
139
|
+
"args": ["--refresh-package", "luffysolution-omnischolar", "--from", "luffysolution-omnischolar@latest", "omnischolar", "mcp"]
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
package/docs/INSTALLATION.en.md
CHANGED
|
@@ -71,16 +71,12 @@ Restart the ChatGPT desktop app after adding the marketplace. Open **Plugins**,
|
|
|
71
71
|
|
|
72
72
|
The installed plugin contains `plugin.json`, `skills/`, and `mcp.json`. Its MCP entry executes:
|
|
73
73
|
|
|
74
|
-
```sh
|
|
75
|
-
uvx --from luffysolution-omnischolar@latest omnischolar mcp
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
`uvx` creates an isolated environment and runs the latest package requested by `@latest`, so this route does not require a separate `pip install`. To force a package-cache refresh, run:
|
|
79
|
-
|
|
80
74
|
```sh
|
|
81
75
|
uvx --refresh-package luffysolution-omnischolar --from luffysolution-omnischolar@latest omnischolar mcp
|
|
82
76
|
```
|
|
83
77
|
|
|
78
|
+
`uvx` creates an isolated environment, refreshes the package cache on every start, and runs the latest PyPI package, so this route does not require a separate `pip install`.
|
|
79
|
+
|
|
84
80
|
To update the Codex Git marketplace and plugin, run:
|
|
85
81
|
|
|
86
82
|
```sh
|
|
@@ -118,7 +114,7 @@ Choose `--scope project` to share the enabled plugin through repository settings
|
|
|
118
114
|
Claude Code copies the repository-root plugin into its versioned cache, discovers the eight folders under `skills/`, and starts `.mcp.json` automatically when the plugin is enabled. The MCP command uses the latest PyPI package:
|
|
119
115
|
|
|
120
116
|
```sh
|
|
121
|
-
uvx --from luffysolution-omnischolar@latest omnischolar mcp
|
|
117
|
+
uvx --refresh-package luffysolution-omnischolar --from luffysolution-omnischolar@latest omnischolar mcp
|
|
122
118
|
```
|
|
123
119
|
|
|
124
120
|
The first MCP start needs package-index access. Skills are namespaced with `omnischolar`, for example `/omnischolar:scholar-search` and `/omnischolar:zotero-research`.
|
|
@@ -228,5 +224,5 @@ These commands install Skills only; they do not install the `omnischolar` Python
|
|
|
228
224
|
The only MCP server entry in this release is local stdio:
|
|
229
225
|
|
|
230
226
|
```sh
|
|
231
|
-
uvx --from luffysolution-omnischolar@latest omnischolar mcp
|
|
227
|
+
uvx --refresh-package luffysolution-omnischolar --from luffysolution-omnischolar@latest omnischolar mcp
|
|
232
228
|
```
|
package/docs/INSTALLATION.md
CHANGED
|
@@ -71,16 +71,12 @@ codex plugin add omnischolar@omnischolar
|
|
|
71
71
|
|
|
72
72
|
安装后的插件包含 `plugin.json`、`skills/` 和 `mcp.json`。其 MCP 配置执行:
|
|
73
73
|
|
|
74
|
-
```sh
|
|
75
|
-
uvx --from luffysolution-omnischolar@latest omnischolar mcp
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
`uvx` 会创建隔离环境并运行 `@latest` 指定的最新包,无需另行运行 `pip install`。若需强制刷新包缓存,可运行:
|
|
79
|
-
|
|
80
74
|
```sh
|
|
81
75
|
uvx --refresh-package luffysolution-omnischolar --from luffysolution-omnischolar@latest omnischolar mcp
|
|
82
76
|
```
|
|
83
77
|
|
|
78
|
+
`uvx` 会创建隔离环境,并在每次启动时刷新包缓存后运行 PyPI 最新包,无需另行运行 `pip install`。
|
|
79
|
+
|
|
84
80
|
若要更新 Codex Git Marketplace 和插件:
|
|
85
81
|
|
|
86
82
|
```sh
|
|
@@ -118,7 +114,7 @@ claude plugin install omnischolar@omnischolar --scope user
|
|
|
118
114
|
Claude Code 会把仓库根插件复制到版本化缓存,发现 `skills/` 下的 8 个 Skills,并在插件启用时自动启动 `.mcp.json`。MCP 命令使用 PyPI 最新包:
|
|
119
115
|
|
|
120
116
|
```sh
|
|
121
|
-
uvx --from luffysolution-omnischolar@latest omnischolar mcp
|
|
117
|
+
uvx --refresh-package luffysolution-omnischolar --from luffysolution-omnischolar@latest omnischolar mcp
|
|
122
118
|
```
|
|
123
119
|
|
|
124
120
|
第一次启动 MCP 需要能够访问 Python 包索引。Skills 使用 `omnischolar` 命名空间,例如 `/omnischolar:scholar-search` 和 `/omnischolar:zotero-research`。
|
|
@@ -236,5 +232,5 @@ npx skills remove --skill '*' -a codex -y
|
|
|
236
232
|
OmniScholar 的 MCP 入口只有本地 stdio:
|
|
237
233
|
|
|
238
234
|
```sh
|
|
239
|
-
uvx --from luffysolution-omnischolar@latest omnischolar mcp
|
|
235
|
+
uvx --refresh-package luffysolution-omnischolar --from luffysolution-omnischolar@latest omnischolar mcp
|
|
240
236
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
2
2
|
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
3
3
|
import { Type } from "typebox";
|
|
4
|
-
const CLIENT_INFO = { name: "omnischolar-pi", version: "0.1.
|
|
4
|
+
const CLIENT_INFO = { name: "omnischolar-pi", version: "0.1.16" };
|
|
5
5
|
export function resultText(result) {
|
|
6
6
|
return result.content
|
|
7
7
|
.map((item) => {
|
|
@@ -39,7 +39,14 @@ export default function omnischolarExtension(pi) {
|
|
|
39
39
|
connection = (async () => {
|
|
40
40
|
transport = new StdioClientTransport({
|
|
41
41
|
command: "uvx",
|
|
42
|
-
args: [
|
|
42
|
+
args: [
|
|
43
|
+
"--refresh-package",
|
|
44
|
+
"luffysolution-omnischolar",
|
|
45
|
+
"--from",
|
|
46
|
+
"luffysolution-omnischolar@latest",
|
|
47
|
+
"omnischolar",
|
|
48
|
+
"mcp",
|
|
49
|
+
],
|
|
43
50
|
stderr: "pipe",
|
|
44
51
|
});
|
|
45
52
|
client = new Client(CLIENT_INFO);
|