Usage Guide
This guide covers how to use the clearskies MCP Server effectively with MCP clients like Claude Desktop.
Available Tools
The MCP server exposes tools for documentation, code generation, and module management.
Documentation Tools
List and query clearskies framework types:
list_available_columns- List all column typeslist_available_endpoints- List all endpoint typeslist_available_backends- List all backend typeslist_available_contexts- List all context typeslist_available_authentication- List authentication typeslist_available_validators- List validator types
Get detailed information:
get_column_info- Get details for a specific column typeget_endpoint_info- Get details for a specific endpoint typeget_backend_info- Get details for a specific backend typeget_authentication_info- Get authentication details
Explain concepts:
explain_concept- Get detailed explanation of framework concepts
Code Generation Tools
Generate clearskies code components:
generate_model- Generate a model class definitiongenerate_endpoint- Generate an endpoint configurationgenerate_context- Generate a context wrappergenerate_endpoint_group- Generate an endpoint groupgenerate_model_with_relationships- Generate models with relationships
Scaffolding Tools
Create complete applications:
scaffold_restful_api- Create a complete REST API for a single modelscaffold_project- Create a multi-model project
Module Tools
Manage clearskies extension modules:
list_modules- List all available extension modulesget_module_info- Get detailed info for a specific moduleexplain_module- Get usage examples for a moduleget_module_components- List components in a modulesuggest_modules- Suggest modules for specific component typescheck_module_compatibility- Check if a module is installedrefresh_module_cache- Refresh the module discovery cache
Available Resources
The server provides documentation and examples through MCP resources:
Documentation Resources
clearskies://docs/overview- Framework overviewclearskies://docs/models- Model documentationclearskies://docs/endpoints- Endpoint documentationclearskies://docs/columns- Column types documentationclearskies://docs/backends- Backend documentationclearskies://docs/contexts- Context documentationclearskies://docs/di- Dependency injection documentationclearskies://docs/authentication- Authentication documentation
And many more…
Example Resources
clearskies://examples/restful-api- Complete REST API exampleclearskies://examples/relationships- Model relationships exampleclearskies://examples/authentication- Authentication exampleclearskies://examples/authorization- Authorization exampleclearskies://examples/testing- Testing example
Module Resources
clearskies://modules/overview- Overview of extension modulesclearskies://modules/aws- AWS module documentationclearskies://modules/gitlab- GitLab module documentationclearskies://modules/graphql- GraphQL module documentation
Style Resources
clearskies://style/docstrings- Docstring style guide
Example Workflows
Creating a New Model
- Use
list_available_columnsto see available column types - Use
get_column_infoto understand specific columns you need - Use
generate_modelto create your model definition - Use the generated code in your project
Building a REST API
- Use
scaffold_restful_apito generate a complete API - The tool will create a model, endpoint, and context
- Run the generated code to start your API
Exploring Extension Modules
- Use
list_modulesto see what’s available - Use
get_module_infoto see components in a module - Use
explain_moduleto get usage examples - Use
check_module_compatibilityto verify installation
Tips and Best Practices
- Start with
explain_conceptto understand framework concepts - Use resources for documentation before generating code
- Leverage
scaffold_restful_apifor quick prototypes - Check module compatibility before using extension features
- Refresh module cache after installing new packages
Troubleshooting
Module Not Found Errors
If you get errors about missing modules, use check_module_compatibility to verify the module is installed.
Cache Issues
If modules or components aren’t showing up, use refresh_module_cache to force a refresh.
Generation Errors
When generating code, make sure you understand the required parameters by checking get_column_info or get_endpoint_info first.