MCP X-Platform
Click on "Deploy 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., "@MCP X-Platform Analyze ./src for cross-platform compatibility issues"
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.
MCP X-Platform
A Cross-Platform Compatibility Analyzer MCP server that systematically identifies platform-specific code patterns, dependencies, and potential portability issues
Overview
MCP X-Platform is a Model Context Protocol (MCP) server designed to analyze codebases for cross-platform compatibility issues. It detects platform-specific APIs, file path problems, line ending inconsistencies, shell command incompatibilities, and dependency issues across Windows, macOS, and Linux.
Key Features
π Platform API Detection - Identify Windows, macOS, Linux, and POSIX-specific APIs
π File Path Analysis - Detect separator issues, reserved names, and case sensitivity problems
π Line Ending Check - Find CRLF vs LF inconsistencies
π₯οΈ Shell Command Analysis - Identify platform-specific shell commands and scripts
π¦ Dependency Compatibility - Analyze dependencies for platform-specific packages
π Comprehensive Reports - Generate detailed cross-platform compatibility reports
π MCP Integration - Seamless integration with other MCP tools
β Test-Driven - Built using TDD methodology
Related MCP server: CodeBase Optimizer
Installation
# Install dependencies
npm install
# Build the project
npm run build
# Run tests
npm testQuick Start
As an MCP Server
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"x-platform": {
"command": "node",
"args": ["/path/to/mcp-x-platform/dist/index.js"]
}
}
}Core Tools
Tool | Purpose |
| Detect platform-specific API calls |
| Analyze file paths for compatibility |
| Check line ending consistency |
| Analyze shell command compatibility |
| Generate comprehensive reports |
Usage Examples
Detect Platform APIs
{
"tool": "detect_platform_apis",
"arguments": {
"path": "./src",
"platforms": ["windows", "macos", "linux"]
}
}Analyze File Paths
{
"tool": "analyze_file_paths",
"arguments": {
"path": "./src",
"checkCaseSensitivity": true,
"checkSeparators": true
}
}Best Practices
File Paths
// β
GOOD
import * as path from "path";
const filePath = path.join("src", "utils", "helper.js");
// β BAD
const filePath = "src\\utils\\helper.js";Line Endings
# .gitattributes
* text=auto eol=lf
*.sh text eol=lf
*.{cmd,bat} text eol=crlfShell Commands
// β
GOOD - Cross-platform
import { rimraf } from "rimraf";
await rimraf("./temp");
// β BAD - Platform-specific
exec("rm -rf ./temp");Development
# Build
npm run build
# Test
npm test
# Watch mode
npm run build:watchLicense
MIT License - see LICENSE file for details
Built for cross-platform compatibility with β€οΈ
Available Tools
8 toolsanalyze_build_systemsC
Analyze build system configurations for cross-platform compatibility
Inputs: path (required), buildTools, checkScripts.
analyze_dependenciesC
Analyze dependencies for platform-specific packages and compatibility
Inputs: path (required), platforms, checkArchitecture, checkNativeModules.
analyze_file_pathsB
Analyze file system paths for cross-platform compatibility issues
Inputs: path (required), checkSeparators, checkReservedNames, checkCaseSensitivity.
analyze_line_endingsC
Detect line ending inconsistencies (CRLF vs LF)
Inputs: path (required), autoFix, preferredEnding.
analyze_shell_commandsB
Analyze shell commands and scripts for cross-platform compatibility
Inputs: path (required), checkEnvVars, targetShells.
detect_encoding_issuesB
Detect file encoding issues that may cause cross-platform problems
Inputs: path (required), checkBOM, preferredEncoding.
detect_platform_apisB
Detect platform-specific API calls (Windows, macOS, Linux, POSIX)
Inputs: path (required), platforms, includeTests.
generate_compatibility_reportB
Generate comprehensive cross-platform compatibility report
Inputs: path (required), format, severity, targetPlatforms.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 8 tools
Each tool targets a distinct aspect of cross-platform compatibility (build systems, dependencies, file paths, line endings, shell commands, encoding, platform APIs, and report generation) with no overlapping purposes.
All tool names follow a consistent verb_noun pattern using 'analyze_', 'detect_', or 'generate_' followed by a specific noun, with no mixing of conventions.
Eight tools is well-scoped for a domain-specific compatibility analysis server, covering all key areas without being too few or too many.
The tool set covers major cross-platform issues (build systems, dependencies, paths, line endings, shell commands, encoding, APIs) and includes a comprehensive report generator, though environment variables or permissions are not directly addressed.
Maintenance
Related MCP Connectors
Scan iOS and Android project files for common App Store and Play review issues over MCP.
Detects database migration table locks, terraform cost leaks, and OWASP API flaws.
Finds what Apple and Google would reject in your mobile app before you submit, with the fix.
AI-powered codebase analysis β call graphs, security, dead code, complexity. 150+ tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables comprehensive code analysis including quality assessment, security vulnerability detection, refactoring suggestions, complexity calculations, and automatic documentation generation for multiple programming languages.5MIT
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive codebase analysis including project structure evaluation, cross-language duplicate detection, microservices validation, and configuration optimization with AI-powered pattern learning that generates actionable improvement reports.MIT
- AlicenseAqualityBmaintenanceEnables AI assistants and developers to analyze code for language-specific best practices and idiomatic patterns across programming languages, CI automation, and configuration formats.1641 PyPI2MIT
- FlicenseNot gradedqualityDmaintenanceChecks cross-branch compatibility for merge conflicts by detecting function signature changes, route conflicts, and schema mismatches across 15+ languages using AST analysis.-