create_layout_file
Create Android layout files
How to use it
create_layout_file is exposed by the Kotlin MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the create_layout_file tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Kotlin MCP Server
docker run -p 8000:8000 -v $(pwd):/workspace kotlin-mcp-serverOther tools in Kotlin MCP Server (39)
Project structure analysis
Claude models
Make secure API calls with authentication.
Assign user roles (admin, developer, readonly, guest)
Create encrypted backups
Potential bug detection
Check user permissions for operations
(boolean, optional): Whether to clean before building
Clear the security cache
Code complexity analysis
Standard composable function
Create Kotlin source files
Custom API endpoints
Decrypt files (with proper authorization)
Encrypt sensitive files
Export telemetry data
Format Kotlin code using ktlint or spotless.
Get security metrics and monitoring data
Create a new feature branch.
Create intelligent commit message.
Get Git repository status.
Build Android project
Layout composable with children
Ollama, LocalAI
Maintainability assessment
GPT-4, GPT-3.5
Optimize and organize Kotlin imports.
Organize files by type/category
(boolean, optional): Enable parallel execution
Performance optimization suggestions
Refactor Kotlin functions with AST-aware transformations.
Restore from backup
Execute tests
Security vulnerabilities and best practices
Composable with internal state
Pure UI composable
Code style improvements
Synchronize with cloud storage
(string): Gradle task to execute (e.g., "assembleDebug", "build", "test")