Logo de fcli

fcli

Organisation
srl-labs

fabric observability tool for Nokia SR Linux: live web UI, CLI reports and MCP server over gNMI

Éditeursrl-labs
Dépôtfcli
LanguePython
Forks
3
Étoiles
19
Outils disponibles
0
Type de transportstdio
Catégories
LicenceBSD-3-Clause
Liens
  • Connectez des outils à vos workflows IA

    fcli propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 0 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité open source

    19 étoiles et 3 forks sur le dépôt associé.

fcli

ci SR Linux PyPI

fcli is a fabric observability tool for Nokia SR Linux. It talks gNMI to every node in the inventory and presents the same reports on three surfaces:

  1. fcli server — a live web UI, kept current by gNMI subscriptions (the primary way to use it)
  2. fcli <report> — one-shot CLI tables, JSON, YAML or CSV
  3. fcli-mcp — the same reports as MCP tools for AI agents

Inventory comes from a containerlab topology file or a Nornir config. Report getters hide YANG and path differences across SR Linux releases, so a column means the same thing on 25.3 as on 26.7.

Table of contents

Quick start

With a running containerlab topology that has SR Linux nodes:

bash
# install (once)
uv tool install git+https://github.com/srl-labs/fcli

# live UI — open http://127.0.0.1:8080
fcli -t topo.clab.yml server

That is the usual workflow. The CLI and MCP surfaces share the same inventory flags (-t / -c, -i) and the same report getters.

bash
fcli -t topo.clab.yml bgp-peers
fcli -t topo.clab.yml -i role=leaf mac -f NI=macvrf-202
fcli-mcp --topo-file topo.clab.yml

GitHub Codespaces

Run fcli against a live 3-stage EVPN-VXLAN fabric in the cloud — no local containerlab setup required.


Run fcli in GitHub Codespaces for free.
Learn more about Containerlab for Codespaces.
Machine type: 8 vCPU · 16 GB RAM

Creating the Codespace hands the slow work to a background script, so the editor is usable immediately. .devcontainer/setup.sh narrates five steps into /tmp/fcli-codespace-setup.log:

  1. wait for the Docker daemon
  2. install fcli from the sources in the repo (uv sync)
  3. deploy the demo lab — 8 SR Linux nodes and 9 servers
  4. wait until every node answers gNMI, which is only once SR Linux has booted
  5. start fcli server on port 8080

Step 3 is the long one: each SR Linux image is about 1 GB, so the first run usually takes 15–30 minutes. Watch it work, or ask for a summary:

bash
tail -f /tmp/fcli-codespace-setup.log
bash .devcontainer/status.sh

If the lab did not start at all, run it yourself — it is safe to repeat, and a second run does nothing while the first is still going:

bash
bash .devcontainer/launch-setup.sh

Once step 5 is reached, open port 8080 in the Ports tab for the live web UI (Overview, Topology, BGP, EVPN services, …).

bash
# CLI reports against the same fabric
fcli -t labs/demo/demo.clab.yaml bgp-peers
fcli -t labs/demo/demo.clab.yaml -i hostname=leaf1 mac

Optional: set OPENAI_API_KEY, ANTHROPIC_API_KEY, or XAI_API_KEY as Codespaces secrets to enable the Ask troubleshooting chat.

Installation

Requires Python 3.10+.

[!NOTE] pip install -U nornir-srl (or uv tool install nornir-srl) installs the latest stable release published on PyPI. uv tool install git+https://github.com/srl-labs/fcli installs the bleeding-edge development version directly from git main.

uv (recommended)

uv is a standalone Python package manager:

bash
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install latest development version from git main:
uv tool install git+https://github.com/srl-labs/fcli

# Or install the latest release published on PyPI:
uv tool install nornir-srl

This puts fcli and fcli-mcp on your PATH (typically ~/.local/bin).

From a clone of this repo, uv tool install . or uv pip install -e . does the same against local sources.

pip

Install the latest release published on PyPI into a virtual environment:

