MCP X-Platform
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., "@MCP X-PlatformAnalyze ./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: Code Review MCP Server
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 ❤️
Maintenance
Related MCP Servers
- AlicenseAqualityDmaintenanceAnalyzes codebases to generate dependency graphs and architectural insights across multiple programming languages, helping developers understand code structure and validate against architectural rules.Last updated66119MIT
- FlicenseAqualityFmaintenanceAnalyzes codebases using Repomix and LLMs to provide structured code reviews with specific issues and recommendations, supporting multiple LLM providers including OpenAI, Anthropic, and Gemini.Last updated234
- AlicenseAqualityDmaintenanceEnables comprehensive code analysis including quality assessment, security vulnerability detection, refactoring suggestions, complexity calculations, and automatic documentation generation for multiple programming languages.Last updated515MIT
- AlicenseAqualityDmaintenanceEnables inspection and analysis of project structures to detect languages, frameworks, entry points, and dependencies across multiple programming languages including Node.js, Python, PHP, Go, Java, and Rust.Last updated3271ISC
Related MCP Connectors
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.
Four IaC audits in one call: Compose, Dockerfile, GitHub Actions, Kubernetes. 131 checks.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Atomic-Germ/mcp-x-platform'
If you have feedback or need assistance with the MCP directory API, please join our Discord server