Logo Bkend Mcp

Bkend Mcp

Tổ chức
ww-w-ai
bkend-mcp

bkend.ai MCP tools and AI integration expert skill. Covers 28 MCP tools (Fixed 3 + Project 6 + Table 9 + Data CRUD 5 + Env 3 + Schema 2), 4 MCP resources, OAuth 2.1 + PKCE authentication, and AI tool setup for Gemini CLI, Claude Code, and Cursor. Triggers: mcp, ai tool, mcp setup, backend tool, bkend mcp, MCP 설정, MCP 도구, AI 도구, MCP接続, MCP設定, AIツール, MCP连接, MCP设置, AI工具, herramientas MCP, configuracion MCP, outils MCP, configuration MCP, MCP-Werkzeuge, MCP-Einrichtung, strumenti MCP, configurazione MCP Do NOT use for: authentication implementation (use bkend-auth), database queries (use bkend-data), file storage (use bkend-storage)

Tổng quan

Nhà phát hànhww-w-ai
Kho mãbkit-gemini
Tên kỹ năngbkend-mcp
Sao
66
Bản fork
16
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được ww-w-ai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Bkend Mcp trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/ww-w-ai/bkit-gemini/tree/main/skills/bkend-mcp
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ww-w-ai/bkit-gemini.git /tmp/bkit-gemini
mkdir -p .claude/skills
cp -r /tmp/bkit-gemini/skills/bkend-mcp .claude/skills/bkend-mcp
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Bkend Mcp trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Bkend Mcp ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Bkend Mcp với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

bkend-mcp: MCP Tools & AI Integration Expert Skill

1. MCP Overview

The Model Context Protocol (MCP) is an open standard that enables AI models to interact with external tools and data sources through a unified interface. bkend.ai implements MCP to provide AI-powered development workflows.

Protocol Specification

PropertyValue
ProtocolMCP 2025-03-26
TransportStreamable HTTP
AuthenticationOAuth 2.1 + PKCE
Server URLhttps://api.bkend.ai/mcp
Content Typeapplication/json
Session HeaderMcp-Session-Id

How It Works

  1. The AI client (Gemini CLI, Claude Code, Cursor, etc.) connects to the MCP server
  2. The server advertises available tools and resources
  3. The AI model invokes tools on behalf of the user
  4. The server executes operations and returns structured results
  5. OAuth 2.1 + PKCE ensures secure, user-authorized access

2. MCP Tool Catalog (28 Tools)

bkend.ai exposes 28 MCP tools organized into 6 categories. Each tool follows the MCP tool schema with name, description, and inputSchema properties.

2.1 Fixed Tools (3)

These tools are always available regardless of project context.

Tool NameDescriptionParameters
get_contextReturns current session context including org, project, environment, and user infoNone
search_docsSearches bkend.ai documentation by topic or keywordquery (string, required), category (string, optional)
get_operation_schemaReturns the OpenAPI schema for a specific REST API operationoperationId (string, required)

Usage Notes:

  • Always call get_context first to verify your session is properly authenticated
  • Use search_docs to find REST API documentation for Auth and Storage features (no MCP tools available for these)
  • Use get_operation_schema to get detailed request/response schemas for code generation

2.2 Project Management Tools (6)

Tools for managing organizations, projects, and environments.

Tool NameDescriptionParameters
backend_org_listLists all organizations the user belongs toNone
backend_project_listLists all projects in the current organizationorgId (string, required)
backend_project_createCreates a new projectorgId (string, required), name (string, required), description (string, optional)
backend_project_getGets project detailsprojectId (string, required)
backend_env_listLists environments for a projectprojectId (string, required)
backend_env_createCreates a new environment (dev/staging/prod)projectId (string, required), name (string, required), type (enum: dev/staging/prod)

Usage Notes:

  • Start with backend_org_list to get the orgId
  • Then use backend_project_list or backend_project_create to set up project context
  • Each project can have multiple environments with isolated data

2.3 Table Management Tools (9)

Tools for defining and managing database table schemas.

