Skip to main content
Glama
mcp-server-kilango
by borgels

mcp-server-kilango

Operator MCP server for Kilango. It wraps Kilango's operator/control API (/v1 on the gateway) as MCP tools so an AI assistant can build and manage portals in a Kilango workspace: create/manage portals, pages, blocks and app widgets (including drag-and-drop reordering), install apps, and connect them to their backend systems.

Portal end-users only ever see widgets — Kilango holds the broad backend access. This server operates the studio/operator plane on the operator's behalf.

Auth & tenancy model

One host maps to one company's Kilango workspace (e.g. kilango.<company>.mcp.example.com). Access is gated by an Entra security group at an authenticating MCP gateway in front; the gateway forwards the verified user as X-MCP-User (recorded in the audit log). The server authenticates to Kilango with a single shared, workspace-bound API key (KILANGO_API_KEY, a hub_live_… key that self-scopes to that one workspace). Mint an ADMIN write key so full portal building (incl. deletes/publish) works. The key's own role/scopes are the real capability boundary — Kilango enforces them server-side.

Related MCP server: Taskade MCP Server

Tools

Hybrid surface — curated golden-path tools plus a contract-driven escape hatch:

  • Discovery — kilango_get_workspace, kilango_get_meta, kilango_get_vocabulary, kilango_search_operations, kilango_describe_operation.

  • Portals — list/get/create/update, readiness, publish/unpublish/archive, preview, get/save navigation, delete.

  • Pages & blocks — list/get pages, get blocks, create/update/delete page, save layout, add/update/delete content block, kilango_place_widget, kilango_update_widget, kilango_delete_widget, and drag-and-drop: kilango_move_block / kilango_reorder_blocks.

  • Apps — catalog list/get, connectors, installations list/get, install/uninstall, list/activate/deactivate per portal, and kilango_connect_app (see below).

  • Connections — list/get/health-check/delete.

  • Escape hatch — kilango_call_operation(operationId, {path, query, body}) covers every operation in /v1/openapi.json not wrapped by a curated tool.

Whole-document writes (save layout, save navigation, reorder blocks) require an If-Match ETag; the client fetches and sends it automatically and retries once on a 412.

Connecting apps

kilango_connect_app(appKey, portalRef?):

  • No credentials (native/scaffold apps) → installs (and activates if a portal is given).

  • API-key apps (fynk, pipedrive, dalux, …) → returns a one-time browser URL (/kilango/connect-app) where the operator enters the secret. It goes straight to Kilango's encrypted vault via save_connection — never through the chat, never persisted or logged here. Then the app is installed, connected, activated (if a portal was given), and health-checked.

  • OAuth apps (e.g. SharePoint) → returns a clear "not supported yet" message. Kilango's OAuth connect flow is a planned fast-follow (it currently returns 501 oauth_flow_not_implemented); once it ships, this tool switches to the redirect flow.

Configuration

See .env.example. Key vars: KILANGO_API_BASE_URL, KILANGO_PUBLIC_BASE_URL, KILANGO_API_KEY, KILANGO_ENABLE_WRITES (coarse kill-switch), KILANGO_AUDIT_LOG, MCP_HTTP_TOKEN (protects the loopback /mcp).

Security notes:

  • MCP_HTTP_TOKEN is compared in constant time. With KILANGO_TRUST_FORWARDED_USER=true the HTTP server refuses to start unless MCP_HTTP_TOKEN is set.

  • Every non-GET operation in the OpenAPI contract counts as a write for KILANGO_ENABLE_WRITES; x-hub-write: true can additionally mark a GET as a write, but x-hub-write: false no longer downgrades a mutating method.

  • Caller-supplied path values (portal/page/app/provider refs, operation path params) are rejected if they are empty, ./.., or contain /, \, ?, # or encoded dots/slashes.

  • kilango_check_connection_health stays available when writes are disabled (it only re-verifies stored credentials); the same POST via kilango_call_operation is gated.

Develop

npm install
npm run typecheck
npm test
npm run dev        # stdio transport
npm run dev:http   # HTTP transport on :3000

Live smoke test against a real (dev) Kilango gateway — also cross-checks the curated tool paths against the live /v1/openapi.json:

