import os
from opper_agents import Agent, mcp, MCPServerConfig
filesystem = MCPServerConfig(
name="filesystem",
transport="stdio",
command="npx",
args=["-y", "@modelcontextprotocol/server-filesystem", os.getcwd()]
)
sqlite = MCPServerConfig(
name="sqlite",
transport="stdio",
command="uvx",
args=["mcp-server-sqlite", "--db-path", "./database.db"]
)
github = MCPServerConfig(
name="github",
transport="http-sse",
url="https://mcp.github.example.com",
headers={"Authorization": f"Bearer {GITHUB_TOKEN}"}
)
agent = Agent(
name="DevAgent",
description="Development assistant with file, database, and GitHub access",
tools=[
mcp(filesystem),
mcp(sqlite),
mcp(github)
]
)