Skip to main content

MCP Servers Testing and Deployment

MCP Servers Testing and Deployment


MCP Servers Build and Deployment Plan (Migrated from ACTION-PLANS, 2026-02-07)

Date: February 7, 2026 Status: Build Complete - Ready for Deployment Session: Continuation of Issue #392 (Drupal AI Agent Platform)

Executive Summary

Successfully built and tested 3 production-ready MCP servers with 32 MCP tools total:

  • OSSA Registry MCP Server (9 tools) - Agent discovery and validation
  • Drupal MCP Server (11 tools) - Drupal CMI, entities, and cache management
  • API Schema MCP Server (12 tools) - OpenAPI validation, generation, and linting

All servers compiled successfully, runtime tested, and ready for deployment.

1. OSSA Registry MCP Server

Location: agent-buildkit/packages/ossa-registry-mcp-server/ Package: @blueflyio/ossa-registry-mcp-server v1.0.0 Status: Build Successful + Runtime Verified

Dependencies: @modelcontextprotocol/sdk@^1.26.0, zod@^3.22.4, yaml@^2.3.4, glob@^10.3.10, chokidar@^3.5.3

9 MCP Tools:

Tool NamePurpose
list_agentsQuery all agents with filter/limit
get_agentGet agent by ID
search_agentsFull-text search across fields
get_agent_by_capabilityCapability-based search
validate_manifestOSSA v0.4.1 validation
validate_toolsTool definition validation
validate_triggersTrigger validation
get_agent_metricsMetrics and statistics
get_health_scoreAgent health scoring

Services Architecture:

  • server.ts - MCP server main entry
  • services/registry-reader.service.ts - Filesystem-based registry reader
  • services/validation.service.ts - OSSA v0.4.1 validation
  • services/metrics.service.ts - Health scoring and metrics
  • tools/query.tools.ts - 4 query tools
  • tools/validation.tools.ts - 3 validation tools
  • tools/metrics.tools.ts - 2 metrics tools

2. Drupal MCP Server

Location: agent-buildkit/packages/drupal-mcp-server/ Package: @blueflyio/drupal-mcp-server v1.0.0 Status: Build Successful

11 MCP Tools:

CategoryTool NamePurpose
Config Managementdrupal_get_configGet configuration by name
drupal_export_configExport config to YAML
drupal_import_configImport config from YAML
drupal_compare_configCompare environments
Entity CRUDdrupal_create_entityCreate Drupal entity
drupal_read_entityRead Drupal entity
drupal_update_entityUpdate Drupal entity
drupal_delete_entityDelete Drupal entity
drupal_query_entitiesQuery entities with filters
Cache Managementdrupal_clear_cacheClear specific caches
drupal_rebuild_cacheRebuild cache system

Key Features: Full CMI integration, complete entity CRUD, granular cache control, Zod validation, DRY HTTP client.

3. API Schema MCP Server

Location: agent-buildkit/packages/api-schema-mcp-server/ Package: @blueflyio/api-schema-mcp-server v1.0.0 Status: Build Successful

12 MCP Tools:

CategoryTool NamePurpose
Registryregister_schemaRegister OpenAPI spec
list_schemasList all registered schemas
get_schemaGet schema by ID
unregister_schemaRemove schema
Validationvalidate_schemaValidate OpenAPI 3.1 spec
validate_against_schemaValidate data against schema
lint_schemaLint (recommended/strict/minimal)
check_breaking_changesDetect breaking API changes
Generationgenerate_typesGenerate TypeScript types
generate_validatorsGenerate Zod validators
generate_docsGenerate API documentation
generate_clientGenerate API client code

Build Fixes Applied (All Servers)

  1. Updated MCP SDK from 0.5.0 to 1.26.0 (latest)
  2. Fixed TypeScript configuration: added types: ["node"], changed module to commonjs
  3. Installed @types/node in all packages
  4. Fixed openapi-diff version from 0.27.0 to 0.24.1
  5. Changed fast-glob to glob for consistency
  6. Fixed Zod schema access: _def.schema to type assertions
  7. Fixed TypeScript type assertions in API Schema MCP (response, schema, contact)

Build Results

ServerBuildRuntimeDist Size
OSSA RegistryPASSPASS~15 KB
DrupalPASSNeeds Drupal config~18 KB
API SchemaPASSNeeds schema path~25 KB

Deployment Plan

Phase 1: Local Testing (Week 1)

Claude Desktop configuration for each server with environment variables (REGISTRY_PATH, DRUPAL_BASE_URL, SCHEMA_REGISTRY_PATH).

Phase 2: Infrastructure Deployment (Week 2)

Target: Synology NAS (100.104.119.76)

Recommended: MCP Gateway approach (single entry point at port 4005):

  • mcp.blueflyagents.com:4005 - MCP Gateway
  • Individual ports: 4006 (OSSA), 4007 (Drupal), 4008 (API Schema)

Process management via PM2 with auto-restart, memory limits (500M), and monitoring.

Phase 3: Integration Testing (Week 3)

  • Claude Desktop integration: verify all 32 tools in tool palette
  • Agent integration: test with drupal-config-drift agent
  • Performance benchmarks: <100ms latency target, 10 concurrent requests, <500MB memory

Phase 4: Monitoring and Observability (Week 4)

  • Structured logging (Winston)
  • Prometheus metrics (tool invocations, duration histograms)
  • Health check endpoints (/health, /ready)

Architecture Integration

OSSA Ecosystem (openstandardagents)
        |
MCP Layer (3 servers, 32 tools)
        |
Agent Layer (drupal-config-drift + 6 planned agents)
        |
Infrastructure (Synology NAS, Cloudflare tunnels)

Issue #392 Progress

Completed: MCP Infrastructure (3 servers), first agent (drupal-config-drift, commit 89ea38ff)

Remaining: 6 more Drupal agents (accessibility, content-lifecycle, performance, incident-response, multisite-auditor, migration) + 2 enhanced agents (security-scanner + Drupal pack, ci-fixer-worker + Drupal CI/CD pack)

Lessons Learned

  1. MCP SDK Version Matters - Always use latest stable (1.26.0)
  2. TypeScript Module Resolution - CommonJS safer for Node.js servers
  3. Zod Schema Access Changed - Use type assertions with v3
  4. Package Version Validation - Always verify versions exist on npm
  5. Fix Issues Incrementally - One server at a time, verify each fix