from upsonic import Task, Agent
class FileSystemMCP:
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
tool_name_prefix = "fs" # Tools become: fs_read_file, fs_write_file, etc.
class GitHubMCP:
command = "npx"
args = ["-y", "@modelcontextprotocol/server-github"]
env = {"GITHUB_PERSONAL_ACCESS_TOKEN": "your_token"}
tool_name_prefix = "github" # Tools become: github_list_repos, etc.
task = Task(
description="Use 'fs_*' tools to read local files, and 'github_*' tools to interact with GitHub.",
tools=[FileSystemMCP, GitHubMCP]
)