KILANGO_API_BASE_URL=https://<dev-gateway> KILANGO_API_KEY=hub_test_... npm run smoke:live

Deploy

See deploy/ for the docker-compose service block, hosts.json entries, Caddy site blocks, and example env files. The image publishes to ghcr.io/borgels/mcp-server-kilango:latest on push to main.

Available Tools

48 tools
kilango_activate_app_in_portalActivate App in PortalB

Activate an installed app in a portal (precondition for placing its widgets). Optional per-portal config.

Inputs: appKey (required), portalRef (required), config, dryRun.

kilango_add_content_blockAdd Content BlockA

Add a Hub-native content block (e.g. Heading, RichText, WidgetGrid) to a page at an optional position (at most one of index/before/after).

Inputs: type (required), pageRef (required), portalRef (required), props, +2 more.

kilango_archive_portalArchive Portal (ADMIN)C
Destructive

Archive a portal. Requires an ADMIN key.

Inputs: portalRef (required), dryRun.

kilango_call_operationCall Kilango OperationA

Escape hatch: call any operator API operation by its operationId (discover ids with kilango_search_operations / kilango_describe_operation). Provide path params, query, and body separately. If-Match operations fetch and send the current ETag automatically. Mutating calls are gated by KILANGO_ENABLE_WRITES and by the API key's own scopes.

Inputs: operationId (required), body, path, query, +2 more.

kilango_check_connection_healthCheck Connection HealthC
Read-only

Verify a connection's credentials against the source system.

Inputs: provider (required).

kilango_connect_appConnect AppA

Install and connect an app to its backend. For apps that need credentials (API key), returns a one-time browser URL where the operator enters the secrets — they go straight to Kilango's vault, never through this chat. Apps without credentials are installed (and activated if a portal is given) immediately. OAuth apps are not connectable yet.

Inputs: appKey (required), portalRef.

kilango_create_pageCreate PageA

Create a page in a portal. sortOrder controls page order in navigation. Layout is added separately with kilango_save_page_layout / kilango_add_content_block.

Inputs: slug (required), title (required), portalRef (required), dryRun, +2 more.

kilango_create_portalCreate PortalA

Create a portal in a brand. With seedHomePage (default true) it gets an "overblik" page + a navigation entry and starts as DRAFT with a preview token. Slug is not editable after creation.

Inputs: kind (required), name (required), brandId (required), slug, +3 more.

kilango_deactivate_app_in_portalDeactivate App in PortalC
Destructive

Deactivate an app in a portal. Cascades widget removal within that portal.

Inputs: appKey (required), portalRef (required), dryRun.

kilango_delete_connectionDelete ConnectionA
Destructive

