Skip to main content
Glama
talhaqadeer02-byte

Personal Ops Assistant (MCP)

README.md
# Personal Ops Assistant (MCP)

An AI-powered personal operations assistant built using the **Model Context Protocol (MCP)**, **FastMCP**, **Google Gemini**, and **FastAPI**. 

It dynamically discovers and executes operational tools at runtime to search local notes, inspect GitHub repository activity, and summarize live web pages through a web interface.

---

## šŸš€ Key Features

- **Model Context Protocol (MCP):** Connects a Gemini client agent to a local FastMCP tool server via `stdio`.
- **Dynamic Tool Discovery:** MCP tools are listed, converted to Gemini function declarations, and invoked dynamically at runtime.
- **Integrated Tools:**
  - `search_local_notes`: Searches local `.md` and `.txt` files for keywords and returns file content.
  - `github_recent_activity`: Fetches recent commit logs from any GitHub repository using the GitHub REST API.
  - `summarize_webpage`: Extracts and summarizes content from live URLs.
- **Web UI:** Modern chat interface with live MCP tool call inspection logs.

---

## šŸ“ Project Structure

```text
ā”œā”€ā”€ notes/              # Local markdown and text notes directory
ā”œā”€ā”€ static/
│   └── index.html      # Responsive chat interface
ā”œā”€ā”€ agent.py            # Gemini client & MCP dynamic tool orchestration loop
ā”œā”€ā”€ server.py           # FastMCP server exposing local tools over stdio
ā”œā”€ā”€ app.py              # FastAPI server & API endpoints
ā”œā”€ā”€ requirements.txt    # Project dependencies
└── README.md           # Project documentation