# sultan-zd/mcp-entra-secops architecture

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

- Interactive diagram: https://gitdiagram.com/sultan-zd/mcp-entra-secops
- Repository: https://github.com/sultan-zd/mcp-entra-secops

## Overview

ARGUS is a read-only SecOps platform exposing security capabilities through MCP servers, with a single bundled server for distribution. The main user flow is an analyst asking a question in natural language; the model selects tools, and domain servers return real tenant, public-source, or local-corpus results. The deterministic argus-agent adds cross-domain investigation and verdicts, while argus-eval runs reference incidents against it. The README documents the broad domain capabilities; sampled source and the SOURCE INDEX support only some internal call paths, so unsampled wiring is omitted.

Main entry points: [`src/argus_bundle/server.py`](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/argus_bundle/server.py) (Bundled MCP server), [`atelier/argus_agent/orchestrator.py`](https://github.com/sultan-zd/mcp-entra-secops/blob/main/atelier/argus_agent/orchestrator.py) (Deterministic orchestrator), [`src/entra_secops_mcp/tools`](https://github.com/sultan-zd/mcp-entra-secops/tree/main/src/entra_secops_mcp/tools) (Entra investigations), [`src/threat_intel_mcp/tools.py`](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/threat_intel_mcp/tools.py) (Threat intelligence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["MCP access"]
  node_bundle["Bundled MCP server<br/>[server.py]"]
  node_sharednet["Shared network services<br/>[__init__.py]"]
end

subgraph group_intel["Threat intelligence"]
  node_entra["Entra investigations"]
  node_graph["Microsoft Graph client<br/>[graph.py]"]
  node_threat["Threat intelligence<br/>[tools.py]"]
  node_vulns["Vulnerability intelligence<br/>[tools.py]"]
end

subgraph group_analysis["Local analysis"]
  node_mitre["MITRE ATT&amp;CK and D3FEND<br/>[tools.py]"]
  node_detection["Detection engineering<br/>[tools.py]"]
  node_artifacts["Artifact analysis<br/>[tools.py]"]
end

subgraph group_recon["Exposure and email"]
  node_web["Web and TLS reconnaissance<br/>[tools.py]"]
  node_email["Email security<br/>[tools.py]"]
end

subgraph group_orchestration["Investigation"]
  node_agent["Deterministic orchestrator<br/>[orchestrator.py]"]
  node_playbooks["Investigation playbooks<br/>[playbooks.py]"]
  node_verdict["Verdict generation<br/>[verdict.py]"]
  node_evaluation["Incident evaluation<br/>[runner.py]"]
end

node_analyst(("Analyst"))
node_model(("AI model"))
node_publicsources["Public intelligence sources"]
node_entra_tenant[("Entra ID tenant")]

node_analyst -->|"asks question"| node_model
node_model -->|"selects MCP tools"| node_bundle
node_bundle -->|"registers tools"| node_entra
node_bundle -->|"loads runtime"| node_threat
node_bundle -->|"loads runtime"| node_vulns
node_bundle -->|"loads runtime"| node_web
node_bundle -->|"loads runtime"| node_email
node_entra -->|"queries tenant"| node_graph
node_graph -.->|"reads directory data"| node_entra_tenant
node_threat -.->|"enriches indicators"| node_publicsources
node_vulns -->|"checks CVE data"| node_publicsources
node_agent -->|"calls investigation tools"| node_entra
node_agent -->|"calls enrichment tools"| node_threat
node_agent -->|"calls posture tools"| node_email
node_agent -->|"uses playbooks"| node_playbooks
node_agent -->|"builds verdict"| node_verdict
node_evaluation -->|"runs incidents"| node_agent
node_email -->|"uses network services"| node_sharednet
node_web -.->|"uses network services"| node_sharednet
node_mitre -.->|"supports mapping"| node_detection

click node_bundle "https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/argus_bundle/server.py"
click node_entra "https://github.com/sultan-zd/mcp-entra-secops/tree/main/src/entra_secops_mcp/tools"
click node_graph "https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/entra_secops_mcp/graph.py"
click node_threat "https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/threat_intel_mcp/tools.py"
click node_vulns "https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/vuln_intel_mcp/tools.py"
click node_mitre "https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/mitre_mcp/tools.py"
click node_detection "https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/detection_mcp/tools.py"
click node_artifacts "https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/artefact_mcp/tools.py"
click node_web "https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/web_recon_mcp/tools.py"
click node_email "https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/email_security_mcp/tools.py"
click node_sharednet "https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/argus_net/__init__.py"
click node_agent "https://github.com/sultan-zd/mcp-entra-secops/blob/main/atelier/argus_agent/orchestrator.py"
click node_playbooks "https://github.com/sultan-zd/mcp-entra-secops/blob/main/atelier/argus_agent/playbooks.py"
click node_verdict "https://github.com/sultan-zd/mcp-entra-secops/blob/main/atelier/argus_agent/verdict.py"
click node_evaluation "https://github.com/sultan-zd/mcp-entra-secops/blob/main/atelier/argus_eval/runner.py"

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_bundle,node_sharednet toneBlue
class node_entra,node_graph,node_threat,node_vulns,node_entra_tenant toneAmber
class node_mitre,node_detection,node_artifacts toneMint
class node_web,node_email toneRose
class node_agent,node_playbooks,node_verdict,node_evaluation,node_analyst,node_model,node_publicsources toneIndigo
```

## Components

### MCP access

- [Bundled MCP server](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/argus_bundle/server.py): `src/argus_bundle/server.py`
- [Shared network services](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/argus_net/__init__.py): `src/argus_net/__init__.py`

### Threat intelligence

- [Entra investigations](https://github.com/sultan-zd/mcp-entra-secops/tree/main/src/entra_secops_mcp/tools): `src/entra_secops_mcp/tools`
- [Microsoft Graph client](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/entra_secops_mcp/graph.py): `src/entra_secops_mcp/graph.py`
- [Threat intelligence](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/threat_intel_mcp/tools.py): `src/threat_intel_mcp/tools.py`
- [Vulnerability intelligence](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/vuln_intel_mcp/tools.py): `src/vuln_intel_mcp/tools.py`

### Local analysis

- [MITRE ATT&CK and D3FEND](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/mitre_mcp/tools.py): `src/mitre_mcp/tools.py`
- [Detection engineering](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/detection_mcp/tools.py): `src/detection_mcp/tools.py`
- [Artifact analysis](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/artefact_mcp/tools.py): `src/artefact_mcp/tools.py`

### Exposure and email

- [Web and TLS reconnaissance](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/web_recon_mcp/tools.py): `src/web_recon_mcp/tools.py`
- [Email security](https://github.com/sultan-zd/mcp-entra-secops/blob/main/src/email_security_mcp/tools.py): `src/email_security_mcp/tools.py`

### Investigation

- [Deterministic orchestrator](https://github.com/sultan-zd/mcp-entra-secops/blob/main/atelier/argus_agent/orchestrator.py): `atelier/argus_agent/orchestrator.py`
- [Investigation playbooks](https://github.com/sultan-zd/mcp-entra-secops/blob/main/atelier/argus_agent/playbooks.py): `atelier/argus_agent/playbooks.py`
- [Verdict generation](https://github.com/sultan-zd/mcp-entra-secops/blob/main/atelier/argus_agent/verdict.py): `atelier/argus_agent/verdict.py`
- [Incident evaluation](https://github.com/sultan-zd/mcp-entra-secops/blob/main/atelier/argus_eval/runner.py): `atelier/argus_eval/runner.py`

### Other components

- **Analyst**
- **AI model**
- **Public intelligence sources**
- **Entra ID tenant**

## Connections

- Analyst → AI model: asks question (evidence: `README.md`)
- AI model → Bundled MCP server: selects MCP tools (evidence: `README.md`)
- Bundled MCP server → Entra investigations: registers tools (evidence: `src/argus_bundle/server.py`)
- Bundled MCP server → Threat intelligence: loads runtime (evidence: `src/argus_bundle/server.py`)
- Bundled MCP server → Vulnerability intelligence: loads runtime (evidence: `src/argus_bundle/server.py`)
- Bundled MCP server → Web and TLS reconnaissance: loads runtime (evidence: `src/argus_bundle/server.py`)
- Bundled MCP server → Email security: loads runtime (evidence: `src/argus_bundle/server.py`)
- Entra investigations → Microsoft Graph client: queries tenant (evidence: `src/entra_secops_mcp/tools/access.py`)
- Microsoft Graph client → Entra ID tenant: reads directory data
- Threat intelligence → Public intelligence sources: enriches indicators
- Vulnerability intelligence → Public intelligence sources: checks CVE data (evidence: `src/vuln_intel_mcp/tools.py`)
- Deterministic orchestrator → Entra investigations: calls investigation tools (evidence: `atelier/argus_agent/orchestrator.py`)
- Deterministic orchestrator → Threat intelligence: calls enrichment tools (evidence: `atelier/argus_agent/orchestrator.py`)
- Deterministic orchestrator → Email security: calls posture tools (evidence: `atelier/argus_agent/orchestrator.py`)
- Deterministic orchestrator → Investigation playbooks: uses playbooks (evidence: `atelier/argus_agent/orchestrator.py`)
- Deterministic orchestrator → Verdict generation: builds verdict (evidence: `atelier/argus_agent/orchestrator.py`)
- Incident evaluation → Deterministic orchestrator: runs incidents (evidence: `atelier/argus_eval/runner.py`)
- Email security → Shared network services: uses network services (evidence: `src/email_security_mcp/tools.py`)
- Web and TLS reconnaissance → Shared network services: uses network services
- MITRE ATT&CK and D3FEND → Detection engineering: supports mapping
