secondforeman-mcp 0.0.0-stage → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Second Foreman LLC (https://secondforeman.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,136 @@
1
- # Temporary Holding Version
1
+ # ContextGuard (`secondforeman-mcp` / `contextguard-mcp`)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Stop burning $50–$200/month on AI-coding context-compaction loops in Claude Code, Cursor, Codex, and Windsurf.**
4
+
5
+ [![npm version](https://img.shields.io/npm/v/secondforeman-mcp?color=cb3837&label=npm%20secondforeman-mcp)](https://www.npmjs.com/package/secondforeman-mcp)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-amber.svg)](./LICENSE)
7
+ [![Node.js >= 20](https://img.shields.io/badge/Node-%3E%3D20.0.0-brightgreen.svg)](https://nodejs.org)
8
+ [![Live Web Workbench](https://img.shields.io/badge/Web_Workbench-secondforeman.com%2Fcontextguard-0b1220)](https://secondforeman.com/contextguard/)
9
+ [![Chrome Web Store — ContextGuard](https://img.shields.io/badge/Chrome_Web_Store-ContextGuard_v1.0.0-0f172a)](https://chromewebstore.google.com/detail/chdlakehgngdamohjclpefafedagegom)
10
+ [![Chrome Web Store — SignalClip](https://img.shields.io/badge/Chrome_Web_Store-SignalClip_v1.0.1-d97706)](https://chromewebstore.google.com/detail/gmoeoooobgmecpnikopanmilbebjdphf)
11
+ [![Official MCP Registry](https://img.shields.io/badge/MCP_Registry-com.secondforeman%2Fcontextguard-1d4ed8)](https://registry.modelcontextprotocol.io/v0.1/servers?search=com.secondforeman)
12
+ [![ContextGuard MCP server](https://glama.ai/mcp/servers/oneandroid-max/contextguard-mcp/badges/score.svg)](https://glama.ai/mcp/servers/oneandroid-max/contextguard-mcp)
13
+ [![ContextGuard MCP connector](https://glama.ai/mcp/connectors/com.secondforeman/contextguard/badges/score.svg)](https://glama.ai/mcp/connectors/com.secondforeman/contextguard)
14
+ [![BidRadar MCP connector](https://glama.ai/mcp/connectors/com.secondforeman/bidradar/badges/score.svg)](https://glama.ai/mcp/connectors/com.secondforeman/bidradar)
15
+ [![15s YouTube Demo](https://img.shields.io/badge/YouTube_Short-15s_Demo-dc2626)](https://www.youtube.com/shorts/GBZdfj1uS-U)
16
+ [![Verified on TrustMRR](https://img.shields.io/badge/TrustMRR-Stripe_Verified-059669)](https://trustmrr.com/startup/second-foreman-llc)
17
+ [![Serverdex #8 MCP](https://img.shields.io/badge/Serverdex-%238_of_7%2C986-4f46e5)](https://serverdex.io/server/io-github-oneandroid-max-windsurfrules-copilot-instructions)
18
+
19
+ When an AI coding session loads an oversized `CLAUDE.md`, `AGENTS.md`, `.cursorrules`, historical plan doc, or unignored lockfile on boot — or re-reads the same files after compaction — **40%–80% of the context window is already consumed before tool call #1**. Within 10–15 minutes of tool calls, compaction fires again, breaking prompt-cache continuity and multiplying input token costs by **5x–7x**.
20
+
21
+ **ContextGuard** is a zero-dependency Node.js CLI, **Model Context Protocol (`MCP`) server**, and Chrome Manifest V3 Side Panel extension that audits token traps, compiles a deterministic `<5 KB START.md` boot card, and compresses web docs/GitHub PRs into strict token budgets.
22
+
23
+ > **Run Instantly in Your Browser or Unlock the Pro Suite (`SC1.` Key):**
24
+ > - **[ContextGuard Web Workbench](https://secondforeman.com/contextguard/)** · **[Public GitHub Repo Scanner](https://secondforeman.com/contextguard/repo-scanner/)** · **[Token-Burn & Compaction Calculator](https://secondforeman.com/contextguard/token-burn-calculator/)** · **[1-Click Chrome Web Store Install](https://chromewebstore.google.com/detail/chdlakehgngdamohjclpefafedagegom)**
25
+ > - **Instant Self-Serve Pro Pass (Stripe):** [**Unlock Monthly Pro ($29/mo, cancel anytime)**](https://secondforeman.com/api/checkout?plan=monthly&from=contextguard) · [**Founding Annual Suite ($149/yr)**](https://secondforeman.com/api/checkout?plan=annual&from=contextguard) — *billed via **Second Foreman Pro**; one instant `SC1.` key unlocks Pro CLI/MCP CI gates, `<5 KB START.md` downloads, [BidRadar](https://secondforeman.com/bidradar/), [SignalClip](https://secondforeman.com/signalclip/) & [608Pass](https://secondforeman.com/epa-608-practice-test/).*
26
+
27
+ ---
28
+
29
+ ## Quick Start (Zero Install — `0` npm Dependencies)
30
+
31
+ ```bash
32
+ # 1. Audit startup token burn, lockfile leaks & compaction risk in any repo
33
+ npx -y secondforeman-mcp audit .
34
+
35
+ # 2. Enforce a CI pull-request startup token ceiling (e.g. <= 6,000 tokens)
36
+ npx -y secondforeman-mcp audit . --max-boot-tokens 6000
37
+
38
+ # 3. Compile a <5 KB START.md boot card from oversized CLAUDE.md / AGENTS.md files
39
+ npx -y secondforeman-mcp slim . --write
40
+
41
+ # 4. Compress an HTML doc, PR diff, or log file to a 3,000-token Markdown budget
42
+ npx -y secondforeman-mcp clip ./pr-page.html --budget 3000
43
+ ```
44
+
45
+ ---
46
+
47
+ ## Add as a Local MCP Server (Claude Code, Cursor, Windsurf)
48
+
49
+ ### Claude Code CLI (1 command)
50
+
51
+ ```bash
52
+ claude mcp add contextguard -- npx -y secondforeman-mcp --mcp
53
+ ```
54
+
55
+ ### `.mcp.json` / `.cursor/mcp.json` (Local `stdio`)
56
+
57
+ ```json
58
+ {
59
+ "mcpServers": {
60
+ "contextguard": {
61
+ "command": "npx",
62
+ "args": ["-y", "secondforeman-mcp", "--mcp"]
63
+ }
64
+ }
65
+ }
66
+ ```
67
+
68
+ ### Hosted Remote Streamable HTTP MCP (`0` Local Install)
69
+
70
+ Connect any Streamable HTTP MCP client directly to **`https://secondforeman.com/api/mcp`** (verified Official MCP Registry namespace `com.secondforeman/contextguard` & `com.secondforeman/bidradar`):
71
+
72
+ ```json
73
+ {
74
+ "mcpServers": {
75
+ "secondforeman-suite": {
76
+ "type": "streamable-http",
77
+ "url": "https://secondforeman.com/api/mcp"
78
+ }
79
+ }
80
+ }
81
+ ```
82
+
83
+ ### Exposed MCP Tools (`v1.8.0` — `16` Read-Only & Annotated Tools · `30` Active Official MCP Registry Servers)
84
+
85
+ | Tool | What It Does |
86
+ | --- | --- |
87
+ | `contextguard_audit_workspace` | Audits `CLAUDE.md`, `AGENTS.md`, `.cursorrules`, `docs/plans/*.md`, and lockfiles for token burn & compaction spirals. |
88
+ | `contextguard_slim_boot_card` | Generates a `<5 KB` `START.md` boot card and `.claudeignore` cutting startup reads by 60%–85%. |
89
+ | `contextguard_compress_web_doc` | Strips scripts, styles, SVGs, nav boilerplate, and duplicate stack traces into a budgeted Markdown prompt. |
90
+ | `contextguard_scan_public_repo` | Live GitHub `owner/repo` scanner auditing `AGENTS.md`, `CLAUDE.md`, `.cursorrules`, `.windsurfrules`, `.clinerules`, and `.github/copilot-instructions.md` for startup token burn & hidden bidi/zero-width Unicode prompt injection. |
91
+ | `bidradar_search_public_bids` | Searches live written/async public-sector RFPs, sub-threshold P-Card quotes, and ADA Title II PDF/web opportunities via [BidRadar](https://secondforeman.com/bidradar/). |
92
+ | `ada_score_state_procurement_pdaa` | Scores vendor ICT accessibility bid readiness across **Texas DIR `1 TAC Ch. 206 & 213`** (`6`-criterion `PDAA` self-assessment, `6`-section `VADSIR` dev questionnaire, `>$500k` third-party EIR testing gate), **Washington `WaTech USER-01` `WCAG 2.2 AA`**, **Virginia `HB2541`**, and **Colorado `HB21-1110`** *(operational self-assessment draft — not legal advice)*. |
93
+ | `ada_audit_eaa_en301549` | SSRF-hardened **European Accessibility Act (`Directive (EU) 2019/882`) & `EN 301 549` (`v3.2.1` OJEU & `v4.1.1` Sept 2026 `WCAG 2.2 AA`)** auditor for both `https://` webpages (`Clause 9` + linked PDFs) and `https://` PDFs (`Clause 10` + `/FlateDecode`), generating a `16`-clause **Annex V Automated Technical Self-Assessment Draft**. |
94
+ | `ada_triage_28cfr35_exceptions` | Operational **DOJ ADA Title II Subpart H (`28 CFR §§ 35.104, 35.201(a)–(e), 35.204, 35.205` & `91 FR 20902`)** triage calculator evaluating all `5` statutory exceptions (`4`-condition Archived Web Content, Preexisting PDFs/Docs, Independent Third-Party Posts, Individualized Secured Docs, Preexisting Social Posts), `§ 35.204` Undue-Burden procedural completeness, and `§ 35.205` `4`-factor minimal-impact equivalence *(operational triage worksheet — not legal advice)*. |
95
+ | `ada_estimate_pdf_ua_remediation` | Estimates DOJ `28 CFR Part 35 Subpart H` (`91 FR 20902` — `April 26, 2027` / `April 26, 2028`) ADA Title II `PDF/UA-1` & `WCAG 2.1 AA` remediation cost and `$15k` Federal GPC / `$25k` State P-Card eligibility. |
96
+ | `ada_audit_public_webpage` | SSRF-hardened read-only `WCAG 2.2 AA` & linked-PDF quick audit on any public `https://` webpage (`lang`, `title`, `h1`, `img[alt]`, `iframe[title]`, `.pdf` count). |
97
+ | `ada_inspect_public_pdf_ua` | SSRF-hardened ISO 14289-1 (`PDF/UA-1`) & WCAG 2.1 AA binary PDF inspector checking `/MarkInfo`, `/StructTreeRoot`, `pdfuaid:part=1` XMP, `/Lang`, `/DisplayDocTitle`, raster scan OCR flags, and `$1.50/$3.00` remediation cost. |
98
+ | `ada_inspect_acroform_and_vpat` | SSRF-hardened fillable PDF `/AcroForm` (`/TU` accessible tooltips, `/Tabs /S` order, `/XFA` lockout) auditor and `14`-criterion **ITI VPAT 2.5 Automated Technical Self-Assessment Draft** generator (Section 508, HHS Section 504 `91 FR 25496`, DOJ Title II, Colorado `HB21-1110`). |
99
+ | `epa608_calculate_a2l_room_charge_limit` | Calculates **UL 60335-2-40 (`4th Ed. Annex GG & LL`) & ASHRAE `15-2022` / `15.2`** Class A2L refrigerant room-area limits (`TAmin` & `Amin`), total single-circuit charge, mandatory RDS circulation airflow (`Qmin` CFM), motorized zoning damper isolation checks, and high-altitude `AF` multipliers for `R-454B`, `R-32`, `R-454A`, `R-454C`, `R-1234yf`, and `R-1234ze(E)` *(field sizing aid — not PE-stamped design)*. |
100
+ | `epa608_calculate_leak_rate` | Computes `2026` EPA Section 608 & AIM Act `40 CFR § 84.106` (`>= 15 lb` HFC/A2L `GWP > 53`) annualizing & rolling 12-month refrigerant leak rates. |
101
+ | `epa608_calculate_superheat_subcooling` | Computes NIST REFPROP 10 / Chemours `R-454B`, `R-32`, `R-410A`, and `R-22` vapor dew-point superheat, liquid bubble-point subcooling, zeotropic glide, ACCA fixed-orifice target superheat, and elevation-corrected commissioning diagnostics. |
102
+ | `govcon_calculate_gpc_unison_margin` | Calculates Unison Marketplace (`<= 3.93%` GSA GS-35F-131GA fee) & Federal `$15,000` GPC (`FAR 13.2` + Stripe `2.9% + $0.30`) net profit, FOB Destination margin, and floor-safe seller bid. |
103
+
104
+ ---
105
+
106
+ ## Browser Workbench, Free Interactive Calculators/Scanners, Chrome MV3 & Pro Suite
107
+
108
+ - **Official Chrome Web Store Extension (`ContextGuard v1.0.0`, 1-Click Install):** [https://chromewebstore.google.com/detail/chdlakehgngdamohjclpefafedagegom](https://chromewebstore.google.com/detail/chdlakehgngdamohjclpefafedagegom) · **Browser Workbench:** [https://secondforeman.com/contextguard/](https://secondforeman.com/contextguard/)
109
+ - **Zero-Login State IT Procurement PDAA, VADSIR & Multi-State Accessibility Scorer (`TX 1 TAC 213` · `WA USER-01 WCAG 2.2 AA` · `VA HB2541`):** [https://secondforeman.com/bidradar/state-procurement-pdaa-vadsir-scorer/](https://secondforeman.com/bidradar/state-procurement-pdaa-vadsir-scorer/)
110
+ - **Zero-Login DOJ `28 CFR §§ 35.201 / 35.204` Archived PDF & Undue-Burden Operational Triage Worksheet (`91 FR 20902`):** [https://secondforeman.com/bidradar/ada-title-ii-exceptions-undue-burden-worksheet/](https://secondforeman.com/bidradar/ada-title-ii-exceptions-undue-burden-worksheet/)
111
+ - **Zero-Upload European Accessibility Act (EAA) & `EN 301 549` (`v3.2.1` & `v4.1.1`) Web + PDF Auditor:** [https://secondforeman.com/bidradar/eaa-en-301-549-auditor/](https://secondforeman.com/bidradar/eaa-en-301-549-auditor/)
112
+ - **Zero-Upload Fillable PDF AcroForm, XFA Lockout & VPAT 2.5 Readiness Auditor:** [https://secondforeman.com/bidradar/vpat-acroform-auditor/](https://secondforeman.com/bidradar/vpat-acroform-auditor/)
113
+ - **Zero-Upload Browser & Remote ISO 14289-1 (`PDF/UA-1`) File Inspector:** [https://secondforeman.com/bidradar/pdf-ua-file-inspector/](https://secondforeman.com/bidradar/pdf-ua-file-inspector/)
114
+ - **Live GitHub `owner/repo` Token-Burn & Prompt-Injection Scanner:** [https://secondforeman.com/contextguard/repo-scanner/](https://secondforeman.com/contextguard/repo-scanner/)
115
+ - **Live ADA Title II Website & Linked-PDF Exposure Scanner:** [https://secondforeman.com/bidradar/ada-website-pdf-scanner/](https://secondforeman.com/bidradar/ada-website-pdf-scanner/)
116
+ - **Free Unison Marketplace & Federal `$15k` GPC Margin Calculator:** [https://secondforeman.com/bidradar/unison-gpc-margin-calculator/](https://secondforeman.com/bidradar/unison-gpc-margin-calculator/)
117
+ - **Free AI-Coding Compaction & Prompt-Cache Cost Calculator:** [https://secondforeman.com/contextguard/token-burn-calculator/](https://secondforeman.com/contextguard/token-burn-calculator/)
118
+ - **Free ADA Title II PDF/UA-1 & WCAG 2.1 AA Budget Estimator (`91 FR 20902`):** [https://secondforeman.com/bidradar/ada-title-ii-pdf-estimator/](https://secondforeman.com/bidradar/ada-title-ii-pdf-estimator/)
119
+ - **Free UL 60335-2-40 & ASHRAE 15.2 Class A2L Room Area, Charge Limit & RDS `Qmin` CFM Calculator:** [https://secondforeman.com/epa-608-practice-test/a2l-charge-limit-calculator/](https://secondforeman.com/epa-608-practice-test/a2l-charge-limit-calculator/)
120
+ - **Free 2026 EPA Section 608 & AIM Act A2L Leak-Rate Calculator:** [https://secondforeman.com/epa-608-practice-test/leak-rate-calculator/](https://secondforeman.com/epa-608-practice-test/leak-rate-calculator/)
121
+ - **Free 2026 HVAC `R-454B` & `R-32` Superheat, Subcooling & Glide Calculator:** [https://secondforeman.com/epa-608-practice-test/superheat-subcooling-calculator/](https://secondforeman.com/epa-608-practice-test/superheat-subcooling-calculator/)
122
+ - **15-Second Faceless Walkthrough (YouTube Short):** [https://www.youtube.com/shorts/GBZdfj1uS-U](https://www.youtube.com/shorts/GBZdfj1uS-U)
123
+ - **Stripe-Verified Publisher Profile (`TrustMRR`):** [https://trustmrr.com/startup/second-foreman-llc](https://trustmrr.com/startup/second-foreman-llc)
124
+ - **BidRadar — Self-Serve B2B Public-Bid, RFQ & ADA Compliance Lead Alerts:** [https://secondforeman.com/bidradar/](https://secondforeman.com/bidradar/)
125
+ - **SignalClip — B2B Directory, Table, Bulk PDF & Buyer-Signal Extractor ([Chrome Web Store](https://chromewebstore.google.com/detail/gmoeoooobgmecpnikopanmilbebjdphf) · [Web Workbench](https://secondforeman.com/signalclip/))**
126
+ - **ADA Title II & ISO 14289-1 (`PDF/UA-1`) GitHub Action:** [oneandroid-max/pdf-ua-audit-action](https://github.com/oneandroid-max/pdf-ua-audit-action)
127
+
128
+ Set `SECOND_FOREMAN_PRO_KEY="SC1...."` in your shell or `.mcp.json` `env` block to unlock unlimited multi-file JSONL transcript forensics, Pro `.mcp.json`/CI workflow generation, full Texas DIR PDAA + `6`-Section VADSIR, `16`-clause EAA Annex V, `14`-criterion VPAT 2.5 & DOJ `28 CFR § 35.204` Triage `.md`/`.csv` exports, `500`-PDF folder batch CSV exports, HVAC commissioning CSVs, compiled `<5 KB START.md` repo downloads, Unison Bid CSV exports, and unredacted [BidRadar](https://secondforeman.com/bidradar/) direct buyer emails (`$29/mo` or `$149/yr` instant Stripe checkout with EUR/GBP/CAD/USD Adaptive Pricing at [secondforeman.com/contextguard/#pricing](https://secondforeman.com/contextguard/#pricing)).
129
+
130
+ ---
131
+
132
+ ## Privacy & Publisher Disclosure
133
+
134
+ - **100% Local Processing:** `contextguard` audits files and compresses HTML locally on your machine with zero telemetry and zero code/prompt uploads.
135
+ - **Publisher:** **Second Foreman LLC** · 801 NW 10th Street #470, Oklahoma City, OK 73106-6931 · [hello@secondforeman.com](mailto:hello@secondforeman.com) · Veteran-Owned Small Business.
136
+ - Built and operated by an AI agent (Google Gemini) with Paul Edward Lewis Jr. human sign-off, guaranteed by Second Foreman LLC.