DEV Community

Cover image for I Gave My AI Full Control of My Laptop โ€” Here's What Happened ๐Ÿค–๐Ÿ’ป
Viswa Srimaan
Viswa Srimaan

Posted on

I Gave My AI Full Control of My Laptop โ€” Here's What Happened ๐Ÿค–๐Ÿ’ป

The Moment I Realized AI Was Stuck in a Text Box
Picture this: You're deep in a coding session. Your AI buddy just gave you the perfect shell command. You copy it. You paste it. You run it. You go back. You paste the output. The AI says "try this instead." You copy. You paste. You run. You go back...
Over and over and over.
I snapped one day and thought: "Why can't the AI just... DO it?"

So I built a thing. And it changed everything.

๐Ÿ”— MCP Server Git Hub Link

๐ŸŽฌ Let Me Show You What It Looks Like

Instead of the old copy-paste dance, my conversations now go like this:

Me: "What's eating all my RAM right now?"

AI: Actually checks my running processes and responds: "Chrome is using 2.1GB across 47 processes ๐Ÿ˜…. VS Code is at 890MB. Want me to kill any of these?"

Me: "Nah, but can you find all those .tmp files in my Downloads and clean them up?"

AI: Searches my filesystem, finds 23 temp files, and asks: "Found 23 .tmp files taking up 340MB. Here's the list. Want me to delete them?"

Me: "Do it."

AI: Actually deletes them. "Done! Freed up 340MB. ๐ŸŽ‰"
Enter fullscreen mode Exit fullscreen mode

That's real. That's not a mockup. That's my actual workflow now.

๐Ÿงฉ "But HOW?" โ€” Enter MCP

MCP (Model Context Protocol) is like a USB-C port for AI. It's an open standard that lets AI models plug into external tools through a clean, standardized interface.

You, talking to AI         The Magic Bridge           Your Computer
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ "Delete those   โ”‚ โ”€โ”€โ”€โ–บ โ”‚   MCP Server โ”‚ โ”€โ”€โ”€โ–บ โ”‚ *actually deletes โ”‚
โ”‚  temp files"    โ”‚      โ”‚  (my project)โ”‚      โ”‚  the files*       โ”‚
โ”‚                 โ”‚ โ—„โ”€โ”€โ”€ โ”‚              โ”‚ โ—„โ”€โ”€โ”€ โ”‚                  โ”‚
โ”‚ "Done! 340MB    โ”‚      โ”‚              โ”‚      โ”‚                  โ”‚
โ”‚  freed up ๐ŸŽ‰"  โ”‚      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Enter fullscreen mode Exit fullscreen mode

The beautiful part? One server works with multiple AI clients โ€” Google Antigravity, Claude Code, Claude Desktop. Build once, use everywhere.

๐Ÿงฐ 28+ Tools. Yes, Really.

I went a little overboard. Here's the full arsenal:

๐Ÿ’ป System Tools โ€” "Be my sysadmin"

  • ๐Ÿ–ฅ๏ธ "What's my CPU at?" โ†’ Returns real-time CPU, memory, and disk stats
  • โšก "Run git status" โ†’ Executes PowerShell commands (with safety confirmation!)
  • ๐Ÿ“Š "What's hogging my memory?" โ†’ Lists processes sorted by RAM/CPU usage
  • ๐Ÿ’€ "Kill process 4521" โ†’ Terminates it (after asking you first ๐Ÿ‘€)
  • ๐Ÿ”‹ "Am I plugged in?" โ†’ Battery level + charging status
  • ๐ŸŒ "Show me my IP address" โ†’ Full network interface breakdown

๐Ÿ“ File Management โ€” "Be my file explorer"

  • ๐Ÿ“‚ "What's in my Documents folder?" โ†’ Lists files and directories
  • ๐Ÿ“„ "Read config.json" โ†’ Displays file contents
  • โž• "Create a 'Projects' folder" โ†’ Makes directories (recursive!)
  • ๐Ÿ” "Find all .py files" โ†’ Glob-based file search
  • โ†—๏ธ "Move report.pdf to Archive" โ†’ Renames or moves files
  • ๐Ÿ—‘๏ธ "Delete old-backup/" โ†’ Removes files/dirs (with confirmation)

๐ŸŒ Web Tools โ€” "Be my browser"

  • ๐Ÿ”Ž "Google Python best practices" โ†’ Searches via DuckDuckGo
  • ๐Ÿ“ฐ "Grab the text from this URL" โ†’ Fetches + extracts clean text
  • โฌ‡๏ธ "Download this file" โ†’ Saves files from any URL

๐Ÿ“ฆ App Management โ€” "Be my IT department"

  • ๐Ÿ“‹ "What do I have installed?" โ†’ Lists all apps (via winget)
  • ๐Ÿ“ฅ "Install Firefox" โ†’ Installs from winget repository
  • ๐Ÿ”„ "Update all my apps" โ†’ Updates installed applications

๐Ÿ”ง Utilities โ€” "Be my Swiss Army knife"

  • ๐Ÿ“Ž "What's on my clipboard?" โ†’ Reads clipboard contents
  • โœ๏ธ "Copy this to clipboard" โ†’ Sets clipboard text
  • ๐Ÿ“ธ "Take a screenshot" โ†’ Captures your screen

๐Ÿ” "Wait... Isn't This Terrifying?"

You're thinking it. I thought it too.

"You gave an AI the power to delete files and kill processes?!"

Yes. But. I'm not a maniac. Let me introduce you to my favorite feature:

The Two-Phase Confirmation System ๐Ÿซก

Every dangerous operation follows a strict handshake:

You: "Delete that folder"

AI โ”€โ”€โ–บ MCP Server: "I want to delete /Users/me/old-stuff"
MCP Server: "Here's a token: abc-123. Show this warning to the user."

