@ycodium-ai/plugin-connector-registry 0.2.3710 → 0.2.3766

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/dist/index.js CHANGED
@@ -174,7 +174,7 @@ var search = async (ctx, query) => {
174
174
  };
175
175
  var connectorRegistryPlugin = definePlugin({
176
176
  id: "connector-registry",
177
- apiVersion: 53,
177
+ apiVersion: 56,
178
178
  activate: (ctx) => {
179
179
  ctx.command({
180
180
  name: "search",
@@ -187,9 +187,21 @@ var connectorRegistryPlugin = definePlugin({
187
187
  return search(ctx, query);
188
188
  }
189
189
  });
190
+ ctx.command({
191
+ name: "effectiveSettings",
192
+ description: "Settings card: what connector search reads when the URL is empty.",
193
+ scope: "read",
194
+ payloadSchema: { type: "object", properties: {}, additionalProperties: false },
195
+ handle: async () => ({
196
+ url: {
197
+ detailKey: BUNDLED_CATALOG.length === 0 ? "settings.url.none" : "settings.url.bundled"
198
+ }
199
+ })
200
+ });
190
201
  ctx.settingsCard({
191
202
  titleKey: "settings.card.title",
192
203
  descriptionKey: "settings.card.description",
204
+ effectiveCommand: "effectiveSettings",
193
205
  fields: [
194
206
  {
195
207
  key: "url",
package/locales/en.json CHANGED
@@ -1,4 +1,8 @@
1
1
  {
2
+ "presentation": {
3
+ "name": "Connector catalog",
4
+ "description": "Lists MCP servers from the catalog address you set; installing one adds it to this machine's MCP servers."
5
+ },
2
6
  "settings": {
3
7
  "card": {
4
8
  "title": "Connector registry",
@@ -6,8 +10,10 @@
6
10
  },
7
11
  "url": {
8
12
  "label": "Registry URL",
9
- "description": "Leave empty to fall back to the environment variable, if one is set.",
10
- "placeholder": "https://example.com/connectors/search"
13
+ "description": "Leave empty to use only the catalog bundled with this version, if it has one.",
14
+ "placeholder": "https://example.com/connectors/search",
15
+ "none": "No catalog: connector search has nothing to read",
16
+ "bundled": "Only the catalog bundled with this version"
11
17
  }
12
18
  }
13
19
  }
@@ -1,4 +1,8 @@
1
1
  {
2
+ "presentation": {
3
+ "name": "连接器目录",
4
+ "description": "从你设置的目录地址列出 MCP 服务器;安装一项会把它加入这台机器的 MCP 服务器。"
5
+ },
2
6
  "settings": {
3
7
  "card": {
4
8
  "title": "连接器目录",
@@ -6,8 +10,10 @@
6
10
  },
7
11
  "url": {
8
12
  "label": "目录地址",
9
- "description": "留空则回落到环境变量(如果设置了的话)。",
10
- "placeholder": "https://example.com/connectors/search"
13
+ "description": "留空则只用随版本自带的目录(如果有的话)。",
14
+ "placeholder": "https://example.com/connectors/search",
15
+ "none": "没有目录:连接器搜索无从可查",
16
+ "bundled": "只用随版本自带的目录"
11
17
  }
12
18
  }
13
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-connector-registry",
3
- "version": "0.2.3710",
3
+ "version": "0.2.3766",
4
4
  "description": "Lists MCP servers from the catalog address you set; installing one adds it to this machine's MCP servers.",
5
5
  "keywords": [
6
6
  "connector",
@@ -22,12 +22,14 @@
22
22
  "@effect/vitest": "4.0.0-beta.103",
23
23
  "esbuild": "0.28.1",
24
24
  "vite-plus": "0.2.2",
25
- "@ycodium-ai/plugin-api": "0.2.3710"
25
+ "@ycodium-ai/plugin-api": "0.2.3766"
26
26
  },
27
27
  "ycodium": {
28
28
  "plugin": "./dist/index.js",
29
- "displayName": "Connector directory",
29
+ "displayName": "Connector catalog",
30
+ "displayNameKey": "presentation.name",
30
31
  "description": "Lists MCP servers from the catalog address you set; installing one adds it to this machine's MCP servers.",
32
+ "descriptionKey": "presentation.description",
31
33
  "icon": "./assets/icon.svg",
32
34
  "permissions": []
33
35
  },