Logo: Bkend Mcp

Bkend Mcp

Organisatioun
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)

Iwwersiicht

Editeurww-w-ai
Repositorybkit-gemini
Skill-Nummbkend-mcp
Stären
66
Forks
16
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    ww-w-ai huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Bkend Mcp an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/ww-w-ai/bkit-gemini/tree/main/skills/bkend-mcp
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Bkend Mcp an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Bkend Mcp automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Bkend Mcp net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Heefeg gestallte Froen

Wat mécht de KI-Skill 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-...

Firwat Bkend Mcp op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Bkend Mcp besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Bkend Mcp an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/ww-w-ai/bkit-gemini/tree/main/skills/bkend-mcp an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Bkend Mcp benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Bkend Mcp benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Bkend Mcp domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Bkend Mcp gratis?

Jo. ww-w-ai huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