NO

Notifly MCP Server: Real-Time Documentation & SDKs

Enable real-time, trusted Notifly documentation and SDK code examples with the MCP server for seamless integrations and developer-ready deployment.

Quick Install
npx -y @notifly-tech/notifly-mcp-server

Overview

Notifly MCP Server implements a Model Context Protocol (MCP) endpoint designed to deliver real-time, trusted documentation and SDK code examples to developer tools, chat assistants, and CI systems. Instead of embedding static or stale content, MCP packages context — API docs, snippets, and metadata — as verifiable bundles that clients can fetch on demand. This makes it easier to surface up-to-date examples inside SDKs, documentation sites, and LLM-based helpers while maintaining provenance and version control.

The server is intended for developer-facing workflows where correctness and freshness matter: conversational assistants that include runnable code, docs sites that show live examples, and CI pipelines that validate published SDK snippets. MCP can be deployed alongside existing services, integrated into developer portals, or used as a secure upstream for automated tools that require authoritative context for Notifly APIs.

Features

  • Serve verifiable context bundles (docs, snippets, metadata) over HTTP
  • Versioned context and snapshot history for reproducibility
  • Signed bundles to assert authenticity and provenance
  • Real-time update notifications (WebSocket or webhook hooks)
  • SDK snippet generation and example templates per language
  • Caching and TTL control for efficient delivery
  • OpenAPI/JSON Schema support for machine-readable API contracts
  • Health and readiness endpoints for orchestration and monitoring
  • Docker-friendly with optional admin UI and CLI tools

Installation / Configuration

Prerequisites: Git, Docker (or Node.js / other runtime if building locally), and environment variables for storage and signing keys.

Clone the repository:

git clone https://github.com/notifly-tech/notifly-mcp-server.git
cd notifly-mcp-server

Run with Docker (recommended):

# build image locally
docker build -t notifly/mcp-server .

# run with default port 8080, replace env values as needed
docker run -p 8080:8080 \
  -e MCP_SIGNING_KEY="your-signing-key" \
  -e MCP_STORAGE_URL="sqlite:///data/mcp.db" \
  notifly/mcp-server

Run with Docker Compose (example docker-compose.yml):

version: "3.8"
services:
  mcp:
    image: notifly/mcp-server:latest
    ports:
      - "8080:8080"
    environment:
      - MCP_SIGNING_KEY=${MCP_SIGNING_KEY}
      - MCP_STORAGE_URL=${MCP_STORAGE_URL}
      - MCP_ADMIN_API_KEY=${MCP_ADMIN_API_KEY}
    volumes:
      - ./data:/data

Minimal .env example:

MCP_SIGNING_KEY=top-secret-key
MCP_STORAGE_URL=sqlite:///data/mcp.db
MCP_ADMIN_API_KEY=change-me
MCP_BIND_ADDR=0.0.0.0:8080

Apply database migrations (if applicable):

# replace with project-specific command if present
./bin/migrate up

Basic health check:

curl http://localhost:8080/health
# expected: {"status":"ok"}

Available Resources

  • REST API (OpenAPI spec) — fetch context bundles, list versions, and retrieve SDK snippets
  • Health and metrics endpoints — /health, /ready, /metrics
  • Admin API — publish, retire, or sign context bundles (protected by admin API key)
  • Webhook & WebSocket channels — subscribe to change notifications to keep caches fresh
  • SDK example templates — per-language snippet templates that can be rendered on demand
  • GitHub repository — https://github.com/notifly-tech/notifly-mcp-server (source, issues, examples)

API endpoint reference (example)

EndpointMethodDescription
/v1/context/{namespace}/{version}GETRetrieve a signed context bundle
/v1/context/{namespace}/latestGETRetrieve latest version
/v1/snippet/{language}/{id}GETGet rendered SDK snippet
/v1/admin/publishPOSTPublish new bundle (admin)

Example: fetch the latest context bundle

curl -H "Authorization: Bearer PUBLIC_API_KEY" \
  https://mcp.example.com/v1/context/notifly/latest

Example response (abbreviated):

{
  "namespace": "notifly",
  "version": "2026-04-01",
  "signedBundle": "<base64-signed-payload>",
  "metadata": {
    "generatedAt": "2026-04-01T12:00:00Z",
    "checksum": "sha256:..."
  }
}

Use Cases

  • Chatbot with authoritative examples: An LLM assistant queries the MCP server during a conversation to include accurate, signed SDK code examples for Notifly, ensuring the assistant doesn’t hallucinate API usage.
  • Documentation site with live snippets: Docs pages embed SDK fragments fetched from MCP so examples remain synced with the published API and can be updated centrally.
  • CI validation of published docs: A CI job pulls a signed context bundle for the tagged release and runs snippet tests to ensure every published example compiles and matches expected outputs.
  • Multi-tenant developer portals: Host per-tenant contexts (namespaces) so each customer sees their own tailored examples and feature flags while benefiting from the same MCP infrastructure.
  • Audit and compliance: Store signed snapshots of context bundles to prove what content was served to downstream systems at a given time.

If you need further integration examples (CLI commands, sample webhook handlers, or snippet templates for specific languages), check the repository examples folder and the OpenAPI spec in the repo for concrete request/response schemas.