From c49e01299cab3ec631791b704a2935fc399e095c Mon Sep 17 00:00:00 2001 From: Denozordec Date: Tue, 1 Dec 2026 22:07:28 +0700 Subject: [PATCH] =?UTF-8?q?fix(mcp):=20=D1=81=D0=BE=D0=BA=D1=80=D0=B0?= =?UTF-8?q?=D1=82=D0=B8=D1=82=D1=8C=20=D0=BE=D0=BF=D0=B8=D1=81=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=87=D1=82=D0=B5=D0=BD=D0=B8=D1=8F=20RIB=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B5=D0=B5=D1=81=D1=82=D1=80=D0=B0?= =?UTF-8?q?=20=D0=BE=D0=BF=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/modules/mcp/bgp-prefix-actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/modules/mcp/bgp-prefix-actions.ts b/backend/src/modules/mcp/bgp-prefix-actions.ts index be0641cc..7d67e482 100644 --- a/backend/src/modules/mcp/bgp-prefix-actions.ts +++ b/backend/src/modules/mcp/bgp-prefix-actions.ts @@ -20,7 +20,7 @@ async function access(context: ActionContext) { } export function registerBgpPrefixActions(register: typeof add) { const observation = bgpRibSelection.safeExtend({ serverId: z.number().int().positive().safe() }) - register("routing.bgp.rib.read", "mm_bgp_rib_get", "Количество или страницы всех путей IPv4 BGP RIB, включая filtered. Для выборки по соседу укажите sessionName из bgp.session или peerCacheId. В следующих страницах передавайте expectedFingerprint первой страницы", "bgp", permissions, "read", "servers", observation, { read: async (input, context) => { + register("routing.bgp.rib.read", "mm_bgp_rib_get", "IPv4 BGP RIB с filtered-путями. Для соседа укажите sessionName или peerCacheId. Для следующих страниц сохраните expectedFingerprint первой страницы", "bgp", permissions, "read", "servers", observation, { read: async (input, context) => { const { serverId, ...selection } = observation.parse(input) await access(context) const source = await createRoutingSourceContext(await readRoutingEndpoints([serverId]))