From 1caa286e65663d4a6bc1babdf0b1234247c4c4c7 Mon Sep 17 00:00:00 2001
From: Fede Luzzi
@@ -69,9 +69,17 @@ el.replaceWith(d);
Start a standalone persistent session with the AI Copilot. Manage sessions using --list, --resume, --session <id> (to restore a specific history), --delete <id>, or send a quick single-shot question directly from the terminal prompt:
conn ai "how do i check bgp summary on cisco?"
-Connect to external data sources and tools dynamically via the Model Context Protocol (MCP). Use the interactive wizard or command actions to configure MCP servers:
-conn ai --mcp
+1c. MCP Integration (Client & Server)
+Connect to external data sources and tools dynamically, or expose connpy as a native MCP server for external agents (Claude Desktop, Cursor, IDEs):
+# MCP Client: Manage connected MCP servers
+conn ai --mcp # Interactive configuration wizard
+conn ai --mcp list # List configured MCP servers
+conn ai --mcp add <name> <url> [os] # Add a remote SSE MCP server
+
+# MCP Server: Serve connpy inventory, diagnostic tools, and playbooks
+conn ai --mcp serve # Standard I/O mode (default, for local clients)
+conn ai --mcp serve --sse --port 8080 # Remote SSE mode
+conn ai --mcp serve --trust # Enable inventory mutations (CRUD) & configuration commands
1d. Local Interactive Shell (conn shell)
Launch a local interactive shell with AI Copilot support enabled directly on your host machine:
@@ -4598,7 +4606,7 @@ def test(self, commands, expected, vars = None,*, folder = None, prompt = None,