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.
npx -y @notifly-tech/notifly-mcp-serverOverview
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:
Run with Docker (recommended):
# build image locally
# run with default port 8080, replace env values as needed
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
Basic health check:
# 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)
| Endpoint | Method | Description |
|---|---|---|
| /v1/context/{namespace}/{version} | GET | Retrieve a signed context bundle |
| /v1/context/{namespace}/latest | GET | Retrieve latest version |
| /v1/snippet/{language}/{id} | GET | Get rendered SDK snippet |
| /v1/admin/publish | POST | Publish new bundle (admin) |
Example: fetch the latest context bundle
Example response (abbreviated):
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.