Tool NameDescriptionParameters
backend_table_listLists all tables in the environmentenvId (string, required)
backend_table_createCreates a new table with fieldsenvId (string, required), name (string, required), fields (array, required)
backend_table_getGets table schema detailsenvId (string, required), tableId (string, required)
backend_table_updateUpdates table settingsenvId (string, required), tableId (string, required), settings (object, required)
backend_table_deleteDeletes a table and all its dataenvId (string, required), tableId (string, required)
backend_field_manageAdds, updates, or removes fields on a tableenvId (string, required), tableId (string, required), action (enum: add/update/remove), field (object, required)
backend_index_manageManages indexes on a tableenvId (string, required), tableId (string, required), action (enum: create/delete), index (object, required)
backend_schema_version_listLists schema versions (migration history)envId (string, required), tableId (string, required)
backend_schema_version_getGets a specific schema versionenvId (string, required), tableId (string, required), versionId (string, required)

Field Types:

  • string, number, boolean, date, datetime
  • text (long text), richtext (HTML content)
  • email, url, phone
  • enum (with options array)
  • relation (with targetTable and relationType)
  • file (stored in bkend Storage)
  • json (arbitrary JSON object)

2.4 Data CRUD Tools (5)

Tools for creating, reading, updating, and deleting records in tables.

Tool NameDescriptionParameters
backend_data_listLists records with filtering and pagingenvId (string, required), tableId (string, required), filter (object, optional), sort (object, optional), page (number, optional), limit (number, optional)
backend_data_getGets a single record by IDenvId (string, required), tableId (string, required), recordId (string, required)
backend_data_createCreates a new recordenvId (string, required), tableId (string, required), data (object, required)
backend_data_updateUpdates an existing recordenvId (string, required), tableId (string, required), recordId (string, required), data (object, required)
backend_data_deleteDeletes a recordenvId (string, required), tableId (string, required), recordId (string, required)

Filter Syntax:

json
{
  "filter": {
    "field": "status",
    "operator": "eq",
    "value": "active"
  }
}

Supported Operators: eq, ne, gt, gte, lt, lte, in, nin, contains, startsWith, endsWith, exists

Sort Syntax:

json
{
  "sort": {
    "field": "createdAt",
    "order": "desc"
  }
}

2.5 Environment Tools (3)

Included in Project Management above: backend_env_list, backend_env_create, plus:

Tool NameDescriptionParameters
backend_env_getGets environment details and configurationenvId (string, required)

2.6 Schema Tools (2)

Included in Table Management above: backend_schema_version_list, backend_schema_version_get.

These tools provide migration history and rollback capabilities for table schemas.


3. MCP Resources (4)

MCP resources provide read-only contextual data that AI models can access without explicit tool calls.

Resource URIDescriptionMIME Type
bkend://contextCurrent session context (org, project, env)application/json
bkend://tablesList of all tables in the current environmentapplication/json
bkend://schema/{table}Full schema definition for a specific tableapplication/json
bkend://docs/{topic}Documentation content for a specific topictext/markdown

Resource Usage:

  • Resources are automatically available to AI models that support MCP resource reading
  • Use bkend://context to understand the current working environment
  • Use bkend://tables to discover available data structures
  • Use bkend://schema/{table} to get detailed field definitions before data operations
  • Use bkend://docs/{topic} to retrieve documentation (topics: auth, storage, rls, api-keys, webhooks)

4. Auth & Storage MCP Limitation

Important: bkend.ai does NOT provide MCP tools for Authentication or Storage operations. These features are accessible only through the REST API.

Why No MCP Tools?

  • Authentication operations (signup, login, token management) involve sensitive credentials and security flows that are better handled through direct REST API calls with proper error handling
  • Storage operations (file upload, download, signed URLs) require binary data transfer that is not well-suited for the MCP tool protocol

Recommended Workflow

  1. Use search_docs to find the relevant REST API documentation:
    search_docs("authentication signup")
    search_docs("storage file upload")
  2. Use get_operation_schema to get the detailed OpenAPI schema:
    get_operation_schema("auth-signup")
    get_operation_schema("storage-upload")
  3. Generate REST API client code based on the retrieved documentation and schemas
  4. Use the generated code in your application to call the REST API directly

Auth REST API Endpoints (Reference)

EndpointMethodDescription
/auth/signupPOSTRegister a new user
/auth/loginPOSTLogin with credentials
/auth/logoutPOSTInvalidate session
/auth/refreshPOSTRefresh access token
/auth/meGETGet current user profile
/auth/password/resetPOSTRequest password reset
/auth/password/changePOSTChange password

