# vishu1803/ai-job-mcp architecture

> Architecture diagram of the GitHub repository vishu1803/ai-job-mcp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vishu1803/ai-job-mcp
- Repository: https://github.com/vishu1803/ai-job-mcp

## Overview

Career Hub is a multi-tenant career-intelligence platform that grounds candidate profiles and documents in repository and resume evidence, then supports job-fit analysis and application management through a web UI and MCP clients. Its main workflow ingests GitHub and resume data, separates verified evidence from user claims, builds candidate intelligence, and applies it to job analysis, tailored artifacts, and tracking. The browser extension adds job-page detection and application assistance. Relationships for several unsampled capabilities follow explicit README statements; source-index references support the cited implementation links.

Main entry points: [`src/services/job-application-workflow.service.js`](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/job-application-workflow.service.js) (Job Application Workflow), [`src/services/candidate-repository-ingestion.service.js`](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/candidate-repository-ingestion.service.js) (Repository Ingestion), [`src/services/candidate-profile.service.js`](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/candidate-profile.service.js) (Candidate Profile), [`src/db/schema.js`](https://github.com/vishu1803/ai-job-mcp/blob/main/src/db/schema.js) (PostgreSQL)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User Interfaces"]
  node_web["Web Application<br/>[web.routes.js]"]
  node_extension["Browser Extension<br/>[service-worker.js]"]
  node_mcp["MCP Server<br/>[server.js]"]
end

subgraph group_identity["Identity and Platform"]
  node_auth["Authentication<br/>[auth.service.js]"]
  node_sessions["Session Management<br/>[session.service.js]"]
  node_database[("PostgreSQL<br/>[schema.js]")]
end

subgraph group_evidence["Candidate Evidence"]
  node_github_ingestion["Repository Ingestion"]
  node_github_connector["GitHub Connector"]
  node_extractor["Evidence Extraction"]
  node_resume_ingestion["Resume Ingestion"]
  node_profile["Candidate Profile"]
end

subgraph group_career["Career Intelligence"]
  node_job_analysis["Job Intelligence"]
  node_job_workflow["Job Application Workflow"]
end

subgraph group_actions["Documents and Applications"]
  node_documents["Career Documents"]
  node_artifact_content["Artifact Content"]
  node_tracking["Application Tracking"]
  node_handoff["Application Handoff"]
  node_storage["Document Storage"]
  node_approval["Write Approval<br/>[approval-signer.js]"]
end

node_candidate(("Candidate"))
node_ai_clients(("MCP AI Clients"))
node_github(("GitHub"))

node_candidate -->|"uses"| node_web
node_candidate -->|"uses"| node_extension
node_ai_clients -->|"connects"| node_mcp
node_web -->|"authenticates"| node_auth
node_mcp -->|"validates context"| node_auth
node_auth -->|"creates sessions"| node_sessions
node_sessions -->|"reads and writes"| node_database
node_github -->|"provides repositories"| node_github_connector
node_github_ingestion -->|"resolves connector"| node_github_connector
node_github_ingestion -->|"extracts evidence"| node_extractor
node_github_ingestion -->|"persists evidence"| node_database
node_resume_ingestion -->|"stores claims"| node_database
node_resume_ingestion -->|"stores encrypted source"| node_storage
node_github_ingestion -->|"builds verified skills"| node_profile
node_resume_ingestion -->|"adds separated claims"| node_profile
node_profile -->|"supplies candidate evidence"| node_job_analysis
node_job_analysis -->|"informs applications"| node_job_workflow
node_profile -->|"grounds tailored content"| node_documents
node_documents -->|"creates artifacts"| node_artifact_content
node_job_workflow -->|"manages lifecycle"| node_tracking
node_tracking -->|"persists applications"| node_database
node_job_workflow -->|"prepares handoff"| node_handoff
node_job_workflow -->|"requires human approval"| node_approval
node_extension -->|"requests application actions"| node_job_workflow
node_mcp -->|"exposes career tools"| node_job_analysis

click node_web "https://github.com/vishu1803/ai-job-mcp/blob/main/src/routes/web.routes.js"
click node_extension "https://github.com/vishu1803/ai-job-mcp/blob/main/extension/background/service-worker.js"
click node_mcp "https://github.com/vishu1803/ai-job-mcp/blob/main/src/mcp/server.js"
click node_auth "https://github.com/vishu1803/ai-job-mcp/blob/main/src/security/auth.service.js"
click node_sessions "https://github.com/vishu1803/ai-job-mcp/blob/main/src/security/session.service.js"
click node_database "https://github.com/vishu1803/ai-job-mcp/blob/main/src/db/schema.js"
click node_github_ingestion "https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/candidate-repository-ingestion.service.js"
click node_github_connector "https://github.com/vishu1803/ai-job-mcp/blob/main/src/connectors/github/github-connector.js"
click node_extractor "https://github.com/vishu1803/ai-job-mcp/blob/main/src/extractors/github/github-evidence-extractor.js"
click node_resume_ingestion "https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/source-resume-ingestion.service.js"
click node_profile "https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/candidate-profile.service.js"
click node_job_analysis "https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/ats-fit-score.service.js"
click node_job_workflow "https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/job-application-workflow.service.js"
click node_documents "https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/resume-tailoring.service.js"
click node_artifact_content "https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/candidate-artifact-content.service.js"
click node_tracking "https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/application-tracking.service.js"
click node_handoff "https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/application-handoff.service.js"
click node_storage "https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/document-storage.service.js"
click node_approval "https://github.com/vishu1803/ai-job-mcp/blob/main/src/security/approval-signer.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_web,node_extension,node_mcp,node_ai_clients toneBlue
class node_auth,node_sessions,node_database toneAmber
class node_github_ingestion,node_github_connector,node_extractor,node_resume_ingestion,node_profile toneMint
class node_job_analysis,node_job_workflow toneRose
class node_documents,node_artifact_content,node_tracking,node_handoff,node_storage,node_approval,node_candidate,node_github toneIndigo
```

## Components

### User Interfaces

- [Web Application](https://github.com/vishu1803/ai-job-mcp/blob/main/src/routes/web.routes.js): `src/routes/web.routes.js`
- [Browser Extension](https://github.com/vishu1803/ai-job-mcp/blob/main/extension/background/service-worker.js): `extension/background/service-worker.js`
- [MCP Server](https://github.com/vishu1803/ai-job-mcp/blob/main/src/mcp/server.js): `src/mcp/server.js`

### Identity and Platform

- [Authentication](https://github.com/vishu1803/ai-job-mcp/blob/main/src/security/auth.service.js): `src/security/auth.service.js`
- [Session Management](https://github.com/vishu1803/ai-job-mcp/blob/main/src/security/session.service.js): `src/security/session.service.js`
- [PostgreSQL](https://github.com/vishu1803/ai-job-mcp/blob/main/src/db/schema.js): `src/db/schema.js`

### Candidate Evidence

- [Repository Ingestion](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/candidate-repository-ingestion.service.js): `src/services/candidate-repository-ingestion.service.js`
- [GitHub Connector](https://github.com/vishu1803/ai-job-mcp/blob/main/src/connectors/github/github-connector.js): `src/connectors/github/github-connector.js`
- [Evidence Extraction](https://github.com/vishu1803/ai-job-mcp/blob/main/src/extractors/github/github-evidence-extractor.js): `src/extractors/github/github-evidence-extractor.js`
- [Resume Ingestion](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/source-resume-ingestion.service.js): `src/services/source-resume-ingestion.service.js`
- [Candidate Profile](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/candidate-profile.service.js): `src/services/candidate-profile.service.js`

### Career Intelligence

- [Job Intelligence](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/ats-fit-score.service.js): `src/services/ats-fit-score.service.js`
- [Job Application Workflow](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/job-application-workflow.service.js): `src/services/job-application-workflow.service.js`

### Documents and Applications

- [Career Documents](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/resume-tailoring.service.js): `src/services/resume-tailoring.service.js`
- [Artifact Content](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/candidate-artifact-content.service.js): `src/services/candidate-artifact-content.service.js`
- [Application Tracking](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/application-tracking.service.js): `src/services/application-tracking.service.js`
- [Application Handoff](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/application-handoff.service.js): `src/services/application-handoff.service.js`
- [Document Storage](https://github.com/vishu1803/ai-job-mcp/blob/main/src/services/document-storage.service.js): `src/services/document-storage.service.js`
- [Write Approval](https://github.com/vishu1803/ai-job-mcp/blob/main/src/security/approval-signer.js): `src/security/approval-signer.js`

### Other components

- **Candidate**
- **MCP AI Clients**
- **GitHub**

## Connections

- Candidate → Web Application: uses (evidence: `README.md`)
- Candidate → Browser Extension: uses (evidence: `README.md`)
- MCP AI Clients → MCP Server: connects (evidence: `README.md`)
- Web Application → Authentication: authenticates (evidence: `README.md`)
- MCP Server → Authentication: validates context (evidence: `src/mcp/server.js`)
- Authentication → Session Management: creates sessions (evidence: `src/security/auth.service.js`)
- Session Management → PostgreSQL: reads and writes (evidence: `src/security/session.service.js`)
- GitHub → GitHub Connector: provides repositories (evidence: `README.md`)
- Repository Ingestion → GitHub Connector: resolves connector (evidence: `src/services/candidate-repository-ingestion.service.js`)
- Repository Ingestion → Evidence Extraction: extracts evidence (evidence: `README.md`)
- Repository Ingestion → PostgreSQL: persists evidence (evidence: `README.md`)
- Resume Ingestion → PostgreSQL: stores claims (evidence: `src/services/source-resume-ingestion.service.js`)
- Resume Ingestion → Document Storage: stores encrypted source (evidence: `README.md`)
- Repository Ingestion → Candidate Profile: builds verified skills (evidence: `README.md`)
- Resume Ingestion → Candidate Profile: adds separated claims (evidence: `README.md`)
- Candidate Profile → Job Intelligence: supplies candidate evidence (evidence: `README.md`)
- Job Intelligence → Job Application Workflow: informs applications (evidence: `README.md`)
- Candidate Profile → Career Documents: grounds tailored content (evidence: `README.md`)
- Career Documents → Artifact Content: creates artifacts (evidence: `README.md`)
- Job Application Workflow → Application Tracking: manages lifecycle (evidence: `src/services/job-application-workflow.service.js`)
- Application Tracking → PostgreSQL: persists applications (evidence: `src/services/application-tracking.service.js`)
- Job Application Workflow → Application Handoff: prepares handoff (evidence: `src/services/job-application-workflow.service.js`)
- Job Application Workflow → Write Approval: requires human approval (evidence: `README.md`)
- Browser Extension → Job Application Workflow: requests application actions
- MCP Server → Job Intelligence: exposes career tools (evidence: `README.md`)
