@eum-agent/integration-mcp 1.0.1 → 1.1.0

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
@@ -4159,7 +4159,7 @@ function createTools(deps) {
4159
4159
  description: "Read a resource from an MCP server this agent selects, by the server slug and the resource URI.",
4160
4160
  inputSchema: z.strictObject({
4161
4161
  items: z.array(ResourceInput).min(1).max(32).describe("Ordered selected-server resources, maximum 32; physical source limits are managed internally."),
4162
- outputTokens: z.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional().describe("Desired model delivery tokens. Accepted originals are retained before bounded previews.")
4162
+ outputTokens: z.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional().describe("Desired text delivery tokens, excluding attached media. Accepted originals are retained before bounded previews.")
4163
4163
  }),
4164
4164
  outputSchema: batchResult(z.strictObject({ content: z.string() }), z.strictObject({
4165
4165
  server: z.string(),
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "en-US": "MCP Tool Integration",
5
5
  "zh-CN": "MCP 工具接入"
6
6
  },
7
- "version": "1.0.1",
7
+ "version": "1.1.0",
8
8
  "type": "module",
9
9
  "description": "Tools, resources and prompts from Model Context Protocol servers",
10
10
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "@eum-agent/container": "1.0.0",
28
28
  "@eum-agent/kernel": "1.0.0",
29
- "@eum-agent/plugin": "1.0.1",
29
+ "@eum-agent/plugin": "1.1.0",
30
30
  "@eum-agent/runtime": "1.0.0",
31
31
  "@types/react": "^19.2.18",
32
32
  "@types/react-dom": "^19.2.5",
@@ -45,7 +45,7 @@
45
45
  "kind": "extension",
46
46
  "foundationDependencies": {
47
47
  "@eum-agent/infra-local": "1.0.1",
48
- "@eum-agent/storage-sqlite": "1.0.1"
48
+ "@eum-agent/storage-sqlite": "1.1.0"
49
49
  }
50
50
  },
51
51
  "scripts": {
package/ui/ui.js CHANGED
@@ -304,6 +304,8 @@ var CATALOGUES$1 = {
304
304
  "mcp.emptyBody": "添加服务器后,可在智能体设置中选用它的工具、资源与提示词。",
305
305
  "mcp.enable": "启用 {{name}}",
306
306
  "mcp.turnOn": "启用",
307
+ "mcp.selectionOn": "选用",
308
+ "mcp.selectionOff": "不选用",
307
309
  "mcp.turnOff": "停用",
308
310
  "mcp.retry": "重试",
309
311
  "mcp.agents": "智能体",
@@ -375,12 +377,12 @@ var CATALOGUES$1 = {
375
377
  "mcp.testing": "正在测试…",
376
378
  "mcp.testOk": "连接成功:{{tools}} 个工具、{{resources}} 个资源、{{prompts}} 个提示词",
377
379
  "mcp.testSaveFirst": "请先保存修改再测试。",
378
- "mcp.oauth": "授权",
380
+ "mcp.oauth": "账号登录",
379
381
  "mcp.oauth.none": "未授权",
380
382
  "mcp.oauth.authorized": "已授权",
381
383
  "mcp.oauth.expires": "已授权,{{time}} 到期",
382
384
  "mcp.oauth.reauth": "需要重新授权:{{reason}}",
383
- "mcp.authorize": "授权",
385
+ "mcp.authorize": "浏览器登录",
384
386
  "mcp.authorizePending": "等待授权完成",
385
387
  "mcp.authorizeHint": "请在浏览器中完成授权,完成后此页面会自动更新。",
386
388
  "mcp.authorizeOpen": "打开授权页面",
@@ -436,6 +438,8 @@ var CATALOGUES$1 = {
436
438
  "mcp.emptyBody": "Add a server, then choose it in an agent’s settings to use its tools, resources and prompts.",
437
439
  "mcp.enable": "Enable {{name}}",
438
440
  "mcp.turnOn": "Enable",
441
+ "mcp.selectionOn": "Use",
442
+ "mcp.selectionOff": "Do not use",
439
443
  "mcp.turnOff": "Disable",
440
444
  "mcp.retry": "Retry",
441
445
  "mcp.agents": "Agents",
@@ -507,12 +511,12 @@ var CATALOGUES$1 = {
507
511
  "mcp.testing": "Testing…",
508
512
  "mcp.testOk": "Connected: {{tools}} tools, {{resources}} resources, {{prompts}} prompts",
509
513
  "mcp.testSaveFirst": "Save your changes before testing.",
510
- "mcp.oauth": "Authorization",
514
+ "mcp.oauth": "Account sign-in",
511
515
  "mcp.oauth.none": "Not authorized",
512
516
  "mcp.oauth.authorized": "Authorized",
513
517
  "mcp.oauth.expires": "Authorized, expires {{time}}",
514
518
  "mcp.oauth.reauth": "Needs authorization again: {{reason}}",
515
- "mcp.authorize": "Authorize",
519
+ "mcp.authorize": "Sign in with a browser",
516
520
  "mcp.authorizePending": "Waiting for authorization",
517
521
  "mcp.authorizeHint": "Complete authorization in the browser. This page updates automatically.",
518
522
  "mcp.authorizeOpen": "Open authorization page",
@@ -2237,11 +2241,12 @@ function AuthorizationArea({ ctx, detail }) {
2237
2241
  loading: action === "cancel",
2238
2242
  onClick: () => void cancel(),
2239
2243
  children: t("mcp.authorizeCancel")
2240
- }) : /* @__PURE__ */ jsxs(Fragment, { children: [(!authorized || needsAgain) && /* @__PURE__ */ jsx(ctx.ui.Button, {
2244
+ }) : /* @__PURE__ */ jsxs(Fragment, { children: [(!authorized || needsAgain) && /* @__PURE__ */ jsxs(ctx.ui.Button, {
2241
2245
  disabled: action !== null,
2242
2246
  loading: action === "authorize",
2247
+ variant: "primary",
2243
2248
  onClick: () => void authorize(),
2244
- children: t("mcp.authorize")
2249
+ children: [/* @__PURE__ */ jsx(ctx.ui.Icon, { name: "fingerprint-pattern" }), t("mcp.authorize")]
2245
2250
  }), authorized && /* @__PURE__ */ jsx(ctx.ui.Button, {
2246
2251
  disabled: action !== null,
2247
2252
  loading: action === "signOut",
@@ -2503,7 +2508,7 @@ function CapabilityDetails({ ctx, kind, row }) {
2503
2508
  });
2504
2509
  }
2505
2510
  /**
2506
- * Which agents select this server, one switch per agent. A switch is a save:
2511
+ * Which agents select this server, one choice per agent. A selection is a save:
2507
2512
  * the agent's own selection is read, this server added or taken out, and the
2508
2513
  * whole set written back through `setAgentServers`, whose `serversChanged`
2509
2514
  * brings `server.agentIds` up to date. One write at a time, because each is
@@ -2671,7 +2676,7 @@ button.mcp-risk-command { display: block; width: fit-content; max-width: 100%; h
2671
2676
  .mcp-test-ok { color: var(--success); }
2672
2677
  .mcp-oauth { display: flex; flex-direction: column; min-width: 0; gap: .5rem; }
2673
2678
  .mcp-oauth-header { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: var(--form-control-height); }
2674
- .mcp-oauth-label { font-size: .8125rem; font-weight: 500; }
2679
+ .mcp-oauth-label { font-size: var(--text-sm); font-weight: 400; color: var(--foreground); }
2675
2680
  .mcp-oauth-status { display: inline-flex; align-items: center; gap: .375rem; min-width: 0; font-size: .75rem; color: var(--muted-foreground); }
2676
2681
  .mcp-oauth-authorized { color: var(--success); }
2677
2682
  .mcp-oauth-dot { display: inline-block; flex: none; width: .375rem; height: .375rem; border-radius: var(--radius-pill); background: currentColor; }