Skip to main content
Glama
Adaptive Tech Radar MCP

Adaptive Tech Radar MCP

by SerhiiHirus

Adaptive Tech Radar MCP

Python 3.10+ Model Context Protocol License: MIT Code Style: PEP8

An adaptive Model Context Protocol (MCP) server that monitors upstream releases across the AI/LLMOps ecosystem, scans local workspace dependencies and lockfiles (uv.lock, poetry.lock, pyproject.toml), evaluates verified Token ROI signals, and classifies SemVer breaking risks against installed packages.

Prepares targeted queries for Context7 MCP to inspect official documentation and migration guides before code changes.


Technical Overview

Developers adopting AI libraries face two recurring operational challenges:

  • Dependency & API Churn: Upgrading to unverified releases that break existing code or inflate token burn.

  • Missed Platform Optimizations: Overlooking architectural cost primitives (prompt caching, native structured outputs, or compact schema introspection) that reduce inference costs by 30-70%.

Adaptive Tech Radar connects your AI coding assistant to verified upstream releases (GitHub Releases, official RSS/Atom), evaluates them against dependencies actually present in your project, and sanitizes untrusted input before exposing it to the agent.


Related MCP server: Metsuke

Architecture & Security Model

flowchart TD
    subgraph Ingestion ["Untrusted Ingestion Sources"]
        A1["GitHub Releases API (ETag + Rate Limit Control)"]
        A2["Official Vendor Feeds (RSS / Atom)"]
        A3["Custom Text Ingestion"]
    end

    subgraph Defense ["Security & Sandbox Boundaries"]
        B["ContentSanitizer (Unicode NFKC + Prompt Injection Filter)"]
        C["XML Entity Defense (defusedxml + 2MB Payload Limit)"]
        D["SSRF Defense (DNS IP Resolution & Private Subnet Blocking)"]
        E["Path Traversal Sandbox (Strict Workspace CWD Boundary)"]
    end

    subgraph Core ["Local Storage & Heuristics (~/.adaptive-radar/)"]
        F[("SQLite Storage (WAL Mode, Indexes, 0o600 Permissions)")]
        G["Heuristic Relevance & Token Cost Scorer"]
        H["Active Learning Feedback Engine"]
    end

    subgraph Protocol ["Exposed Protocol Interfaces"]
        I["MCP Tools (scan_workspace, check_updates, sources)"]
        J["MCP Resources (radar://profile, radar://releases)"]
        K["MCP Prompts (/radar-upgrade-audit)"]
    end

    A1 & A2 & A3 --> B & C & D
    B & C & D --> F
    F --> G & H
    G & H --> I & J & K

Protocol Specification

1. Exposed MCP Tools

Tool

Parameters

Description

radar_quick_audit

directory: str = "."

One-Click Diagnostic: Scans workspace lockfiles, updates installed package versions, audits OSV CVEs, and reports top upgrade opportunities in a 5-line summary.

radar_scan_workspace

directory: str = ".", apply_to_profile: bool = False

Safely parses lockfiles (uv.lock, poetry.lock, package-lock.json) and manifests (pyproject.toml, requirements.txt, package.json) to detect active dependencies. Validates package names against PEP 508 / npm.

radar_audit_security

directory: str = "."

Audits installed dependencies against OSV.dev for known security advisories (CVE/GHSA).

radar_discover_sources_from_workspace

directory: str = ".", add_to_sources: bool = False

Maps project dependencies to official GitHub repositories via PyPI JSON API and optionally starts tracking them.

radar_check_updates

fetch_remote: bool = True, limit: int = 5

Fetches, sanitizes, and scores releases against developer stack, Token ROI vendor benchmarks, and SemVer migration risks.

radar_prepare_context7_verification

release_id: str

Generates a structured Context7 payload (library_id, query) targeting documentation or migration guides before code changes.

radar_add_source

source_type: str, target: str, name: str

Adds a GitHub repo (owner/repo, supporting dots like vercel/next.js) or HTTPS RSS feed with strict SSRF validation.

radar_list_sources

None

Lists all active upstream tracking sources and configurations.

radar_remove_source

identifier: str

Removes a tracked source by repo name or feed URL.

radar_record_feedback

release_id: str, decision: str, reason: str

Records user decisions (ACCEPTED, REJECTED, OBSERVED) to adjust heuristic bias weights.

radar_set_stack_profile

keywords: list, preferred_tools: list, banned_patterns: list

Updates architectural constraints and explicit pattern bans.

radar_ingest_custom

title: str, body: str, source_url: str

Manually sanitizes and ingests a custom changelog draft or announcement.

2. Exposed MCP Resources

Clients can read radar state directly without incurring tool-call latency or side effects:

  • radar://profile — Active developer stack profile, preferences, and exclusions (JSON).

  • radar://releases/recent — Recent unreviewed release metadata (id, title, url, version). Raw markdown bodies are strictly excluded to prevent context hijacking when resources are auto-loaded.

  • radar://sources — Active tracking sources and configurations (JSON).

3. Exposed MCP Prompts

  • radar-upgrade-audit — A standardized workflow prompt guiding your AI assistant to:

    1. Scan workspace dependencies via radar_scan_workspace.

    2. Match against recent verified high-ROI releases.

    3. Validate API syntax via Context7 MCP.

    4. Formulate a verified implementation plan.