bash
python3 -m venv .venv
source .venv/bin/activate
pip install -U nornir-srl

To install the latest development version from main via pip:

bash
pip install git+https://github.com/srl-labs/fcli

Docker

The image is ghcr.io/srl-labs/fcli. Attach it to the containerlab management network, publish port 8080, and bind-mount the topology file:

bash
CLAB_TOPO=topo.clab.yml
NET=$(grep '^name:' "$CLAB_TOPO" | awk '{print $2}')
alias fcli="docker run -it --network $NET --rm \
  -p 8080:8080 \
  -v /etc/hosts:/etc/hosts:ro \
  -v ${PWD}/${CLAB_TOPO}:/topo.yml \
  ghcr.io/srl-labs/fcli:latest -t /topo.yml"

fcli server --listen 0.0.0.0
fcli bgp-peers

--listen 0.0.0.0 is required inside Docker so the published port is reachable from the host. Running the container with no arguments drops into a shell.

If the container cannot reach the lab from Docker's default docker0 bridge, either attach it to the containerlab network as above, or allow inter-network traffic (blocked by default on some hosts):

bash
iptables -I DOCKER-USER -o docker0 -j ACCEPT -m comment --comment "allow inter-network comms"

If the topology overrides the management network with .mgmt.network, use that name for --network instead of the lab name.

Inventory

fcli needs a set of SR Linux nodes. Two ways to provide them, mutually exclusive:

FlagSourceTypical use
-t / --topo-filecontainerlab topologylabs
-c / --cfgNornir config filehardware fabrics

An inventory filter (-i key=value, repeatable, ANDed) scopes every surface to a subset of those nodes.

Containerlab topology

bash
fcli -t topo.clab.yml server
fcli -t topo.clab.yml -i role=leaf bgp-peers

Only nodes of kind srl / nokia_srlinux (or whose image is SR Linux) are inventoried. The topology prefix is applied to hostnames the same way containerlab does. Node labels: become host data and are the keys -i can filter on. The default gNMI port is 57400 (--gnmi-port / -p to override, e.g. 57410 for EDA-deployed labs).

Nornir config

bash
fcli -c nornir_config.yaml server
fcli -c nornir_config.yaml -i role=leaf mac

If neither -t nor -c is given, nornir_config.yaml in the current directory is used. A typical layout:

yaml
# nornir_config.yaml
inventory:
    plugin: YAMLInventory
    options:
        host_file: "./inventory/hosts.yaml"
        group_file: "./inventory/groups.yaml"
        defaults_file: "./inventory/defaults.yaml"
runner:
    plugin: threaded
    options:
        num_workers: 20
yaml
# inventory/hosts.yaml
leaf1:
    hostname: 192.0.2.11
    groups: [srl, leafs]
spine1:
    hostname: 192.0.2.21
    groups: [srl, spines]
yaml
# inventory/groups.yaml
srl:
    connection_options:
        srlinux:
            port: 57400
            username: admin
            password: NokiaSrl1!
            extras:
                path_cert: "./root-ca.pem"
spines:
    data:
        role: spine
leafs:
    data:
        role: leaf

The certificate is specified once for the srl group via connection_options.srlinux.extras.path_cert. Host data: keys are what -i filters on.

gNMI TLS

gNMI is always TLS, but by default the certificate a node presents is trusted as it comes: nothing tells fcli that the thing answering on port 57400 is the node it asked for, so the fabric credentials it sends are only as safe as the path to the node. That is all a freshly deployed containerlab node can offer, so it stays the default for labs.

Point --cert-file at the CA that issued the node certificates, and they are verified against it:

bash
fcli -c nornir_config.yaml --cert-file root-ca.pem bgp-peers

The same anchor can live in the inventory as extras.path_cert, as above. Two flags cover the rest:

FlagEffect
--verify / --skip-verifyForce verification on or off, whatever the inventory says
--tls-server-nameName the certificate is checked against, when it is not the node's hostname

--tls-server-name is what a mismatch needs: SR Linux issues its certificate to a name of its own, which is rarely the address the inventory reaches it on. For mutual TLS, add path_key and path_root to extras alongside path_cert.