Remove a backend connection (drops the stored secret from Kilango's vault).

Inputs: provider (required), dryRun.

kilango_delete_content_blockDelete Content BlockB
Destructive

Remove a block from a page.

Inputs: blockId (required), pageRef (required), portalRef (required), dryRun.

kilango_delete_pageDelete Page (ADMIN)B
Destructive

Delete a page. Requires an ADMIN key.

Inputs: pageRef (required), portalRef (required), dryRun.

kilango_delete_portalDelete Portal (ADMIN)A
Destructive

Delete a portal. Requires an ADMIN key. Refuses if it has pages or accesses unless force=true.

Inputs: portalRef (required), force, dryRun.

kilango_delete_widgetDelete App WidgetC
Destructive

Remove an app-widget block from a page.

Inputs: blockId (required), pageRef (required), portalRef (required), dryRun.

kilango_describe_operationDescribe Kilango OperationA
Read-onlyIdempotent

Return the method, path, path/query params, whether it needs If-Match, and whether it is a write for a given operationId. Use before kilango_call_operation.

Inputs: operationId (required).

kilango_get_app_installationGet App InstallationB
Read-onlyIdempotent

Return the installation record (pinned manifest version, config, status) for one app.

Inputs: appKey (required).

kilango_get_catalog_appGet Catalog AppA
Read-onlyIdempotent

Return one app manifest: appClass, authMode (apikey/oauth), the connectionFields a human must supply, and its widgets (widgetKey + renderRole).

Inputs: appKey (required).

kilango_get_connectionGet ConnectionA
Read-onlyIdempotent

Return the connection for one provider (status/health, never the secret).

Inputs: provider (required).

kilango_get_metaGet Kilango MetaA
Read-onlyIdempotent

Return server/tenant metadata for the connected workspace.

Inputs: no named parameters.

kilango_get_pageGet PageB
Read-onlyIdempotent

Fetch one page (by slug or id) including its layout.

Inputs: pageRef (required), portalRef (required).

kilango_get_page_blocksGet Page BlocksB
Read-onlyIdempotent

Return the ordered blocks of a page. Each block has a stable blockId; app-widget blocks carry a widgetInstanceId.

Inputs: pageRef (required), portalRef (required).

kilango_get_portalGet PortalA
Read-onlyIdempotent

Fetch one portal by uuid or slug. Returns counts, domains, urls, navigation, theme overrides, and the navigation ETag.

Inputs: portalRef (required).

kilango_get_portal_navigationGet Portal NavigationB
Read-onlyIdempotent

Return the portal navigation tree { navigation, etag }. The etag is needed to save navigation.

Inputs: portalRef (required).

kilango_get_portal_previewGet Portal PreviewB
Read-onlyIdempotent

Return { previewUrl, token } for previewing a DRAFT portal.

Inputs: portalRef (required).

kilango_get_portal_readinessGet Portal ReadinessA
Read-onlyIdempotent

Return { ready, blockers[], warnings[] } for a portal. Each problem carries a code and whether it is overridable. Check before publishing.

Inputs: portalRef (required).

kilango_get_vocabularyGet Kilango VocabularyA
Read-onlyIdempotent

Return tenant data to fill argument values: brands, portals, personas, installed apps (with their widget keys), and connected providers. Use this to discover valid ids before creating or editing.

Inputs: no named parameters.

kilango_get_workspaceGet Kilango WorkspaceA
Read-onlyIdempotent

Return the workspace this connector is bound to, plus the key role/scopes. Call this first to confirm which workspace and what capability (read vs write, ADMIN) you have.

Inputs: no named parameters.

kilango_install_appInstall AppA

Install an app into the workspace (idempotent; pins the manifest version). Installing does NOT make it visible — activate it per portal with kilango_activate_app_in_portal. For apps that need credentials, use kilango_connect_app instead.

Inputs: appKey (required), dryRun.

kilango_list_app_installationsList App InstallationsA
Read-onlyIdempotent

List apps installed in the workspace.

Inputs: no named parameters.

kilango_list_catalog_appsList Catalog AppsA
Read-onlyIdempotent

List installable apps with their manifests (appClass, authMode, connectionFields, widgets).

Inputs: no named parameters.

kilango_list_connectionsList ConnectionsA
Read-onlyIdempotent

List the workspace's backend connections (one per provider). Secrets are never returned.

Inputs: no named parameters.

kilango_list_connectorsList ConnectorsC
Read-onlyIdempotent

List providers and their scope capabilities.

Inputs: no named parameters.

kilango_list_pagesList PagesA
Read-onlyIdempotent

List the pages of a portal, ordered by sortOrder.

Inputs: portalRef (required).

kilango_list_portal_appsList Portal AppsA
Read-onlyIdempotent

List which installed apps are activated in a given portal.

Inputs: portalRef (required).

kilango_list_portalsList PortalsA
Read-onlyIdempotent

List portals in the workspace. Optional filters: kind, status, brandId, q (free text). Paged with cursor.

Inputs: q, kind, cursor, status, +1 more.

kilango_move_blockMove Block (drag-and-drop)A

Move one block to a new position (index, or before/after another blockId). Fetches the current order, computes the complete permutation, and calls reorder with If-Match. Position within a render tier follows the widget renderRole, so the visual result may differ from the array index — read the rendering note.

Inputs: blockId (required), pageRef (required), position (required), portalRef (required).

kilango_place_widgetPlace App WidgetA

Place an app widget on a page. The app must be installed AND activated in the portal first (otherwise the app_not_activated_in_portal error names the fixing call). Visual position follows the widget's renderRole tier — read the returned rendering note; index 0 is not necessarily top of page.

Inputs: appKey (required), pageRef (required), portalRef (required), widgetKey (required), +3 more.

kilango_publish_portalPublish PortalA

Publish a portal (idempotent). Pass force=true to publish despite overridable readiness blockers.

Inputs: portalRef (required), force, dryRun.

kilango_reorder_blocksReorder BlocksA

Set the full block order on a page. order must be a complete permutation of every existing blockId (no adds/drops). Sent to reorder with If-Match.

Inputs: order (required), pageRef (required), portalRef (required).

kilango_save_page_layoutSave Page LayoutA

Replace the whole page layout (a Puck payload { root, content: [...] }). Whole-document write: the current ETag is fetched and sent as If-Match automatically. Preserve each app-widget block's widgetInstanceId verbatim, or the widget row is recreated.

Inputs: layout (required), pageRef (required), portalRef (required), dryRun.

kilango_save_portal_navigationSave Portal NavigationA

Replace the portal navigation tree (whole-document write). Each entry is { pageSlug, label, icon? }. The current ETag is fetched and sent as If-Match automatically; a concurrent change makes it retry once.

Inputs: portalRef (required), navigation (required), dryRun.

kilango_search_operationsSearch Kilango OperationsA
Read-onlyIdempotent

Search the full operator API contract (from /v1/openapi.json) for operations not covered by a curated tool. Returns operationIds usable with kilango_call_operation.

Inputs: limit, query.

kilango_uninstall_appUninstall App (ADMIN)A
Destructive

Uninstall an app from the workspace. Requires an ADMIN key. Cascades: removes its widgets from all pages.

Inputs: appKey (required), dryRun.

kilango_unpublish_portalUnpublish PortalB

Take a portal offline (back to DRAFT).

Inputs: portalRef (required), dryRun.

kilango_update_content_blockUpdate Content BlockC

Update a content block's props and/or move it (position). Position is at most one of index/before/after.

Inputs: blockId (required), pageRef (required), portalRef (required), props, +2 more.

kilango_update_pageUpdate PageC

Update a page (title / sortOrder / visibility).

Inputs: pageRef (required), portalRef (required), title, dryRun, +2 more.

kilango_update_portalUpdate PortalC

Update a portal (name / kind / defaultPersonaId). Slug cannot be changed.

Inputs: portalRef (required), kind, name, dryRun, +1 more.

kilango_update_widgetUpdate App WidgetB

Update an app-widget block's config and/or position.

Inputs: blockId (required), pageRef (required), portalRef (required), config, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 48 tools

    Disambiguation4/5

    Most tools follow a clear resource+action pattern (portal, page, block, app, widget, connection), making them distinguishable. Some minor overlap exists: kilango_add_content_block vs kilango_place_widget both add items to a page, and kilango_move_block vs kilango_update_content_block/kilango_update_widget vs kilango_reorder_blocks all deal with positioning/moving elements. The descriptions do help disambiguate these cases, but an agent could misselect between move/reorder/update-position tools.

    Naming Consistency5/5

    All 48 tools follow a consistent `kilango_` prefix with verb_noun naming: list/get/create/update/delete/archive/publish/unpublish/save/add/place/activate/deactivate/install/uninstall/connect each pair with a clear object (portal, page, block, widget, app, connection). The pattern holds uniformly across all tools, making the naming predictable.

    Tool Count4/5

    48 tools is on the larger side, but the domain is genuinely broad — portal management, page building, widget placement, app lifecycle, connection management, and an escape hatch. Each tool covers a fairly distinct operation. However, there are many overlapping position/move tools (move_block, reorder_blocks, update_content_block, update_widget) that could arguably be consolidated, and the count feels slightly heavy.

    Completeness5/5

    The tool surface is remarkably complete for the domain: full portal lifecycle (create, update, get, list, publish, unpublish, archive, delete, preview, readiness), page CRUD with fine-grained block/widget operations, app catalog and installation/activation lifecycle, connection management, vocabulary discovery, navigation editing with ETag handling, and an escape-hatch call_operation for anything not covered. There are no obvious dead ends — even readiness blockers and force-publish edge cases are handled.

    Related MCP Connectors

    Related MCP Servers