mcpField
B
bkend-data

bkend-data

github.com/ww-w-aiData & databases60645 installsUpdated 4w ago
Repository

About bkend-data

A reference skill for bkend.ai database operations, covering table schemas, records, filtering, and indexes. It documents MCP tools alongside the REST data API for development workflows.

Key features

  1. 01Seven column types and constraints
  2. 02Table and schema version management
  3. 03Record CRUD with filters and pagination
  4. 04Relationship and join queries
  5. 05Single and compound indexes

Use cases

  1. 01Defining table schemas and fields
  2. 02Managing records through MCP tools
  3. 03Filtering, sorting, and paging data
  4. 04Retrieving related records with joins

MCP support

Documents MCP tools for table and field management, schema and index history, and record CRUD. It also describes getting tool schemas and guides through MCP documentation tools.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ww-w-ai/bkit-claude-code --skill bkend-data

After installing, type/bkend-datain Claude Code to confirm it loaded.

Details

From the project README

bkend.ai Database Guide

Column Types (7)

TypeDescriptionExample
StringTextname, email
NumberNumericage, price
BooleanTrue/falseisActive
DateDate/timebirthDate
ArrayArraytags: ["a","b"]
ObjectNested objectaddress: {city, zip}
MixedAny typemetadata

Constraints

  • required: Field must have a value
  • unique: No duplicate values allowed
  • default: Default value when not provided

Auto System Fields

FieldTypeDescription
idStringAuto-generated unique ID
createdByStringCreator user ID
createdAtDateCreation timestamp
updatedAtDateLast update timestamp

Important: bkend uses id (NOT _id) in all API responses.

MCP Table Management Tools

ToolPurposeScope
backend_table_createCreate tabletable:create
backend_table_listList tablestable:read
backend_table_getGet table detail + schematable:read
backend_table_deleteDelete tabletable:delete
backend_field_manageAdd/modify/delete fieldstable:update
backend_index_manageManage indexestable:update
backend_schema_version_listSchema version historytable:read
backend_schema_version_getSchema version detailtable:read
backend_schema_version_applyApply schema version (rollback)table:update
backend_index_version_listIndex version historytable:read
backend_index_version_getIndex version detailtable:read

MCP Data CRUD Tools

ToolPurposeKey Parameters
backend_data_listList records (filter, sort, paginate)tableId, page?, limit?, sortBy?, sortDirection?, andFilters?, orFilters?
backend_data_getGet single recordtableId, recordId
backend_data_createCreate recordtableId, data: { field: value }
backend_data_updatePartial update recordtableId, recordId, data: { field: value }
backend_data_deleteDelete recordtableId, recordId

All Data CRUD tools require: organizationId, projectId, environmentId (from get_context).

Filter Operators
OperatorMeaningExample
$eqEqual{ "status": { "$eq": "active" } }
$neNot equal{ "role": { "$ne": "admin" } }
$gt / $gteGreater than / >={ "age": { "$gt": 18 } }
$lt / $lteLess than / <={ "price": { "$lt": 100 } }
$in / $ninIn / Not in array{ "tag": { "$in": ["a","b"] } }

MCP Guide Docs (via search_docs)

Use search_docs tool to access these guides:

Doc IDContent
4_howto_implement_data_crudCRUD implementation patterns
7_code_examples_dataCRUD + file upload code examples

Use get_operation_schema to get any tool's input/output schema.

REST Data API

MethodEndpointDescription
GET/v1/data/{table}List (filter, sort, page, limit)
POST/v1/data/{table}Create
GET/v1/data/{table}/{id}Get single
PATCH/v1/data/{table}/{id}Partial update
DELETE/v1/data/{table}/{id}Delete

Filtering

  • Text search: ?search=keyword
  • AND filter: ?filter[field1]=value1&filter[field2]=value2
  • Comparison operators: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin
  • Sort: ?sort=field:asc (or desc)
  • Pagination: ?page=1&limit=20 (default 20, max 100)

Relations & Joins

  • Configure table relationships
  • Join queries for related data retrieval

Index Management

  • Single/compound index creation
  • Manage via MCP backend_index_manage
  • Essential for query performance optimization

Official Documentation (Live Reference)

For the latest database documentation, use WebFetch:

Comments

Markdown supported