Example Next.js MCP Server
Provides a read-only check_database tool that uses Prisma to verify database connectivity.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Rejectionism CampaignOS
The operational headquarters for REJECTIONISM, the satirical art movement built around rejection.
SECURITY:
/adminand the MCP endpoints require authentication with a single shared credential (see ADR 0003). ConfigureCAMPAIGNOS_PASSWORD(32–256 chars) for admin login and MCP Bearer access; missing or invalid configuration fails closed.
Documentation
Related MCP server: Example Next.js MCP Server
Architecture Overview
CampaignOS exposes two primary interfaces powered by the same shared server-only domain service layer (lib/campaign/) and PostgreSQL database:
Admin Web Interface (
/admin):Operations Command Dashboard (Now, Next, Blocked, Missing Assets, Websites, Decisions, Activity feed).
Filterable Visual Asset Library (
/admin/assets) with raster previews, format placeholders, and storage badges.Asset Revisions & Representations management (
/admin/assets/[id]) with primary representation switcher and external URL appends.Single-use capability Upload Links management (
/admin/upload-links) with one-time raw link display and regeneration.Admin Bulk Ingestion (
/admin/assets/upload) with grouping mode selection and direct multi-row Blob uploads.Global Search (
/admin/search) across all 8 registers and polymorphic tag associations.Management screens for Work Items, Canon, Decisions, Websites, Content Pieces, Contacts, and CampaignMemory (
/admin/memory).
Remote MCP Server (
/api/mcpand legacy/mcp):Stateless Model Context Protocol endpoint exposing 55 tools across all registers, diagnostics, uploads, relationships, tags, search, and the durable cross-tool
CampaignMemory(remember / update / supersede / archive / get / list / recall / get-context).
Public Upload Portal (
/upload/[token]):Capability-authorized, unauthenticated contributor submission page with real-time Blob uploads, server-side format/dimension verification, and atomic finalization.
Environment Configuration
Configure the following five environment variables:
# PostgreSQL connection string for Prisma pg adapter
MCP_PRISMA_DATABASE_URL=postgresql://user:password@localhost:5432/campaignos
# Disposable PostgreSQL database URL for integration tests (must differ from operational URL)
TEST_MCP_PRISMA_DATABASE_URL=postgresql://user:password@localhost:5432/campaignos_test
# Shared credential: admin login password and MCP Bearer token (32-256 characters)
CAMPAIGNOS_PASSWORD=generate-a-long-random-credential
# Server-only private Vercel Blob read/write token
BLOB_READ_WRITE_TOKEN=vercel_blob_rw_xxxxxxxxxxxx
# Application origin used for auth and capability URL construction (HTTPS in production)
CAMPAIGNOS_BASE_URL=http://localhost:3000Local Development Quick Start
# 1. Install dependencies
pnpm install
# 2. Generate Prisma client
pnpm db:generate
# 3. Apply migrations to your database
pnpm db:deploy
# 4. Backfill legacy asset representations (idempotent)
pnpm db:backfill-assets
# 5. Seed canonical Rejectionism data
pnpm db:seed
# 6. Start development server
pnpm devVisit:
Admin Dashboard:
http://localhost:3000/adminGlobal Search:
http://localhost:3000/admin/searchAsset Library:
http://localhost:3000/admin/assetsUpload Links:
http://localhost:3000/admin/upload-linksCampaignMemory:
http://localhost:3000/admin/memoryHealth Diagnostic:
http://localhost:3000/api/healthMCP Endpoint:
http://localhost:3000/api/mcp
Connecting AI Clients (OpenAI Codex, Claude Desktop, Cursor)
MCP requests require Authorization: Bearer <CAMPAIGNOS_PASSWORD>.
{
"mcpServers": {
"rejectionism-campaign-os": {
"url": "http://localhost:3000/api/mcp",
"headers": {
"Authorization": "Bearer <CAMPAIGNOS_PASSWORD>"
}
}
}
}Running Test and Verification Suites:
# Run unit tests
pnpm test
# Run MCP protocol suite
pnpm test:mcp --origin=http://localhost:3000
# Run functional release verification gate
pnpm verify:functional --origin=http://localhost:3000
# Run smoke client
pnpm test:client -- http://localhost:3000Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA drop-in MCP server implementation for Next.js projects using Vercel MCP Adapter, allowing developers to integrate model context protocol functionality with custom tools, prompts, and resources.-
- AlicenseNot gradedqualityDmaintenanceA drop-in Model Context Protocol server implementation for Next.js projects that enables AI tools, prompts, and resources integration using the Vercel MCP Adapter.MIT
- AlicenseNot gradedqualityDmaintenanceA template for deploying Model Context Protocol servers as Next.js routes using the mcp-handler adapter, enabling easy integration of MCP tools, prompts, and resources into any Next.js application.MIT
- AlicenseNot gradedqualityDmaintenanceAn example MCP server using mcp-handler to integrate MCP tools, prompts, and resources into any Next.js project.MIT