Security Defenses

  1. Data Minimization & Heuristic Sanitization: Mitigates untrusted prompt injections by strictly separating metadata from raw text. The auto-loaded radar://releases/recent resource excludes raw bodies entirely. Ingested text is normalized via Unicode NFKC, truncated to 600 characters, stripped of CRLF and markdown heading spoofing (#), and filtered for common injection directives.

  2. SSRF & Redirect Defense: Enforces HTTPS for feeds and resolves DNS to block loopback (127.0.0.0/8), private subnets (RFC 1918), and link-local cloud metadata (169.254.169.254). HTTP client hooks inspect 3xx redirects via non-blocking async DNS to prevent redirect-based SSRF. GitHub additions allow dot-notation (vercel/next.js) while blocking traversal (..).

  3. Workspace Path Sandbox & Manifest Sanitization: Manifest scanners strictly confine file reads to the workspace root, rejecting path traversal attempts (../). Package names from package.json and lockfiles are validated against strict PEP 508 / npm formats, stripping CRLF and markdown injections.

  4. Hardened XML Parser & Streaming Limit: RSS/Atom feeds are parsed using defusedxml to mitigate Billion Laughs, quadratic blowup, and DTD entity attacks in any encoding. Network payload is read via streaming with a strict 2MB cut-off to prevent OOM memory exhaustion.

  5. Local Concurrency (SQLite WAL): SQLite connections enforce PRAGMA journal_mode = WAL and busy_timeout = 5000 to prevent concurrency deadlocks across multiple IDE sessions.


Installation & Configuration

Option 1: uvx (Zero Installation)

Add directly to your client MCP configuration (claude_desktop_config.json, Cursor, or Antigravity):

{
  "mcpServers": {
    "adaptive-radar": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/SerhiiHirus/adaptive-radar-mcp.git", "adaptive-radar-mcp"]
    }
  }
}

Option 2: Local Development

git clone https://github.com/SerhiiHirus/adaptive-radar-mcp.git
cd adaptive-radar-mcp

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

# Run test suite (30 unit tests)
pytest

Testing

pytest -v

All 30 unit tests cover prompt injection sanitization, SSRF blocking, path traversal prevention, SQLite WAL mode, ETag caching, defusedxml defenses, and MCP resources.


License

MIT License. Authored and maintained by Serhii Hirus.

Available Tools

5 tools
radar_check_updatesA

Fetch and score recent AI/LLMOps tech updates against developer preferences and cost metrics.

Args: fetch_remote: If True, queries tracked GitHub releases and RSS feeds before scoring. limit: Maximum number of evaluated recommendations to return.

Inputs: limit, fetch_remote. Returns: result

radar_ingest_customB

Manually ingest a changelog post, article, or release note into the radar database.

Args: title: Title or headline of the update. body: Body text or description. source_url: Optional source link.

Inputs: body (required), title (required), source_url. Returns: result

radar_prepare_context7_verificationB

Prepares structured parameters to verify the selected release via Context7 MCP.

Args: release_id: The unique ID of the release to verify. Returns: Structured dictionary specifying library_id and target queries for Context7.

Inputs: release_id (required).

radar_record_feedbackA

Record developer's decision (ACCEPTED, REJECTED, OBSERVED) to train active learning memory.

Args: release_id: The unique ID of the release (e.g. 'gh:pydantic/pydantic-ai:v2.65.0'). decision: One of 'ACCEPTED', 'REJECTED', 'OBSERVED'. reason: Why you approved or rejected it (e.g. 'We need structured outputs', 'Too complex, prefer standard SDK').

Inputs: reason (required), decision (required), release_id (required). Returns: result

radar_set_stack_profileB

Update user developer profile and architectural focus.

Args: keywords: Domain keywords (max 30 items, e.g. ['python', 'asyncio', 'mcp']). preferred_tools: Target tools/libraries (max 30 items, e.g. ['pydantic', 'fastapi', 'litellm']). banned_patterns: Disliked or unsafe patterns (max 30 items, e.g. ['eval', 'unbounded loops']).

Inputs: keywords (required), banned_patterns (required), preferred_tools (required). Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct role in the workflow: profile setting, update fetching/scoring, Context7 verification prep, feedback recording, and manual ingestion. There is no overlap between tools, and the descriptions make the boundaries explicit. An agent can easily select the correct tool for each step.

    Naming Consistency5/5

    All tools use a consistent 'radar_' prefix followed by a verb_noun or verb_noun_noun pattern (check_updates, record_feedback, set_stack_profile, etc.). The convention is predictable and readable throughout. No mixing of camelCase or inconsistent verb styles.

    Tool Count5/5

    With five tools, the server is well-scoped for a tech radar workflow. Each tool earns its place, covering the essential actions without bloat. The count aligns with a focused recommendation and feedback loop.

    Completeness4/5

    The surface covers the core lifecycle: profile setup, update retrieval and scoring, external verification prep, feedback recording, and custom ingestion. Minor gaps exist, such as no explicit tool to view the current profile or inspect learned memory, but these are likely not critical for the main workflow. The set enables end-to-end operation with small workarounds.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers