Network
Valide les regex BGP community (RFC 8294), compare des AS-path et génère la config Cisco/Juniper/FRR.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/bgp-community-string-regex-tester-and-looking-glass' \
-H 'Content-Type: application/json' \
-d '{"communityRegex":"^65000:","communitySet":"65000:100\n65000:101\n65000:200\n65001:500\nno-export","asPathRegex":"_65000_ (matches paths transiting AS65000)","asPath":"65001 65000 65002\n65000 65003 65004","vendorOutput":"cisco","caseSensitive":false}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/bgp-community-string-regex-tester-and-looking-glass| Nom | Type | Requis | Description |
|---|---|---|---|
| communityRegex | text | Non | — |
| communitySet | textarea | Non | — |
| asPathRegex | text | Non | — |
| asPath | textarea | Non | — |
| vendorOutput | select | Oui | — |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-bgp-community-string-regex-tester-and-looking-glass": {
"name": "bgp-community-string-regex-tester-and-looking-glass",
"description": "Valide les regex BGP community (RFC 8294), compare des AS-path et génère la config Cisco/Juniper/FRR.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=bgp-community-string-regex-tester-and-looking-glass",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "bgp-community-string-regex-tester-and-looking-glass",
"arguments": {
"communityRegex": "^65000:",
"communitySet": "65000:100\n65000:101\n65000:200\n65001:500\nno-export",
"asPathRegex": "_65000_ (matches paths transiting AS65000)",
"asPath": "65001 65000 65002\n65000 65003 65004",
"vendorOutput": "cisco",
"caseSensitive": false
}
}
}| caseSensitive |
| checkbox |
| Non |
| — |
Résultat texte
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Des questions ou un problème ? Contactez [email protected]