Live server

fcli server is the main interface. It serves the same reports as the CLI as a web UI, kept up to date by gNMI subscriptions instead of one-shot polls. Every node in the inventory gets a single Subscribe RPC carrying the paths the opened reports need, and the browser is pushed a new table over server-sent events whenever the data actually changes.

The tables are the CLI reports, rendered by the same getters, so a column in the browser means what it means in fcli. Reports that need arguments on the CLI are pre-bound for streaming: bgp-rib is split into one report per address family (and per EVPN route type). routing-pol is nested JSON rather than a table, so it is not served. The server also has reports the CLI does not: an Overview dashboard, a live Topology drawing, and EVPN Services / Bridge Domains / Routers views.

❯ fcli -t topo.clab.yml server
fcli server on http://127.0.0.1:8080 (6 node(s))

The global options are the same as for the CLI, so the server can be pointed at a containerlab topology (-t), a Nornir config (-c) and scoped to a subset of the fabric (-i):

❯ fcli -c nornir_config.yaml -i role=leaf server --listen 0.0.0.0 --port 8080
❯ fcli -t topo.clab.yml server --help

 Usage: fcli server [OPTIONS]

 Serves live report tables over HTTP, fed by gNMI subscriptions

╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --listen           -L      TEXT     Address to bind the web server to. Use   │
│                                     0.0.0.0 to expose it on all interfaces   │
│                                     [default: 127.0.0.1]                     │
│ --port             -P      INTEGER  TCP port to listen on [default: 8080]    │
│ --sample-interval  -S      INTEGER  Override the gNMI SAMPLE interval        │
│                                     (seconds) of every subscription          │
│                                     [default: None]                          │
│ --refresh          -R      FLOAT    How often (seconds) a table is           │
│                                     re-rendered and pushed to the browser    │
│                                     [default: 2.0]                           │
│ --resync                   INTEGER  Interval (seconds) for a full gNMI       │
│                                     re-read per node; 0 disables it          │
│                                     [default: 300]                           │
│ --idle-timeout             INTEGER  Stop streaming paths no report has read  │
│                                     for this long (seconds); 0 keeps every   │
│                                     path subscribed for the lifetime of the  │
│                                     server                                   │
│                                     [default: 900]                           │
╰──────────────────────────────────────────────────────────────────────────────╯

The server binds to localhost by default. It has no authentication of its own, so put it behind a reverse proxy (or keep it on localhost) before exposing it with --listen 0.0.0.0.