AI โ”€โ”€โ–บ You: "โš ๏ธ I'm about to delete /Users/me/old-stuff. 
        This can't be undone. OK?"

You: "Yes, do it."

AI โ”€โ”€โ–บ MCP Server: "confirm_action(token='abc-123')"
MCP Server: *actually deletes it*
AI โ”€โ”€โ–บ You: "Done! โœ…"
Enter fullscreen mode Exit fullscreen mode

No token = no execution. Period.

And the token? It expires in 5 minutes. So a sneaky prompt injection can't stash a delete command and run it later.

The Security Wall ๐Ÿงฑ

Even with confirmation, the server blocks genuinely dangerous stuff:

  • ๐Ÿšซ Can't touch system files โ€” C:\Windows\System32? Nope.
  • ๐Ÿšซ Can't probe your network โ€” localhost, 192.168.x.x, cloud metadata endpoints? All blocked.
  • ๐Ÿšซ Can't write executables โ€” Trying to create .exe, .bat, .ps1 files? Denied.
  • ๐Ÿšซ Can't open shady programs โ€” Only whitelisted apps (notepad, chrome, etc.) work.

I wrote 39 security tests covering every attack vector I could think of. 39/39 pass. โœ…


โšก Set It Up in 5 Minutes

For real. Five minutes. Here we go:

1. Clone + Install

git clone https://github.com/ViswaSrimaan/mcp_servers.git
cd mcp_servers
python -m venv .venv
.venv\Scripts\activate
pip install mcp psutil httpx beautifulsoup4 pyperclip Pillow duckduckgo-search
Enter fullscreen mode Exit fullscreen mode

2. Pick Your AI Client

๐ŸŸข Google Antigravity

Edit %USERPROFILE%\.gemini\antigravity\mcp_config.json:

{
  "mcpServers": {
    "laptop-assistant": {
      "type": "stdio",
      "command": "C:\\your\\path\\mcp_servers\\.venv\\Scripts\\python.exe",
      "args": ["C:\\your\\path\\mcp_servers\\server.py"]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Restart Antigravity. Done. โœ…

๐ŸŸฃ Claude Code (VS Code)

Create .mcp.json in your workspace root:

{
  "mcpServers": {
    "laptop-assistant": {
      "type": "stdio",
      "command": "C:\\your\\path\\mcp_servers\\.venv\\Scripts\\python.exe",
      "args": ["C:\\your\\path\\mcp_servers\\server.py"]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Reload VS Code. Done. โœ…

๐Ÿ”ต Claude Desktop

Edit %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "laptop-assistant": {
      "command": "C:\\your\\path\\mcp_servers\\.venv\\Scripts\\python.exe",
      "args": ["C:\\your\\path\\mcp_servers\\server.py"]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Restart Claude Desktop. Done. โœ…

3. Start Chatting ๐ŸŽ‰

Ask your AI to check your battery, list your files, or search the web. It just... works.


๐Ÿ—๏ธ Under the Hood (For the Curious)

The architecture is dead simple and very extensible:

server.py                 โ† Entry point, registers everything
โ”œโ”€โ”€ src/safety.py         โ† Token-based confirmation system
โ”œโ”€โ”€ src/security_config.pyโ† All the security rules
โ””โ”€โ”€ src/tools/
    โ”œโ”€โ”€ system_tools.py   โ† 7 tools (CPU, processes, battery...)
    โ”œโ”€โ”€ file_tools.py     โ† 9 tools (read, write, search...)
    โ”œโ”€โ”€ web_tools.py      โ† 3 tools (search, fetch, download)
    โ”œโ”€โ”€ app_tools.py      โ† 5 tools (install, update, uninstall)
    โ””โ”€โ”€ utility_tools.py  โ† 4 tools (clipboard, screenshot)
Enter fullscreen mode Exit fullscreen mode

Want to add a tool? It's literally this:

@mcp.tool()
def vibe_check() -> str:
    """Check the vibes of your system.

    Returns a vibe report based on CPU temp and battery level.
    """
    # your code here
    return json.dumps({"vibes": "immaculate"})
Enter fullscreen mode Exit fullscreen mode

Register it, restart, and your AI can use it immediately. That's the power of MCP.


๐Ÿ”ฎ What's Coming Next

This is just v1. Here's my roadmap:

  • ๐Ÿง Linux and macOS support โ€” Windows-only no more
  • ๐Ÿค– Task automation โ€” chain tools into multi-step workflows
  • ๐Ÿ”Œ Plugin system โ€” drop in custom tool modules
  • ๐ŸŒ Browser automation โ€” full web interaction, not just fetching

๐Ÿซต Your Turn

I built this to scratch my own itch โ€” I wanted my AI to stop being a talker and start being a doer. If that resonates with you, give it a try:

โญ github.com/ViswaSrimaan/mcp_servers

Star it, fork it, break it, fix it, PR it. The whole repo is MIT licensed and contributions are very welcome.


Got questions? Found a bug? Want to show off what you built with it? Drop a comment below โ€” I read every one! ๐Ÿ’ฌ

Top comments (2)

Collapse
 
sandhya_chakravarthy_cfc5 profile image
Sandhya chakravarthy

Well articulated. How.did you achieve agent orchestration?

Collapse
 
viswasrimaan profile image
Viswa Srimaan

Thanks, Sandhya! For orchestration, Iโ€™m leaning on the native tool-calling capabilities of the AI clients (like Claude or Google Antigravity). Through the MCP standard, the server exposes the 'manifest' of 28+ tools. The agent then uses its own reasoning engine to decide which tool to call based on the user's intent. For complex tasks, it handles the multi-step reasoning loopโ€”checking the state, calling a tool, and then deciding the next move based on the output.