<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rares Corches</title>
    <description>The latest articles on DEV Community by Rares Corches (@rares_corches_0967e149126).</description>
    <link>https://dev.to/rares_corches_0967e149126</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4258852%2F3a1e5184-de1d-4840-8faf-691800632ef7.png</url>
      <title>DEV Community: Rares Corches</title>
      <link>https://dev.to/rares_corches_0967e149126</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rares_corches_0967e149126"/>
    <language>en</language>
    <item>
      <title>Why single-region uptime monitors wake you up at 3 AM — and how we built a two-region monitor with a read-only OAuth 2.1 MCP server</title>
      <dc:creator>Rares Corches</dc:creator>
      <pubDate>Sun, 22 Nov 2026 14:08:56 +0000</pubDate>
      <link>https://dev.to/rares_corches_0967e149126/why-single-region-uptime-monitors-wake-you-up-at-3-am-and-how-we-built-a-two-region-monitor-with-1nmc</link>
      <guid>https://dev.to/rares_corches_0967e149126/why-single-region-uptime-monitors-wake-you-up-at-3-am-and-how-we-built-a-two-region-monitor-with-1nmc</guid>
      <description>&lt;h3&gt;
  
  
  The 3 AM False-Alarm Problem
&lt;/h3&gt;

&lt;p&gt;If you have ever used a basic single-location uptime checker, you know the feeling: your phone buzzes at 03:14 with &lt;code&gt;CRITICAL: example.com is DOWN&lt;/code&gt;, you jump out of bed, open the URL on your laptop, and it loads in 180 ms. Two minutes later: &lt;code&gt;RESOLVED&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The internet between one probe datacenter and your origin has brief BGP reconvergences, packet loss spikes, and transient resolver timeouts every week. A single failed HTTP request from one datacenter is a &lt;strong&gt;local network observation&lt;/strong&gt;, not proof that your website is down for users.&lt;/p&gt;

&lt;h3&gt;
  
  
  Two-Region Confirmation as a State Machine
&lt;/h3&gt;

&lt;p&gt;When designing &lt;a href="https://beamfar.com/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=two_region_mcp" rel="noopener noreferrer"&gt;Beamfar&lt;/a&gt;, we made two-region confirmation the core rule across every plan — including the €0 Free tier:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Independent probes in two EU regions:&lt;/strong&gt; Falkenstein (Germany) and Helsinki (Finland) check each site independently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify before paging:&lt;/strong&gt; When a check fails in one region, the monitor enters &lt;code&gt;verifying&lt;/code&gt; instead of firing an alert immediately.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Regional anomaly vs confirmed outage:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;If Falkenstein fails while Helsinki keeps getting HTTP 200, Beamfar records a &lt;strong&gt;regional anomaly&lt;/strong&gt; (visible in the dashboard, no outage alert sent).&lt;/li&gt;
&lt;li&gt;Only when &lt;strong&gt;both regions agree&lt;/strong&gt; does Beamfar open a confirmed incident and send outage notifications.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Context Beats Raw Status Codes
&lt;/h3&gt;

&lt;p&gt;Knowing a site returned &lt;code&gt;502&lt;/code&gt; or timed out is only half the story. Almost every production outage is preceded by a change:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A DNS A/AAAA/MX/TXT edit that broke routing or mail&lt;/li&gt;
&lt;li&gt;A TLS certificate renewal that silently failed or swapped issuers&lt;/li&gt;
&lt;li&gt;A redirect loop or host canonical mismatch&lt;/li&gt;
&lt;li&gt;A deploy or WordPress plugin update pushed 6 minutes earlier&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Beamfar stores snapshots of DNS records, TLS certificates, final redirect URLs, and SEO headers (&lt;code&gt;noindex&lt;/code&gt;, &lt;code&gt;robots.txt&lt;/code&gt;, canonicals), and accepts optional deploy markers from our &lt;a href="https://github.com/marketplace/actions/beamfar-deploy-marker" rel="noopener noreferrer"&gt;GitHub Action&lt;/a&gt; or official &lt;a href="https://wordpress.org/plugins/beamfar-monitoring/" rel="noopener noreferrer"&gt;WordPress plugin&lt;/a&gt;. When an incident opens, anything that changed in the previous hour is pinned right beside the incident timeline.&lt;/p&gt;

&lt;h3&gt;
  
  
  Exposing Monitoring State Safely Over OAuth 2.1 MCP
&lt;/h3&gt;

&lt;p&gt;Once your monitoring data includes incidents, pre-incident diffs, SSL/domain expiry dates, and security findings, the next obvious workflow is asking your AI coding assistant inside the terminal or IDE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Which sites had incidents in the last 7 days, and what changed right before each one?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of making users copy-paste API keys into plaintext configs (or worse, granting write tokens), we exposed a &lt;strong&gt;read-only MCP server&lt;/strong&gt; at &lt;code&gt;https://api.beamfar.com/mcp&lt;/code&gt; using &lt;strong&gt;OAuth 2.1 + PKCE&lt;/strong&gt; (registered in the Official MCP Registry as &lt;code&gt;com.beamfar/website-monitoring&lt;/code&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;12 read-only tools&lt;/strong&gt; (zero mutations — an LLM can never delete a monitor, pause alerts, or leak secrets).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Per-assistant OAuth consent &amp;amp; revocation&lt;/strong&gt; inside the Beamfar dashboard.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt-injection fencing:&lt;/strong&gt; Untrusted strings returned from external websites (HTTP banners, page titles, error snippets) are fenced before being handed back to the model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native open-source add-ons&lt;/strong&gt; packaged in one MIT-licensed repo (&lt;a href="https://github.com/Beamfar/integrations" rel="noopener noreferrer"&gt;Beamfar/integrations&lt;/a&gt;) for Claude Code, Google Gemini CLI, OpenAI Codex, GitHub Copilot / VS Code, Cursor, and Antigravity:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Claude Code&lt;/span&gt;
claude plugin marketplace add Beamfar/integrations
claude plugin install beamfar@beamfar

&lt;span class="c"&gt;# Google Gemini CLI&lt;/span&gt;
gemini extensions install https://github.com/Beamfar/integrations

&lt;span class="c"&gt;# OpenAI Codex CLI&lt;/span&gt;
codex mcp add beamfar --url https://api.beamfar.com/mcp
codex mcp login beamfar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Try It Yourself
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Check any public website right now with &lt;strong&gt;no account needed&lt;/strong&gt;: &lt;a href="https://beamfar.com/scan?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=two_region_mcp" rel="noopener noreferrer"&gt;beamfar.com/scan&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Explore the interactive MCP setup hub: &lt;a href="https://beamfar.com/mcp-server?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=two_region_mcp" rel="noopener noreferrer"&gt;beamfar.com/mcp-server&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Start on the &lt;strong&gt;Free plan&lt;/strong&gt; (€0, 1 site checked every 5 minutes from both regions, 3,000 API/MCP requests/month, no card, no time limit).&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devops</category>
      <category>webdev</category>
      <category>mcp</category>
      <category>monitoring</category>
    </item>
  </channel>
</rss>
