mcp-server-kilango

mcp-server-kilango

MCP server that wraps Kilango's operator/control API as tools so an AI assistant can build and manage portals in a Kilango workspace — creating/managing portals, pages, blocks, widgets, apps, and connections, with drag-and-drop reordering and a contract-driven escape hatch for any OpenAPI operation.

Category
访问服务器

README

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 (kilango.bos.mcp.borgels.com, kilango.spz…, kilango.one…), exactly like the e-conomic servers in the fleet. Access is gated by the Entra group SG-MCP-kilango-<company> at the borgels MCP gateway; 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.

Tools

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

  • Discoverykilango_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 hatchkilango_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).

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 to copy into ~/mcp on borgels-1 (mirrored in bos-server-config). The image publishes to ghcr.io/borgels/mcp-server-kilango:latest on push to main.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选