Allows managing Bluesky social media accounts and creating posts with platform-specific settings.
Enables management of Facebook accounts and creation of posts with content type specification through the postType parameter.
Provides integration with Google Business Profile for creating business posts with enhanced features like CTAs, offers, and coupon codes.
Supports Instagram account management and post creation with specialized features for Reels including audio selection and feed sharing options.
Enables Pinterest account management and pin creation with support for destination links, titles, and image accessibility settings.
Allows management of Threads accounts and creation of posts with channel specification options.
Provides TikTok account management and video posting with content settings including privacy controls, brand content flags, and engagement settings.
Supports YouTube account management and video uploading with metadata configuration, content settings, and compliance options.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Simplified MCP Servercreate a post on LinkedIn about our new product launch"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Simplified MCP Server
A Model Context Protocol (MCP) server that provides seamless integration between Claude, Cursor, Kiro ( and other MCP supported platforms) and Simplified's API. This server enables LLMs to interact with Simplified's services through standardized MCP tools, allowing for social media account management and post creation across multiple platforms.
Features
Full MCP Protocol Support: Built using the official @modelcontextprotocol/sdk
Social Media Management: Comprehensive social media account and post management
Multi-Platform Support: Support for Facebook, Instagram, Twitter, LinkedIn, TikTok, YouTube, Pinterest, Threads, Google Business Profile, and Bluesky
Type-Safe Implementation: Written in TypeScript with full type safety
Robust Error Handling: Comprehensive error handling with detailed error messages
Configurable Logging: Adjustable logging levels for debugging and monitoring
Platform-Specific Features: Advanced platform-specific settings for Google Business Profile, TikTok, YouTube, Instagram, and more
Scheduling Support: Create scheduled posts with platform-specific settings
Authentication Management: Secure API token handling with automatic retry logic
Related MCP server: SimpleLocalize MCP Server
Installation
Prerequisites
Node.js 18.0.0 or higher
npm 8.0.0 or higher
Install from NPM
npm install -g simplified-mcp-serverInstall from Source
git clone https://github.com/celeryhq/simplified-mcp-server.git
cd simplified-mcp-server
npm install
npm run buildpack DXT file
npm install -g @anthropic-ai/dxt
npx @anthropic-ai/dxt pack Configuration
The server is configured using environment variables. Create a .env file in your project root or set these variables in your environment:
Required Configuration
Variable | Description | Example |
| Your Simplified API token |
|
Optional Configuration
Variable | Description | Default | Options |
| Simplified API base URL |
| Any valid URL |
| Logging verbosity level |
|
|
| API request timeout (ms) |
| Any positive number |
| Number of retry attempts |
| Any non-negative number |
| Delay between retries (ms) |
| Any positive number |
Workflow Tool Configuration
The server supports dynamic workflow tools that automatically discover and register tools based on available workflows. This feature is disabled by default and can be enabled through environment variables.
Variable | Description | Default | Range/Options |
| Enable dynamic workflow tools |
|
|
| Auto-refresh interval (ms) |
|
|
| Execution timeout (ms) |
|
|
| Max concurrent executions |
|
|
| Comma-separated name patterns | `` (none) | Wildcard patterns |
| Status polling interval (ms) |
|
|
| Retry attempts for failures |
|
|
Example Configuration
# Required
SIMPLIFIED_API_TOKEN=sk_live_your_token_here
# Optional - Basic Configuration
SIMPLIFIED_API_BASE_URL=https://api.simplified.com
LOG_LEVEL=info
REQUEST_TIMEOUT=30000
RETRY_ATTEMPTS=3
RETRY_DELAY=1000
# Optional - Workflow Configuration
WORKFLOWS_ENABLED=true
WORKFLOW_DISCOVERY_INTERVAL=300000
WORKFLOW_EXECUTION_TIMEOUT=600000
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=10
WORKFLOW_FILTER_PATTERNS=data-*,report-*
WORKFLOW_STATUS_CHECK_INTERVAL=5000
WORKFLOW_RETRY_ATTEMPTS=3Environment-Specific Configuration Examples
Development Environment
# Development settings for faster feedback
WORKFLOWS_ENABLED=true
WORKFLOW_DISCOVERY_INTERVAL=60000 # 1 minute refresh
WORKFLOW_EXECUTION_TIMEOUT=120000 # 2 minute timeout
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=5 # Lower concurrency
WORKFLOW_STATUS_CHECK_INTERVAL=2000 # 2 second polling
WORKFLOW_RETRY_ATTEMPTS=1 # Fewer retries
LOG_LEVEL=debugProduction Environment
# Production settings for stability and performance
WORKFLOWS_ENABLED=true
WORKFLOW_DISCOVERY_INTERVAL=600000 # 10 minute refresh
WORKFLOW_EXECUTION_TIMEOUT=600000 # 10 minute timeout
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=20 # Higher concurrency
WORKFLOW_STATUS_CHECK_INTERVAL=10000 # 10 second polling
WORKFLOW_RETRY_ATTEMPTS=5 # More retries
LOG_LEVEL=warnUsage
Programmatic Usage
import { SimplifiedMCPServer } from 'simplified-mcp-server';
import { ConfigurationManager } from 'simplified-mcp-server/config';
async function startServer() {
const config = ConfigurationManager.loadConfig();
const server = new SimplifiedMCPServer(config);
await server.start();
}
startServer().catch(console.error);Integration with Claude
Add the server to your Claude MCP configuration:
{
"mcpServers": {
"simplified": {
"command": "node",
"args": [
"{PATH_TO_CLONED_REPOSITORY}/dist/cli.js",
"start"
],
"env": {
"SIMPLIFIED_API_TOKEN": "your_token_here",
"SIMPLIFIED_API_BASE_URL": "https://api.simplified.com",
"LOG_LEVEL": "info",
"WORKFLOWS_ENABLED": "true",
"WORKFLOW_EXECUTION_TIMEOUT": "600000"
}
}
}
}Install DXT extension:
Extensions -> Advanced settings -> Install Extension...
Choose simplified-mcp.dxt file. Add your token.
Integration with Kiro
Add the server to your Kiro MCP configuration:
{
"mcpServers": {
"simplified": {
"command": "simplified-mcp-server",
"env": {
"SIMPLIFIED_API_TOKEN": "your_token_here",
"WORKFLOWS_ENABLED": "true",
"WORKFLOW_DISCOVERY_INTERVAL": "300000",
"WORKFLOW_EXECUTION_TIMEOUT": "600000"
}
}
}
}Available Tools
The server provides comprehensive social media management tools with platform-specific features, plus dynamic workflow tools for extended functionality:
Social Media Tools
Tools for managing social media accounts and posts.
get_social_media_accounts
Retrieve all connected social media accounts.
Parameters:
network(optional): Filter by platform (facebook, instagram, linkedin, tiktok, youtube, pinterest, threads, google, bluesky, tiktokBusiness)
Example:
{
"name": "get_social_media_accounts",
"arguments": {
"network": "instagram"
}
}create_social_media_post
Create a new social media post with platform-specific settings for Google, TikTok, Threads, YouTube, Facebook, LinkedIn, Instagram, and Pinterest.
Parameters:
message(required): Post message/content (1-5000 characters)accountId(required): Social media account IDaction(required): Action to perform (schedule, add_to_queue, draft)date(optional): Scheduled date for the post (format: YYYY-MM-DD HH:MM)media(optional): Array of media file URLs to attach (max 10 items)additional(optional): Platform-specific post settings and metadata
Basic Example:
{
"name": "create_social_media_post",
"arguments": {
"message": "Excited to announce our new product launch! π",
"accountId": "acc_fb123",
"action": "schedule",
"date": "2024-01-22 12:00",
"media": [
"https://example.com/product-image.jpg",
"https://example.com/launch-video.mp4"
],
"additional": {}
}
}Media Files
The media parameter accepts an array of URL strings pointing to your media files:
{
"media": [
"https://example.com/image1.jpg",
"https://example.com/video.mp4",
"https://example.com/image2.png"
]
}Media Requirements:
Maximum 10 media files per post
URLs must be publicly accessible
Supported formats vary by platform (images: JPG, PNG, GIF; videos: MP4, MOV, etc.)
Platform-Specific Features
The additional parameter supports platform-specific configurations:
Google Business Profile
{
"additional": {
"google": {
"post": {
"title": "New Product Launch",
"topicType": "OFFER",
"couponCode": "LAUNCH20",
"callToActionUrl": "https://example.com/product",
"callToActionType": "SHOP",
"termsConditions": "Valid until end of month"
}
}
}
}TikTok / TikTok Business
{
"additional": {
"tiktok": {
"post": {
"brandContent": true,
"privacyStatus": "PUBLIC_TO_EVERYONE",
"duetDisabled": false,
"commentDisabled": false
},
"channel": { "value": "direct" },
"postType": { "value": "video" }
}
}
}YouTube
{
"additional": {
"youtube": {
"post": {
"title": "Product Launch Video",
"license": "standard",
"privacyStatus": "public",
"selfDeclaredMadeForKids": "no"
},
"postType": { "value": "short" }
}
}
}{
"additional": {
"instagram": {
"postReel": {
"audioName": "Trending Audio Track",
"shareToFeed": true
},
"postType": { "value": "reel" }
}
}
}{
"additional": {
"pinterest": {
"post": {
"link": "https://example.com/product",
"title": "Amazing Product",
"imageAlt": "Product showcase image"
}
}
}
}{
"additional": {
"linkedin": {
"audience": { "value": "PUBLIC" }
}
}
}{
"additional": {
"facebook": {
"postType": { "value": "feed" }
}
}
}Threads
{
"additional": {
"threads": {
"channel": { "value": "direct" }
}
}
}Dynamic Workflow Tools
The server supports dynamic workflow tools that automatically discover and register tools based on workflows provided by a workflows-list-tool. This feature enables the server to expose workflow-based functionality as standard MCP tools without requiring code changes.
Enabling Workflow Tools
To enable dynamic workflow tools, set the following environment variable:
WORKFLOWS_ENABLED=trueWhen enabled, the server will:
Query the
workflows-list-toolto discover available workflowsAutomatically register MCP tools for each discovered workflow
Handle workflow execution through standard MCP tool calls
Provide status checking capabilities for running workflows
Workflow Tool Discovery
The server discovers workflows by calling a workflows-list-tool that should return an array of workflow definitions. Each workflow must conform to this schema:
{
"id": "workflow-123",
"name": "Data Analysis Workflow",
"description": "Analyzes data and generates reports",
"category": "analytics",
"version": "1.0.0",
"inputSchema": {
"type": "object",
"properties": {
"dataset": {
"type": "string",
"description": "Path to the dataset file"
},
"format": {
"type": "string",
"enum": ["csv", "json", "xlsx"],
"description": "Data format"
}
},
"required": ["dataset"]
},
"executionType": "async",
"metadata": {
"estimatedDuration": "5-10 minutes",
"resourceRequirements": "medium"
}
}Using Workflow Tools
Once discovered, workflow tools appear in the standard MCP tools list and can be called like any other tool:
{
"name": "workflow-data-analysis-workflow",
"arguments": {
"dataset": "/path/to/data.csv",
"format": "csv"
}
}Workflow Execution Flow
Tool Call: MCP client calls a workflow tool with parameters
Execution Start: Server makes POST call to workflow execution endpoint
Status Polling: Server polls workflow status with minimum 1000ms intervals
Result Return: Server returns workflow results in standard MCP format
Example execution response:
{
"success": true,
"data": {
"workflowId": "workflow-123",
"executionId": "exec-456",
"status": "COMPLETED",
"results": {
"summary": "Analysis completed successfully",
"reportUrl": "https://example.com/report.pdf",
"metrics": {
"recordsProcessed": 10000,
"executionTime": "4m 32s"
}
}
}
}Workflow Status Checking
The server provides a built-in workflow-status-check tool for monitoring workflow executions:
{
"name": "workflow-status-check",
"arguments": {
"workflowId": "workflow-123",
"executionId": "exec-456"
}
}Status response includes:
Current execution status (RUNNING, COMPLETED, FAILED, CANCELLED)
Start and end times
Progress information (if available)
Input parameters and output results
Error details (if failed)
Workflow Configuration Options
Discovery and Refresh
# Enable automatic workflow discovery
WORKFLOWS_ENABLED=true
# Refresh workflows every 5 minutes (300000ms)
WORKFLOW_DISCOVERY_INTERVAL=300000Execution Management
# Set workflow execution timeout to 10 minutes
WORKFLOW_EXECUTION_TIMEOUT=600000
# Allow up to 15 concurrent workflow executions
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=15
# Check workflow status every 3 seconds
WORKFLOW_STATUS_CHECK_INTERVAL=3000Workflow Filtering
# Only expose workflows matching these patterns
WORKFLOW_FILTER_PATTERNS=data-*,report-*,analysis-*
# This would expose workflows like:
# - data-processing-workflow
# - report-generation-workflow
# - analysis-customer-workflow
# But not:
# - admin-cleanup-workflow
# - test-workflowError Handling
# Retry failed workflow operations up to 5 times
WORKFLOW_RETRY_ATTEMPTS=5Workflow Tool Examples
Data Processing Workflow
{
"name": "workflow-data-processor",
"arguments": {
"inputFile": "sales-data-2024.csv",
"operations": ["clean", "aggregate", "analyze"],
"outputFormat": "json"
}
}Report Generation Workflow
{
"name": "workflow-monthly-report",
"arguments": {
"month": "2024-01",
"includeCharts": true,
"recipients": ["manager@company.com"],
"format": "pdf"
}
}Machine Learning Workflow
{
"name": "workflow-ml-training",
"arguments": {
"dataset": "customer-behavior.csv",
"algorithm": "random-forest",
"testSplit": 0.2,
"hyperparameters": {
"n_estimators": 100,
"max_depth": 10
}
}
}Platform-Specific Options Reference
Platform | Available Options | Description |
Google Business Profile |
| Business post enhancements with CTAs and offers |
TikTok/TikTok Business |
| Content settings and engagement controls |
YouTube |
| Video metadata and compliance settings |
| Reel-specific settings and feed sharing | |
| Pin destination and accessibility | |
| Professional audience targeting | |
| Content type specification | |
Threads |
| Publishing method |
Workflow Tools
Dynamic tools automatically generated from discovered workflows. These tools are only available when WORKFLOWS_ENABLED=true.
workflow-status-check
Check the status of a running workflow execution.
Parameters:
workflowId(required): The original workflow IDexecutionId(required): The workflow execution ID (UUID)
Example:
{
"name": "workflow-status-check",
"arguments": {
"workflowId": "data-processor-v2",
"executionId": "8f496b6a-c905-41bb-b7b7-200a8982ab30"
}
}Response:
{
"success": true,
"data": {
"status": "RUNNING",
"progress": 65,
"startTime": 1753703781802,
"estimatedCompletion": "2024-01-22T12:45:00Z",
"input": {
"dataset": "sales-data.csv",
"format": "csv"
},
"output": null
}
}Dynamic Workflow Tools
Each discovered workflow becomes an individual MCP tool with the naming pattern workflow-{workflow-name}. The tool parameters are dynamically generated based on the workflow's input schema.
Example Workflow Tools:
workflow-data-analysis- Analyze datasets and generate insightsworkflow-report-generator- Create automated reportsworkflow-image-processor- Process and transform imagesworkflow-email-campaign- Send targeted email campaignsworkflow-backup-system- Perform system backups
Dynamic Tool Example:
{
"name": "workflow-customer-segmentation",
"arguments": {
"customerData": "customers-2024.csv",
"segmentationCriteria": ["age", "purchase_history", "location"],
"outputFormat": "json",
"includeVisualization": true
}
}Dynamic Tool Response:
{
"success": true,
"data": {
"executionId": "exec-789",
"status": "COMPLETED",
"results": {
"segments": [
{
"name": "High Value Customers",
"count": 1250,
"criteria": "age: 25-45, purchases: >$500/month"
},
{
"name": "Occasional Buyers",
"count": 3400,
"criteria": "age: 18-65, purchases: $50-$500/month"
}
],
"visualizationUrl": "https://example.com/segments-chart.png",
"executionTime": "3m 45s"
}
}
}Error Handling
The server provides comprehensive error handling with detailed error messages:
Error Types
Configuration Errors: Missing or invalid configuration
Authentication Errors: Invalid or expired API tokens
API Errors: Errors from Simplified's API
Tool Execution Errors: Errors during tool execution
Validation Errors: Invalid tool parameters
Workflow Discovery Errors: Issues discovering or validating workflows
Workflow Execution Errors: Failures during workflow execution
Workflow Timeout Errors: Workflow execution exceeding timeout limits
Error Response Format
{
"success": false,
"error": "Error message",
"details": {
"type": "AUTHENTICATION_ERROR",
"code": 401,
"timestamp": "2024-01-01T00:00:00.000Z"
}
}Workflow-Specific Error Examples
Workflow Discovery Error
{
"success": false,
"error": "Failed to discover workflows",
"details": {
"type": "WORKFLOW_DISCOVERY_ERROR",
"message": "workflows-list-tool is not available",
"timestamp": "2024-01-01T00:00:00.000Z",
"retryAfter": 300
}
}Workflow Execution Error
{
"success": false,
"error": "Workflow execution failed",
"details": {
"type": "WORKFLOW_EXECUTION_ERROR",
"workflowId": "data-processor",
"executionId": "exec-123",
"status": "FAILED",
"message": "Invalid input format: expected CSV, got JSON",
"timestamp": "2024-01-01T00:00:00.000Z"
}
}Workflow Timeout Error
{
"success": false,
"error": "Workflow execution timed out",
"details": {
"type": "WORKFLOW_TIMEOUT_ERROR",
"workflowId": "long-running-analysis",
"executionId": "exec-456",
"timeout": 300000,
"elapsed": 300001,
"timestamp": "2024-01-01T00:00:00.000Z"
}
}Development
Building from Source
git clone https://github.com/celeryhq/simplified-mcp-server.git
cd simplified-mcp-server
npm install
npm run buildRunning Tests
# Run all tests
npm test
# Run tests with coverage
npm run test:coverage
# Run tests in watch mode
npm run test:watchDevelopment Mode
# Start in development mode with auto-reload
npm run dev
# Start in development mode with watch
npm run dev:watchProject Structure
simplified-mcp-server/
βββ src/
β βββ index.ts # Main entry point
β βββ server.ts # MCP server implementation
β βββ cli.ts # Command line interface
β βββ config/
β β βββ configuration.ts # Configuration management
β βββ tools/
β β βββ registry.ts # Tool registry
β β βββ definitions.ts # Tool definition utilities
β β βββ implementations/ # Tool implementations
β β βββ social-media-tools.ts # Social media management tools
β β βββ index.ts # Tool exports
β βββ api/
β β βββ client.ts # Simplified API client
β βββ utils/
β β βββ errors.ts # Error handling utilities
β β βββ logger.ts # Logging utilities
β βββ types/
β βββ index.ts # TypeScript type definitions
βββ tests/ # Test files
βββ dist/ # Compiled JavaScript
βββ docs/ # DocumentationWorkflow Configuration Guide
Understanding Workflow Tools
Workflow tools extend the server's capabilities by automatically discovering and registering tools based on external workflow definitions. This allows you to expose complex business processes, data pipelines, and automation workflows as simple MCP tools.
Configuration Parameters Explained
WORKFLOWS_ENABLED
Purpose: Master switch for workflow functionality
Default: false
Recommendation: Set to true only when you have a workflows-list-tool available
# Enable workflow tools
WORKFLOWS_ENABLED=trueWORKFLOW_DISCOVERY_INTERVAL
Purpose: How often to refresh the list of available workflows
Default: 0 (disabled)
Range: 0-86400000 ms (0 = disabled, max = 24 hours)
Recommendation:
Development:
60000(1 minute) for rapid iterationProduction:
600000(10 minutes) for stabilitySet to
0if workflows rarely change
# Refresh every 5 minutes
WORKFLOW_DISCOVERY_INTERVAL=300000
# Disable automatic refresh
WORKFLOW_DISCOVERY_INTERVAL=0WORKFLOW_EXECUTION_TIMEOUT
Purpose: Maximum time to wait for workflow completion
Default: 300000 ms (5 minutes)
Range: 1000-3600000 ms (1 second to 1 hour)
Recommendation: Set based on your longest-running workflow
# For quick workflows (e.g., data validation)
WORKFLOW_EXECUTION_TIMEOUT=30000
# For long workflows (e.g., ML training)
WORKFLOW_EXECUTION_TIMEOUT=1800000WORKFLOW_MAX_CONCURRENT_EXECUTIONS
Purpose: Limit simultaneous workflow executions to prevent resource exhaustion
Default: 10
Range: 1-100
Recommendation:
Development:
3-5for resource-constrained environmentsProduction:
10-20based on server capacity
# Conservative limit for development
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=3
# Higher limit for production
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=20WORKFLOW_FILTER_PATTERNS
Purpose: Control which workflows are exposed as tools
Default: `` (empty - all workflows exposed)
Format: Comma-separated wildcard patterns
Examples:
# Only expose data-related workflows
WORKFLOW_FILTER_PATTERNS=data-*
# Multiple patterns
WORKFLOW_FILTER_PATTERNS=data-*,report-*,analysis-*
# Exclude test workflows
WORKFLOW_FILTER_PATTERNS=*,-test-*,-dev-*
# Expose all workflows (default)
WORKFLOW_FILTER_PATTERNS=WORKFLOW_STATUS_CHECK_INTERVAL
Purpose: How often to poll workflow status during execution
Default: 5000 ms (5 seconds)
Range: 1000-300000 ms (1 second to 5 minutes)
Recommendation: Balance between responsiveness and API load
# Frequent polling for interactive workflows
WORKFLOW_STATUS_CHECK_INTERVAL=2000
# Less frequent polling to reduce API load
WORKFLOW_STATUS_CHECK_INTERVAL=10000WORKFLOW_RETRY_ATTEMPTS
Purpose: Number of retry attempts for failed workflow operations
Default: 3
Range: 0-10
Recommendation:
Development:
1for faster failure feedbackProduction:
3-5for reliability
# No retries for testing
WORKFLOW_RETRY_ATTEMPTS=0
# More retries for production reliability
WORKFLOW_RETRY_ATTEMPTS=5Configuration Best Practices
Development Environment
# Fast feedback, lower resource usage
WORKFLOWS_ENABLED=true
WORKFLOW_DISCOVERY_INTERVAL=60000
WORKFLOW_EXECUTION_TIMEOUT=120000
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=3
WORKFLOW_STATUS_CHECK_INTERVAL=2000
WORKFLOW_RETRY_ATTEMPTS=1
WORKFLOW_FILTER_PATTERNS=dev-*,test-*
LOG_LEVEL=debugProduction Environment
# Stability and performance focused
WORKFLOWS_ENABLED=true
WORKFLOW_DISCOVERY_INTERVAL=600000
WORKFLOW_EXECUTION_TIMEOUT=600000
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=15
WORKFLOW_STATUS_CHECK_INTERVAL=5000
WORKFLOW_RETRY_ATTEMPTS=3
WORKFLOW_FILTER_PATTERNS=prod-*
LOG_LEVEL=warnTesting Environment
# Predictable behavior for tests
WORKFLOWS_ENABLED=false
WORKFLOW_DISCOVERY_INTERVAL=0
WORKFLOW_EXECUTION_TIMEOUT=30000
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=1
WORKFLOW_STATUS_CHECK_INTERVAL=1000
WORKFLOW_RETRY_ATTEMPTS=0
LOG_LEVEL=errorConfiguration Validation
The server validates all workflow configuration on startup and provides detailed error messages for invalid values:
# Example validation error
Configuration validation failed:
Invalid configuration values: workflowExecutionTimeout: Workflow execution timeout must be at least 1000ms (1 second)
Workflow configuration guidelines:
- Set WORKFLOW_DISCOVERY_INTERVAL to 0 to disable automatic refresh
- Use WORKFLOW_FILTER_PATTERNS to limit which workflows are exposed (e.g., "data-*,report-*")
- Minimum WORKFLOW_STATUS_CHECK_INTERVAL is 1000ms to avoid excessive API calls
- WORKFLOW_EXECUTION_TIMEOUT should be set based on your longest-running workflowsPerformance Considerations
API Rate Limiting
Set
WORKFLOW_DISCOVERY_INTERVALto at least 60 seconds to avoid rate limitsUse
WORKFLOW_STATUS_CHECK_INTERVALof at least 2 seconds for status pollingConsider the total API load: discovery + (concurrent executions Γ status checks)
Resource Management
Monitor memory usage with high
WORKFLOW_MAX_CONCURRENT_EXECUTIONSLong-running workflows may require increased
WORKFLOW_EXECUTION_TIMEOUTUse workflow filtering to reduce the number of registered tools
Monitoring Recommendations
# Enable detailed logging for monitoring
LOG_LEVEL=info
# Set reasonable limits
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=10
WORKFLOW_EXECUTION_TIMEOUT=300000
# Monitor workflow performance
WORKFLOW_STATUS_CHECK_INTERVAL=5000Troubleshooting
Common Issues
Server Won't Start
Problem: Server fails to start with configuration error.
Solution:
Verify your
.envfile containsSIMPLIFIED_API_TOKENCheck that your API token is valid
Ensure Node.js version is 18.0.0 or higher
# Check Node.js version
node --version
# Verify environment variables
echo $SIMPLIFIED_API_TOKENAuthentication Errors
Problem: API calls fail with authentication errors.
Solution:
Verify your API token is correct and not expired
Check that the token has the necessary permissions
Ensure the API base URL is correct
Tool Execution Failures
Problem: Tools return errors or unexpected results.
Solution:
Check the tool parameters match the expected schema
Verify the API endpoint exists and is accessible
Check server logs for detailed error information
# Enable debug logging
LOG_LEVEL=debug simplified-mcp-serverConnection Issues
Problem: Cannot connect to Simplified API.
Solution:
Check your internet connection
Verify the API base URL is accessible
Check if there are any firewall restrictions
Use the health check tool to diagnose connectivity
Workflow Tool Issues
Problem: Workflow tools are not appearing in the tools list.
Solution:
Verify
WORKFLOWS_ENABLED=trueis set in your environmentCheck that the
workflows-list-toolis available and respondingVerify workflow definitions match the expected schema
Check server logs for workflow discovery errors
# Enable debug logging to see workflow discovery details
LOG_LEVEL=debug simplified-mcp-serverProblem: Workflow execution times out or fails.
Solution:
Increase
WORKFLOW_EXECUTION_TIMEOUTfor longer-running workflowsCheck workflow status using the
workflow-status-checktoolVerify workflow parameters match the expected schema
Check if the workflow execution system is available
# Increase timeout to 10 minutes for long workflows
WORKFLOW_EXECUTION_TIMEOUT=600000Problem: Too many concurrent workflow executions causing errors.
Solution:
Reduce
WORKFLOW_MAX_CONCURRENT_EXECUTIONSto limit resource usageImplement workflow queuing in your application
Monitor system resources during peak usage
# Limit to 5 concurrent executions
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=5Problem: Workflow discovery is too frequent and causing API rate limits.
Solution:
Increase
WORKFLOW_DISCOVERY_INTERVALto reduce API callsSet to 0 to disable automatic discovery and use manual refresh
Implement workflow caching in your application
# Refresh workflows every 30 minutes instead of every 5 minutes
WORKFLOW_DISCOVERY_INTERVAL=1800000
# Or disable automatic discovery
WORKFLOW_DISCOVERY_INTERVAL=0Problem: Only some workflows are being discovered.
Solution:
Check
WORKFLOW_FILTER_PATTERNSconfigurationVerify workflow names match your filter patterns
Remove filters to see all available workflows
# Remove all filters to see all workflows
WORKFLOW_FILTER_PATTERNS=
# Or adjust patterns to include more workflows
WORKFLOW_FILTER_PATTERNS=*Debug Mode
Enable debug logging for detailed troubleshooting:
LOG_LEVEL=debug simplified-mcp-serverHealth Check
Use the built-in health check tool to verify server status:
{
"name": "simplified-health-check",
"arguments": {
"includeDetails": true
}
}Workflow Troubleshooting Guide
Workflow Discovery Issues
Symptom: No workflow tools appear in tools list despite WORKFLOWS_ENABLED=true
Diagnostic Steps:
Enable debug logging:
LOG_LEVEL=debugCheck server startup logs for workflow discovery messages
Verify
workflows-list-toolis available and responding
Common Causes & Solutions:
# Cause: workflows-list-tool not found
# Solution: Ensure the tool is properly registered and available
LOG_LEVEL=debug simplified-mcp-server
# Look for: "Workflow discovery failed: workflows-list-tool not found"
# Cause: Invalid workflow definitions
# Solution: Check workflow schema compliance
# Look for: "Skipping invalid workflow: missing required field 'name'"
# Cause: All workflows filtered out
# Solution: Check filter patterns
WORKFLOW_FILTER_PATTERNS= # Remove filters temporarilySymptom: Workflows discovered but tools not registered
Diagnostic Steps:
Check for tool name conflicts in logs
Verify workflow names are valid MCP tool names
Look for schema validation errors
Solutions:
# Enable detailed tool registration logging
LOG_LEVEL=debug
# Check for naming conflicts
# Look for: "Tool name conflict: workflow-data-processor already exists"
# Verify workflow names contain only valid characters
# Valid: data-processor, report_generator, analysis123
# Invalid: data processor, report-generator!, anΓ‘lisisWorkflow Execution Issues
Symptom: Workflow execution times out
Diagnostic Steps:
Check workflow execution logs
Verify workflow is actually running
Monitor workflow status manually
Solutions:
# Increase timeout for long-running workflows
WORKFLOW_EXECUTION_TIMEOUT=1800000 # 30 minutes
# Check workflow status manually
{
"name": "workflow-status-check",
"arguments": {
"workflowId": "your-workflow-id",
"executionId": "execution-uuid"
}
}
# Reduce status check interval for better monitoring
WORKFLOW_STATUS_CHECK_INTERVAL=2000Symptom: Workflow execution fails immediately
Diagnostic Steps:
Validate input parameters against workflow schema
Check workflow system availability
Verify API credentials and permissions
Solutions:
# Enable parameter validation logging
LOG_LEVEL=debug
# Check parameter schema compliance
# Look for: "Parameter validation failed: 'dataset' is required"
# Test workflow system connectivity
# Use workflow-status-check with a known execution IDPerformance Issues
Symptom: Server becomes slow or unresponsive
Diagnostic Steps:
Check concurrent execution count
Monitor memory and CPU usage
Review workflow discovery frequency
Solutions:
# Reduce concurrent executions
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=5
# Increase discovery interval to reduce API load
WORKFLOW_DISCOVERY_INTERVAL=1800000 # 30 minutes
# Disable automatic discovery if not needed
WORKFLOW_DISCOVERY_INTERVAL=0
# Use workflow filtering to reduce tool count
WORKFLOW_FILTER_PATTERNS=essential-*,critical-*Symptom: Excessive API calls causing rate limiting
Solutions:
# Increase status check interval
WORKFLOW_STATUS_CHECK_INTERVAL=10000 # 10 seconds
# Reduce discovery frequency
WORKFLOW_DISCOVERY_INTERVAL=3600000 # 1 hour
# Limit concurrent executions
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=3Configuration Issues
Symptom: Server fails to start with workflow configuration errors
Common Errors & Solutions:
# Error: "Workflow execution timeout must be at least 1000ms"
WORKFLOW_EXECUTION_TIMEOUT=30000 # Set to at least 1 second
# Error: "Status check interval must be at least 1000ms"
WORKFLOW_STATUS_CHECK_INTERVAL=2000 # Set to at least 1 second
# Error: "Maximum concurrent executions must be positive"
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=5 # Set to positive number
# Error: "Discovery interval cannot exceed 24 hours"
WORKFLOW_DISCOVERY_INTERVAL=3600000 # Set to max 1 hourIntegration Issues
Symptom: Workflows work in testing but fail in production
Diagnostic Checklist:
Environment variable differences
Network connectivity and firewall rules
API endpoint availability
Resource limits and timeouts
Production Configuration Review:
# Ensure production-appropriate timeouts
WORKFLOW_EXECUTION_TIMEOUT=600000 # 10 minutes
WORKFLOW_STATUS_CHECK_INTERVAL=5000 # 5 seconds
WORKFLOW_DISCOVERY_INTERVAL=600000 # 10 minutes
# Set appropriate concurrency limits
WORKFLOW_MAX_CONCURRENT_EXECUTIONS=15
# Use production workflow filters
WORKFLOW_FILTER_PATTERNS=prod-*,live-*
# Enable appropriate logging
LOG_LEVEL=warn # Reduce log noise in productionDebug Commands
Enable Maximum Debugging:
LOG_LEVEL=debug
WORKFLOWS_ENABLED=true
WORKFLOW_DISCOVERY_INTERVAL=60000
WORKFLOW_STATUS_CHECK_INTERVAL=2000
WORKFLOW_RETRY_ATTEMPTS=1Test Workflow Discovery:
# Start server and look for these log messages:
# "Starting workflow discovery..."
# "Discovered X workflows"
# "Registered workflow tool: workflow-name"
# "Workflow discovery completed"Test Workflow Execution:
# Use a simple workflow first
{
"name": "workflow-simple-test",
"arguments": {
"input": "test-value"
}
}
# Monitor logs for:
# "Starting workflow execution: workflow-id"
# "Workflow status: RUNNING"
# "Workflow completed: execution-id"Getting Help
Check the logs: Enable debug logging to see detailed error information
Verify configuration: Ensure all required environment variables are set
Test connectivity: Use the health check and API status tools
Check API documentation: Verify endpoint paths and parameters
Test workflow tools: Start with simple workflows before complex ones
Monitor resources: Check memory and CPU usage during workflow execution
Report issues: Create an issue on the GitHub repository with logs and configuration details
API Reference
Server Configuration
The server accepts the following configuration options:
interface ServerConfig {
// Basic Configuration
apiToken: string; // Required: Simplified API token
apiBaseUrl: string; // Optional: API base URL
logLevel: 'debug' | 'info' | 'warn' | 'error'; // Optional: Log level
timeout: number; // Optional: Request timeout in ms
retryAttempts: number; // Optional: Number of retry attempts
retryDelay: number; // Optional: Delay between retries in ms
// Workflow Configuration
workflowsEnabled: boolean; // Optional: Enable workflow tools
workflowDiscoveryInterval: number; // Optional: Auto-refresh interval (ms)
workflowExecutionTimeout: number; // Optional: Execution timeout (ms)
workflowMaxConcurrentExecutions: number; // Optional: Max concurrent executions
workflowFilterPatterns: string[]; // Optional: Workflow name patterns
workflowStatusCheckInterval: number; // Optional: Status polling interval (ms)
workflowRetryAttempts: number; // Optional: Retry attempts for failures
}Tool Response Format
All tools return responses in the following format:
interface ToolResponse {
content: Array<{
type: 'text';
text: string; // JSON string containing the actual response data
}>;
}Success Response
{
"success": true,
"data": { /* response data */ },
"message": "Operation completed successfully"
}Error Response
{
"success": false,
"error": "Error description",
"details": { /* additional error information */ }
}Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
Fork the repository
Clone your fork:
git clone https://github.com/your-username/simplified-mcp-server.gitInstall dependencies:
npm installCreate a feature branch:
git checkout -b feature/your-featureMake your changes and add tests
Run tests:
npm testBuild the project:
npm run buildCommit your changes:
git commit -m "Add your feature"Push to your fork:
git push origin feature/your-featureCreate a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
API Documentation: API Docs
Documentation: GitHub Wiki
Issues: GitHub Issues
Discussions: GitHub Discussions