Storage REST API Endpoints (Reference)

EndpointMethodDescription
/storage/uploadPOSTUpload a file
/storage/download/{fileId}GETDownload a file
/storage/listGETList files in a bucket
/storage/delete/{fileId}DELETEDelete a file
/storage/signed-urlPOSTGenerate a signed URL

5. AI Tool Setup

5.1 Gemini CLI

Create or edit .gemini/settings.json in your project root:

json
{
  "mcpServers": {
    "bkend": {
      "httpUrl": "https://api.bkend.ai/mcp"
    }
  }
}

Verification:

bash
gemini --mcp-list

The first time you invoke a bkend tool, Gemini CLI will open your browser for OAuth authentication.

5.2 Claude Code

Create or edit .mcp.json in your project root:

json
{
  "mcpServers": {
    "bkend": {
      "type": "streamable-http",
      "url": "https://api.bkend.ai/mcp"
    }
  }
}

Verification:

bash
claude mcp list

Claude Code will automatically handle OAuth 2.1 + PKCE authentication when tools are first invoked.

5.3 Cursor

  1. Open Settings (Cmd/Ctrl + ,)
  2. Navigate to MCP section
  3. Click Add Server
  4. Configure:
    • Name: bkend
    • Type: HTTP
    • URL: https://api.bkend.ai/mcp
  5. Click Save

Cursor will prompt for OAuth authentication when MCP tools are first used.

5.4 Windsurf

Create or edit .windsurfrules or use the MCP configuration in settings:

json
{
  "mcpServers": {
    "bkend": {
      "serverUrl": "https://api.bkend.ai/mcp",
      "transport": "streamable-http"
    }
  }
}

5.5 VS Code (GitHub Copilot)

Add to .vscode/settings.json:

json
{
  "github.copilot.chat.mcpServers": {
    "bkend": {
      "type": "http",
      "url": "https://api.bkend.ai/mcp"
    }
  }
}

5.6 Other Editors

Any MCP-compatible editor can connect to bkend.ai using:

  • Transport: Streamable HTTP
  • URL: https://api.bkend.ai/mcp
  • Auth: OAuth 2.1 + PKCE (handled automatically by most clients)

6. OAuth 2.1 + PKCE Authentication Flow

Flow Overview

AI Client                    bkend.ai Auth Server              User Browser
   |                                |                               |
   |-- 1. Generate code_verifier -->|                               |
   |-- 2. Compute code_challenge -->|                               |
   |                                |                               |
   |-- 3. GET /oauth/authorize ---->|                               |
   |      ?client_id=...           |                               |
   |      &code_challenge=...      |                               |
   |      &code_challenge_method=S256                               |
   |      &redirect_uri=...        |                               |
   |      &response_type=code      |                               |
   |      &scope=mcp               |                               |
   |                                |-- 4. Show login page -------->|
   |                                |<-- 5. User authenticates -----|
   |                                |                               |
   |<-- 6. Redirect with auth code -|                               |
   |      ?code=AUTH_CODE           |                               |
   |                                |                               |
   |-- 7. POST /oauth/token ------->|                               |
   |      grant_type=authorization_code                             |
   |      code=AUTH_CODE            |                               |
   |      code_verifier=...         |                               |
   |                                |                               |
   |<-- 8. Access + Refresh tokens -|                               |
   |                                |                               |
   |-- 9. MCP requests with ------->|                               |
   |      Authorization: Bearer ... |                               |

Token Lifecycle

TokenLifetimeStorageRefresh Method
Access Token1 hourIn-memory (client)Exchange refresh token
Refresh Token30 daysSecure storageRe-authenticate

Token Refresh

When the access token expires, the MCP client automatically:

  1. Sends a POST /oauth/token request with grant_type=refresh_token
  2. Includes the refresh token in the request body
  3. Receives a new access token (and optionally a new refresh token)
  4. Retries the failed MCP request with the new access token

7. MCP Best Practices

7.1 Session Initialization

Always start by verifying your session context:

1. Call get_context -> verify org, project, and environment
2. Call backend_table_list -> understand available data structures
3. Proceed with specific operations

