Task: Create a Python script that connects to the Scope3 Agentic API using Model Context Protocol (MCP) and provides an interactive chat interface
powered by Gemini 2.5 Flash.
Context: The Scope3 Agentic API is available via MCP at https://api.agentic.scope3.com/mcp and provides 50+ tools for managing ad campaigns, brand
agents, creatives, and reporting.
Requirements:
1. Use langchain-mcp-adapters to connect to the Scope3 MCP endpoint
2. Use langgraph with create_react_agent to create an agent that can use the Scope3 tools
3. Use Gemini (via langchain_google_genai) as the reasoning model
4. Load API keys from a .env file using python-dotenv
5. Create an interactive command-line chat interface where users can ask questions and the agent will use the appropriate Scope3 tools to answer