How ganesanfocus/mcp_gmail_jira_claude works
This repository is a browser-based Gmail/Jira assistant: a user submits chat requests, Flask passes them to a Gemini tool-calling agent, and selected MCP tools reach the configured mail or issue-tracking server. The servers query or update their external services and return results for the agent to summarize. The graph also shows the MCP connection layer and the separate legacy Gmail script. Server-to-service links follow the sampled server code; app-to-server wiring is documented in the README, while the Jira server’s configuration is dynamic.
Main entry points: mcp_client.py MCP connection manager · app.py Flask routes · index.html Chat page · gmail_mcp_server.py Gmail MCP tools
Components 13
Chat interface
- Chat page
templates/index.html - Flask routes
app.py - Earlier client variant
app copy.py
Agent and MCP client
- Tool-calling agent
app.py - MCP tool adapter
app.py - MCP connection manager
mcp_client.py
Service integrations
- Gmail MCP tools
gmail_mcp_server.py - Jira MCP tools
jira_mcp_server.py - Legacy Gmail helper
gmail_mcp.py
Other components
- User
- Gemini model
- Gmail API
- Jira API
Connections 13
- User → Chat page: submits request
README.md - Chat page → Flask routes: POSTs chat
README.md - Flask routes → Chat page: renders page
app.py - Flask routes → Tool-calling agent: invokes
app.py - Tool-calling agent → Gemini model: selects tools
app.py - Tool-calling agent → MCP tool adapter: dispatches tool
app.py - MCP tool adapter → MCP connection manager: calls tool
app.py - MCP connection manager → Gmail MCP tools: MCP calls
README.md - MCP connection manager → Jira MCP tools: MCP calls
README.md - Gmail MCP tools → Gmail API: reads or drafts
gmail_mcp_server.py - Jira MCP tools → Jira API: searches or comments
jira_mcp_server.py - Legacy Gmail helper → Gmail API: reads messages
gmail_mcp.py - Earlier client variant → MCP connection manager: uses client
app copy.py