Goal
Design and implement NocoBase data models through MCP (Model Context Protocol).
Workflow
- Clarify modeling intent:
- Create/update/list/get collections
- Add/update/list fields
- Configure relations
- Check if NocoBase MCP server is configured:
- Look for available MCP tools from NocoBase server.
- If not configured, guide user to use
nocobase-mcp-setupskill first.
- Use the appropriate MCP tools to execute data modeling operations:
- List collections: Use MCP tool for GET
/collections:list - Create collection: Use MCP tool for POST
/collections:create - Add fields: Use MCP tool for POST
/collections.fields:create - Configure relations: Use MCP tool for field operations with relation types
- List collections: Use MCP tool for GET
- Verify results by querying the created/updated collection or fields.
- For complex schemas, prefer templates in
assets/collection-templates/.
Resources
../nocobase-swagger-fetch/- Shared swagger retrieval skill../nocobase-api-call/- Shared API execution skillassets/collection-templates/- Reusable schema templates
Usage
# 1) Read available endpoints in fixed namespace
Fetch Swagger for namespace `plugins%2Fdata-source-main`.
# 2) Inspect create collection API
Extract from returned Swagger JSON: .paths["/collections:create"]
# 3) Create collection
Ask the agent to create collection `products` via `nocobase-api-call` on endpoint `/collections:create`.
# 4) Verify
Ask the agent to verify collection `products` via `nocobase-api-call` on endpoint `/collections:get?filterByTk=products`.