fix(mcp): сократить описание чтения RIB для реестра операций

This commit is contained in:
Denozordec committed 2026-12-01 22:07:28 +07:00
1 parent 187a0cd45e
commit 9b826abf94
1 file changed
+1 -1
@@ -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]))