Skip to main content
Glama
OGE HSE MCP

OGE HSE MCP

by jameswh3

OGE HSE MCP demonstration

This repository provisions an Entra-protected, read-only remote MCP server containing fictitious HSE procedures and incidents. It is a demonstration only; none of the records are operational safety guidance.

Local validation

  1. Copy .env.example to .env and set the variables.

  2. Install with py -m pip install -e ".[dev]".

  3. Run oge-hse-seed.

  4. Run tests with py -m pytest -q.

Related MCP server: SSO MCP Server

Azure provisioning

The script reads deployment-specific values only from .env:

.\scripts\provision.ps1

It creates the resource API registration when needed, provisions Azure Container Apps and Azure Container Registry, builds the image in ACR, and prints the MCP URL and resource API scope. It does not grant tenant-wide consent or create Microsoft 365 integrations; those are explicit administrator review steps described in docs/microsoft-365-integration.md.

Remove all demonstration Azure resources and the Entra app registration with .\scripts\remove.ps1.

MCP tools

  • search_hse_knowledge: Search procedures and incident lessons with grounding metadata.

  • search_procedures: Search global and site-authorized HSE procedures.

  • get_procedure: Retrieve one authorized procedure.

  • search_incidents: Search 200 fictitious incidents across the two authorized demo sites and report the full matching count independently of the result limit.

Authorization is fail-closed. The HTTP bearer token is validated for signature, issuer, audience, expiry, and required delegated scope. Site access comes from Entra app roles in the configured claim named by HSE_ENTRA_SITE_CLAIM; a tool argument can't expand that scope.

Microsoft 365 integration paths

Available Tools

4 tools
get_procedureB

Get one HSE procedure when it is global or in the caller's authorized site scope.

Inputs: procedure_id (required), site_ids. Returns: object

search_hse_knowledgeA

Search current HSE procedures and incident lessons for grounded answers.

Inputs: query (required), limit, site_ids. Returns: object

search_incidentsA

Search fictitious HSE incidents in the caller's authorized site scope.

Inputs: limit, query, severity, site_ids. Returns: object

search_proceduresC

Search current HSE procedures in the caller's authorized site scope.

Inputs: limit, query, category, site_ids. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 4 tools

    Disambiguation3/5

    search_procedures and search_incidents are clearly scoped, but search_hse_knowledge overlaps with both by searching procedures and incident lessons. An agent may be uncertain whether to use the broad knowledge search or the specific procedure/incident search for a given query.

    Naming Consistency5/5

    Tool names consistently follow a verb_noun pattern using snake_case: search_hse_knowledge, search_procedures, search_incidents, and get_procedure. The one get_* tool is a natural singular retrieval counterpart to the search_* tools.

    Tool Count5/5

    Four tools is a well-scoped set for an HSE knowledge and incident search server. Each tool serves a distinct retrieval need without unnecessary bulk.

    Completeness4/5

    The read-only search and retrieval workflow is well covered: procedures can be searched and retrieved, incidents can be searched, and a combined knowledge search exists. A dedicated get_incident or incident-lesson detail tool is missing, but agents can likely work around it via search_hse_knowledge.

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides secure access to Microsoft Entra ID (Azure AD) resources including users, devices, and applications through Microsoft Graph API. Enables querying organizational data with comprehensive audit logging to Azure Blob Storage.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables enterprise-managed authorization for MCP on Azure App Service, with deployable Entra OAuth and a local EMA ID-JAG lab exposing whoami and authorization_model tools.
      1
      MIT