7.2 Schema-First Development

Create tables and define schemas via MCP before performing data operations:

1. backend_table_create -> define table with fields
2. backend_field_manage -> add/modify fields as needed
3. backend_index_manage -> create indexes for query performance
4. backend_data_create -> insert records

7.3 Documentation-Driven Code Generation

For Auth and Storage features (no MCP tools), use documentation tools:

1. search_docs("authentication login flow") -> get documentation
2. get_operation_schema("auth-login") -> get OpenAPI schema
3. Generate client code based on the schema

7.4 Environment Awareness

  • Always confirm which environment (dev/staging/prod) you are working in before making changes
  • Use get_context to verify the active environment
  • Create separate environments for development and production workflows

7.5 Batch Operations

  • Use filtering and pagination with backend_data_list for large datasets
  • Set appropriate limit values (default: 20, max: 100) to avoid excessive data transfer
  • Use sort to control the order of returned records

8. Common MCP Errors and Solutions

Connection Errors

ErrorCauseSolution
401 UnauthorizedExpired or missing access tokenRe-authenticate via OAuth flow
403 ForbiddenInsufficient permissions or RLSCheck API key type and RLS policies
404 Not FoundInvalid endpoint or resource IDVerify server URL and resource IDs
429 Too Many RequestsRate limit exceededWait and retry with exponential backoff
500 Internal Server ErrorServer-side issueRetry after a brief delay

Tool Invocation Errors

ErrorCauseSolution
tool_not_foundTool name is incorrectCheck tool catalog for exact names
invalid_paramsMissing or invalid parametersReview tool parameter requirements
env_not_setNo environment selectedCall get_context and set environment
table_not_foundTable does not existUse backend_table_list to verify
field_type_mismatchData type does not match schemaCheck field types with backend_table_get

Authentication Errors

ErrorCauseSolution
oauth_pkce_mismatchCode verifier does not matchRegenerate code_verifier and retry
oauth_code_expiredAuthorization code expiredRestart OAuth flow from the beginning
oauth_redirect_mismatchRedirect URI does not matchVerify redirect_uri matches registered value
refresh_token_expiredRefresh token (30d) expiredFull re-authentication required

Quick Reference Card

Essential Tool Sequence

get_context                          # 1. Verify session
backend_org_list                     # 2. List organizations
backend_project_list(orgId)          # 3. List projects
backend_table_list(envId)            # 4. List tables
backend_data_list(envId, tableId)    # 5. Query data

MCP Server Connection

URL:       https://api.bkend.ai/mcp
Transport: Streamable HTTP
Auth:      OAuth 2.1 + PKCE

Tool Count Summary

CategoryCountTools
Fixed3get_context, search_docs, get_operation_schema
Project Management6org_list, project_list/create/get, env_list/create
Table Management9table CRUD (5), field_manage, index_manage, schema_version (2)
Data CRUD5data_list/get/create/update/delete
Environment3env_list/create/get
Schema2schema_version_list/get
Total28

Câu hỏi thường gặp

Kỹ năng AI Bkend Mcp làm được gì?

bkend.ai MCP tools and AI integration expert skill. Covers 28 MCP tools (Fixed 3 + Project 6 + Table 9 + Data CRUD 5 + Env 3 + Schema 2), 4 MCP resources, OAuth 2.1 + PKCE authentication, and AI tool setup for Gemini CLI, Claude Code, and Cursor. Triggers: mcp, ai tool, mcp setup, backend tool, bkend mcp, MCP 설정, MCP 도구, AI 도구, MCP接続, MCP設定, AIツール, MCP连接, MCP设置, AI工具, herramientas MCP, configuracion MCP, outils MCP, configuration MCP, MCP-Werkzeuge, MCP-Einrichtung, strumenti MCP, configurazione MCP Do NOT use for: authentication implementation (use bkend-auth), database queries (use bkend-...

Vì sao nên dùng Bkend Mcp trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Bkend Mcp là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Bkend Mcp trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/ww-w-ai/bkit-gemini/tree/main/skills/bkend-mcp. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Bkend Mcp?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Bkend Mcp với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Bkend Mcp với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Bkend Mcp có miễn phí không?

Có. Kỹ năng này được ww-w-ai phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