Create a new file github_agent.py with the following code:
Copy
from praisonaiagents import Agent, MCPimport os# Use the API key from environment or set it directlygithub_token = os.getenv("GITHUB_PERSONAL_ACCESS_TOKEN")# Use a single string command with environment variablesgithub_agent = Agent( instructions="""You are a helpful assistant that can interact with GitHub. Use the available tools when relevant to answer user questions.""", llm="gpt-4o-mini", tools=MCP("npx -y @modelcontextprotocol/server-github", env={"GITHUB_PERSONAL_ACCESS_TOKEN": github_token}))github_agent.start("List my GitHub repositories")