In the browser

  • Reports are listed in the sidebar, grouped by category, with a filter box on top. The selected report is kept in the URL fragment (http://localhost:8080/#bgp_peers), so a view can be bookmarked or shared.
  • Overview is a KPI dashboard: node connectivity, interface and BGP-session health, derived from the same streamed trees as the tables.
  • Lenses sit under the reports: Where, Path and Service take an argument in the bar above the table and answer from the state the server is already streaming, re-asked at the refresh interval. The answer is drawn hierarchically, the way the services pages fold a fabric into cards — one card per address, hop or service, the nodes inside it, and under each node what it reports — with a Table View toggle for the flat rows. Path opens as a Path View: the walk drawn hop by hop, one box per lookup, an edge to each lookup it leads to, so the ECMP fan-out and where it converges again are visible at a glance and a branch that dies ends in a red stop. A lens's arguments are kept in the URL (#path?source=leaf1&destination=10.0.2.51&ni=ipvrf-1), so a walk can be shared. The Ask chat can call them too.
  • Sorting: click a column header to sort, click again to reverse. Sorting is natural, so ethernet-1/10 comes after ethernet-1/2.
  • Filtering: each column has its own filter box, and the search box above the table filters on all visible columns at once. Both accept a regular expression and fall back to a substring match if the expression is not valid (yet).
  • Inventory filter: the same key=value filter as the CLI's -i, applied live — e.g. role=leaf.
  • Live updates: cells that changed since the previous update flash, and new rows flash as a whole. Pause freezes the table without dropping the subscriptions.
  • Columns hides columns you do not need, CSV downloads exactly what the table currently shows (filters, column selection and all).
  • Nodes in the sidebar show per-node subscription state (up / unreachable / pending). Clicking a node jumps to details.
  • Theme toggles light and dark.

Topology

The Topology page draws the fabric from LLDP, one tier per row, and works out what each node is from what it runs rather than from an inventory label:

  • Leaf: Nodes with configured mac-vrfs (and optional ip-vrfs).
  • DCGW: Nodes with two enabled bgp-vpn instances (the WAN side of a stitched service).
  • Spine: Nodes with no mac-vrf or ip-vrf that interconnect two or more leaves.
  • WAN / Core: Transit routers and super-spines without customer services.
  • Clients & Ethernet Segments: External bridged or routed customer endpoints and multi-homed bundles grouped by LLDP neighbor name or ESI.

Cables are de-duplicated from LLDP, annotated with parallel link counts (2×), and colored by interface oper-state. Disjoint fabrics are cleanly partitioned into separate tabs with zoom and pan controls.

See Fabric Topology for the complete design document on tier inference, client grouping, multi-fabric partitioning, and navigation.

Ask (LLM troubleshooting)

Ask (top bar) opens a read-only troubleshooting chat as soon as one LLM provider has a key on the server process. The agent uses the live report tables, then JSON-RPC show / info on a node if needed (containerlab enables JSON-RPC on mgmt; hardware fabrics may not). Keys never go to the browser.

The drawer shows what the agent is doing while it works — thinking, or which tool it is running, with how long each one took — and Send turns into Stop for as long as a turn is running. Answers are rendered as markdown. Drag the drawer's left edge to widen it (double-click the edge to reset).

ProviderKeyDefault modelAPIEffort levels
OpenAIOPENAI_API_KEYgpt-5.6-solResponsesnone … max
ClaudeANTHROPIC_API_KEYclaude-sonnet-5Messageslow … max
GrokXAI_API_KEYgrok-4.6Chat Completionslow … xhigh

Each provider also honours its own _MODEL and _BASE_URL variable (OPENAI_MODEL, ANTHROPIC_BASE_URL, XAI_MODEL, …). Claude also accepts CLAUDE_API_KEY; Grok also accepts GROK_API_KEY.

Set several keys and the drawer gets a provider selector; the browser remembers the last one you picked. FCLI_LLM_PROVIDER=claude sets which one is offered first, otherwise it is OpenAI, Claude, Grok in that order.

All three are reasoning models, and the drawer has an effort selector next to the provider. It defaults to auto, which leaves the choice to the model (medium on GPT-5.6, high on Claude and Grok); OPENAI_REASONING_EFFORT, ANTHROPIC_EFFORT and XAI_REASONING_EFFORT set the default per provider. Lower effort answers faster and costs less, higher effort holds up better on a fabric-wide "why is this broken" question.

OpenAI runs against the Responses API with store=false: fcli replays the model's reasoning itself between tool rounds, and nothing about your fabric is kept in OpenAI's response store. If you front OpenAI with a proxy that only speaks Chat Completions, set OPENAI_API=chat.

How the live data works

  1. Automatic discovery: When a report is opened for the first time, its getter runs against a recording proxy to discover the exact gNMI paths it reads.
  2. Streaming cache: Each path is bootstrapped with a gNMI Get to seed an in-memory state tree and pin down the response shape, then kept current via a Subscribe RPC (STREAM/SAMPLE). Tables render directly from the tree with zero device round-trips.
  3. Resilience & pending paths: Unpopulated paths (e.g. empty MAC tables) fall back to periodic Gets until state appears, automatically joining the subscription once live. Lost nodes are detected across RPC errors, hanging calls, and missing SAMPLE intervals, with background reconnects for rebooting nodes.

See How the live data works for the complete design document on subscription lifecycle, state trees, pending path resolution, and failure recovery.

gNMI sessions

SR Linux enforces a concurrent session limit per gRPC server (/system/grpc-server[name=mgmt]/session-limit, 20 by default). fcli server stays at one session per node: all open reports share a single Subscribe RPC, path additions are batched, and idle paths are dropped after --idle-timeout.

See docs/live-data.md#gnmi-sessions-and-scalability for details.

HTTP API

The UI is a client of a small JSON API, which is just as usable from scripts:

EndpointDescription
GET /api/reportsThe available reports, version, and whether chat is enabled
GET /api/inventoryInventory nodes, labels and connection state
GET /api/statusPer-node subscription state
GET /api/overviewFabric KPI dashboard payload
GET /api/topologyThe fabric graph: nodes with their inferred tier and the fabric they are cabled into, the clients hanging off them, and the links between them
GET /api/report/{name}One rendered table as JSON
GET /api/stream/{name}The same table, pushed as server-sent events
POST /api/chatLLM troubleshooting turn (SSE: start, token, tool, error, done). Takes an optional provider (openai, claude, grok) and effort; 503 unless a provider key is set

Report, stream, overview and topology endpoints accept inv_filter=key=value,key=value; the stream endpoint also accepts refresh=<seconds>.

❯ curl -s 'http://localhost:8080/api/report/bgp_peers?inv_filter=role%3Dleaf' | jq '.rows[0]'

CLI reports

Same inventory, same getters, one shot. Output defaults to a Rich table; -o json|yaml|csv for structured output.

❯ fcli --help
Usage: fcli [OPTIONS] COMMAND [ARGS]...

Options:
  -c, --cfg PATH         Nornir config file. Mutually exclusive with -t
  -i, --inv-filter TEXT  inventory filter, e.g. -i site=lab -i role=leaf
  -b, --box-type TEXT    box type of printed table ('python -m rich.box')
  -t, --topo-file PATH   CLAB topology file. Mutually exclusive with -c
  --cert-file PATH       PEM trust anchor for the gNMI certificate of a node
  --verify/--skip-verify verify that certificate [default: --skip-verify
                         unless --cert-file is given]
  --tls-server-name TEXT name to verify it against, if not the hostname
  -p, --gnmi-port        gNMI port [default: 57400]
  -o, --output           table | json | yaml | csv [default: table]
  -l, --log-level        DEBUG | INFO | WARNING | ERROR | CRITICAL
                         [default: ERROR]
  -f, --log-file PATH    also write the log to this file
  --version              Show the version and exit.
  --help                 Show this message and exit.

Commands:
  server        Serves live report tables over HTTP
  sys-info      Displays System Info of nodes
  bgp-peers     Displays BGP Peers and their status
  bgp-rib       Displays BGP RIB
  ipv4-rib      Displays IPv4 RIB entries
  ipv6-rib      Displays IPv6 RIB entries
  static-routes Displays static routes
  tunnel-table  Displays the IP tunnel-table (LDP, SR-ISIS, VXLAN, ...)
  ni            Displays Network Instances and interfaces
  subif         Displays Sub-Interfaces of nodes
  lag           Displays LAGs of nodes
  ifstats       Displays per-interface in/out bps from two consecutive samples
  mac           Displays MAC Table
  irb           Displays IRB sub-interfaces
  es            Displays Ethernet Segments
  es-dest       Displays ES Destinations on the bridge table
  vxlan         Displays VXLAN tunnel interfaces and unicast destinations
  lldp          Displays LLDP Neighbors
  arp           Displays ARP table
  nd            Displays IPv6 Neighbors
  routing-pol   Displays Routing Policies (json/yaml only)
  checks        Runs the fabric sanity checks and lists what they found
  where         Finds which nodes know about a MAC or IP address
  path          Walks the route tables hop by hop towards a destination
  service       Shows one service as every node that carries it sees it
  snapshot      Keeps a report as it is now, to compare a fabric against later
  diff          Compares a report against a snapshot, or one node against another

Two kinds of filter, plus report-specific options:

  • inventory (-i, global): -i hostname=clab-4l2s-l1 or -i role=leaf, based on inventory data. Multiple filters are ANDed.
  • field (-f, per report): -f state="esta.*". Values are case-insensitive regexes; repeat -f to filter on several columns.
  • report-specific: bgp-rib needs -r evpn|ipv4|ipv6|l3vpn-v4|l3vpn-v6 (or the long l3vpn-*-unicast names) and optionally -t 1|2|3|4|5 for EVPN route type. ipv4-rib / ipv6-rib take -a for an LPM lookup. ifstats takes -s for the sampling interval.

fcli <report> --help shows the options for that report.

Examples

MAC entries on leafs in macvrf-202 matching 1A:DC:

fcli -i role=leaf mac -f NI=macvrf-202 -f mac="1A:DC:*"

BGP peers that are not established:

fcli bgp-peers -f state=active

Column headers use two lines in the live table: the address family as SR Linux names it (evpn, ipv4-unicast, ipv6-unicast, l3vpn-ipv4-unicast, l3vpn-ipv6-unicast), then Rx/Act/Tx (routes received / active / sent). A family shows its counts, or disabled, down, or - when the session is not configured for it. A state of up is an established session; the other values are BGP's own (active, idle, connect...). CSV keys collapse the header newline to a single space; -o json / -o yaml emit the records, where each family is an object and state is the session state as the device reports it (established).

LPM lookup for 192.168.0.7 across every network-instance:

fcli ipv4-rib -a 192.168.0.7

Active IPv4 BGP routes for a prefix:

fcli bgp-rib -r ipv4 -f Pfx="192.168.255.4/32" -f 0_st="u*>"

EVPN RT=2 for a MAC:

fcli bgp-rib -r evpn -t 2 -f MAC="1A:DC:*"

VPN-IPv4 / VPN-IPv6 BGP RIB (per network-instance) use RD and Pfx columns. Nodes that do not expose the L3VPN RIB gNMI path (for example EVPN-only leaves) contribute no rows for that family instead of failing the whole report:

fcli bgp-rib -r l3vpn-v4 -f Pfx="10.*"
fcli bgp-rib -r l3vpn-v6

The bgp-rib table shows a curated set of priority fields so it stays readable. Non-table output (-o json, -o yaml, -o csv) and the MCP tool automatically include the full set of path attributes for each route: standard communities, Site-of-Origin (soo), BGP domain-path (dpath), tunnel-encap extended-community, route-target (RT), as-path, route status (valid/best/used), tie-break reason and internal-tags. Use --detail/-d to also include these columns in the table:

fcli -o json bgp-rib -r evpn -t 5
fcli -d bgp-rib -r evpn -t 5

Tunnel table with resolved egress interface, next-hop and pushed MPLS label-stack:

fcli tunnel-table -f type=ldp

Debug logging

-l DEBUG traces what fcli does on the wire and why a report came out the way it did: the inventory it resolved and the filter it applied, every gNMI Get with its paths and round-trip time, the paths each report discovers, the Subscribe RPCs the server opens and the notifications they carry, cache hits, reconnects, and a traceback for every node that failed. Each line names the thread and call site, so the per-node threads stay readable when they interleave.

fcli -l DEBUG -f /tmp/fcli.log bgp-peers

It is deliberately chatty - on the live server, expect a line per notification per node - so -f/--log-file is usually easier to read than the terminal. The log goes to stderr, which leaves -o json|csv on stdout pipeable while a trace is running. Dependencies (gRPC, HTTP, the LLM clients) stay at INFO so their frame-level logs do not bury fcli's own; set FCLI_DEBUG_ALL=1 to let those through as well.

MCP server

fcli-mcp exposes the CLI reports as Model Context Protocol tools (stdio by default, or HTTP). An agent can query fabric state without wrapping fcli itself.

bash
fcli-mcp --topo-file topo.clab.yml
fcli-mcp --config-file nornir_config.yaml
fcli-mcp --transport http --port 8080

It can start with no topology loaded. These tools then pick or switch the fabric at runtime:

  • list_topologies — discover *.clab.yml and nornir_config.yaml files in a directory
  • load_topology — initialize or switch from a containerlab file
  • load_config — initialize or switch from a Nornir config file
  • show_topology — nodes, labels, and the keys inv_filter can use

Report tools take the same inv_filter and field_filter as the CLI (comma-separated key=value).

Claude Desktop

json
{
  "mcpServers": {
    "fcli": {
      "command": "fcli-mcp"
    }
  }
}

Gemini CLI

json
{
  "mcpServers": {
    "fcli": {
      "command": "fcli-mcp"
    }
  }
}

Reports

One registry drives all three surfaces, so a report cannot drift between CLI, MCP and the server. Not every report is on every surface: overview and topology only exist in the browser; bgp-rib takes an address family the streaming server cannot be given, so the server gets one pre-bound report per family instead; routing-pol is nested JSON that no table can represent.

ReportCLIServerWhat it shows
OverviewyesFabric KPIs (nodes, interfaces, BGP sessions)
TopologyyesLLDP graph with inferred leaf / spine / DCGW / client tiers
System Infosys-infoyesChassis, serial, software version, last boot
Interface StatsifstatsyesPer-interface rates and error/discard counters over the sample; the live table adds the port state
Sub-InterfacessubifyesType, addresses, oper-state
LAGslagyesLAG members and LACP
Network InstancesniyesNIs, their EVPN EVI and the interfaces bound to them
BGP Peersbgp-peersyesSession state and per-AF Rx/Act/Tx route counts
BGP RIBbgp-rib -r …split per family / EVPN typeRIB-in-post with path attributes
IPv4 / IPv6 RIBipv4-rib, ipv6-ribyesRoute table with resolved next-hops; -a for LPM
Static Routesstatic-routesyesConfigured statics and their state
Tunnel Tabletunnel-tableyesVXLAN, LDP, SR-ISIS, RSVP, …
Routing Policiesrouting-polNested policy JSON (-o json|yaml only)
ServicesyesMAC-VRF and IP-VRF grouped by route-target
Bridge DomainsyesMAC-VRFs with access ports, ethernet-segments and VXLAN overlays
RoutersyesIP-VRFs with bound MAC-VRFs, virtual ethernet-segments and overlays
MAC TablemacyesBridge-table MAC entries
IRB InterfacesirbyesIRB sub-interfaces and anycast gateways
Ethernet SegmentsesyesESI, MH mode, DF state, EVI of a virtual ES
L2-ES Destinationses-destyesES destinations in the bridge table
VXLAN TunnelsvxlanyesVXLAN interfaces and unicast destinations
LLDP NeighborslldpyesNeighbours per interface
ARP TablearpyesIPv4 neighbours per sub-interface
IPv6 NeighborsndyesND entries per sub-interface
CheckschecksyesFabric sanity checks, worst first; exits non-zero on an error

A getter and the table it renders as are split apart. Every getter-backed report returns records (nornir_srl/records.py) — a network-instance with its subinterfaces as a list, a BGP neighbour with each address family as an object carrying its route counts, a bridge-table entry with its destination already read apart into interface, VTEP, VNI or ESI, a route with each next-hop resolved to the interface, tunnel or prefix it leaves through, a BGP route with every path attribute and the route-targets, SoO and tunnel encapsulation read out of its communities, an interface with its subinterfaces and their resolved down reason, an interface's counters with the errors and discards counted over the sample, an LLDP interface with its neighbours, an ARP or ND cache with each entry's time left as a number of seconds, an irb with each address's flags and its ARP/ND settings as fields, a LAG with its members, a tunnel with each next-hop's port and label stack — and the table is declared next to the report as the columns that read a record. bgp-rib has one table per family and EVPN route type, and --detail only adds columns to it: the records always carry everything. -o json and -o yaml, like the MCP tools, emit the records rather than the table's cells ("families": [{"name": "evpn", "received": 74, ...}] instead of "evpn Rx/Act/Tx": "74/0/94"); the table and -o csv are unchanged. The checks and lenses read the same records, so nothing downstream parses a cell back apart. What has no table is what no getter produces: the server-only services and dashboards, which the store builds from its streams, the nested routing-pol, and checks, whose findings are collected fabric-wide.

Lenses

A report renders one node's state; a check asks the fabric a fixed question. A lens joins state across multiple nodes and reports to answer operational troubleshooting questions like where is this MAC, how does this leaf reach that address, or what does this service look like fabric-wide.

One registry (nornir_srl/lenses.py) drives the CLI commands, MCP tools, browser pages, and AI chat:

LensCLIMCP toolBrowserWhat it answers
Wherewhere <mac|ip>locate_addressyesWhich node owns an address, which learned it over the overlay, and duplicate conflicts
Pathpath <from> <to>trace_pathyesHop by hop from the route tables, every ECMP branch, through VXLAN or MPLS tunnels to ARP/ND
Serviceservice <name>service_detailyesOne network-instance, one row per node: EVI, VNI, RTs, interfaces, VTEPs, MAC counts, ES
bash
# which leaf owns this host, and does anyone else think they do
fcli -t topo.clab.yml where 00:C1:AB:00:01:21

# why does this tenant address not reach that one
fcli -t topo.clab.yml path leaf1 10.0.1.4 --ni ipvrf-1

# every node's view of one bridge domain, side by side
fcli -t topo.clab.yml service subnet-1

path is computed offline from route tables rather than active probes, showing complete ECMP fan-outs and recursive tunnel resolution without synthetic traffic. In the browser, lenses are rendered as cards, flat tables, or interactive path DAGs. Structured formats (-o json, -o yaml, MCP) emit complete data records.

See Lenses for the complete design document on path computation, tunnel resolution, and lens architecture.

Tested SR Linux releases

The reports hard-code gNMI paths and the YANG structure they expect back, and both move between SR Linux releases. When they move, the failure is usually silent: a path that no longer carries a value leaves a column empty rather than raising anything.

So CI does not mock the device. Every report is run once against a real, fully configured EVPN-VXLAN fabric per release, and the entire gNMI exchange — every Get and the payload or error the device answered with — is recorded. Each pull request replays those recordings through the production report code with no lab present:

SR Linux releaseNodes recordedReports replayed per node
25.3.2leaf + spine32
25.10.3leaf + spine32
26.3.1leaf + spine32
26.7.1leaf + spine32

That is 522 test cases, the bulk of the suite. Each one asserts that the report does not raise, that it still produces the exact table the live device produced, and that the set of paths a release rejects is the documented one — so a path that newly breaks, or one that quietly started working, fails the build instead of emptying a column.

All four releases produce identical columns for every report, despite 43–89 leaves being added and 3–28 removed under those paths between consecutive releases. The two bgp-rib -r l3vpn-v4|l3vpn-v6 variants are rejected by all four, because the bgp-rib model only carries the l3vpn containers on a node configured for MPLS IP-VPN; those reports degrade to an empty table and the rejection is pinned as expected.

The lab, the per-release datamodel changes and how to re-record are described in tests/fixtures/releases/MATRIX.md.

Installation

TypingMind
{
  "mcpServers": {
    "fcli": {
      "command": "fcli",
      "args": []
    }
  }
}

Utilisez le serveur MCP fcli avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois fcli connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajoutez fcli en tant que serveur

Lorsque l’état du connecteur affiche « Prêt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « Prêt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP fcli.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "fcli": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de fcli, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de fcli.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser fcli pour m’aider dans cette tâche ?
fcli
Bien sûr. J’ai tout lu.
Voici ce que j’ai trouvé avec fcli.

Foire aux questions

À quoi sert le serveur MCP fcli ?

fcli est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP fcli avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser fcli avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP fcli avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois fcli connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP fcli à TypingMind ?

fcli fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privées sur votre ordinateur.

Quels outils le serveur MCP fcli propose-t-il dans TypingMind ?

fcli propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP fcli ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si fcli nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