Kovlet
Shared live tables and files across your apps, with no API keys: discover, extend and connect.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"kovlet": {
"command": "npx",
"args": [
"@kovlet/mcp"
]
}
}
}可运行的软件包
0.1.1stdio远程端点
https://api.kovlet.com/mcpstreamable-http它能做什么
工具清单
工具(8)
🟢list_spaces
List the Kovlet Data Spaces this agent can reach, with your effective role on each (viewer can read, editor can also write and add tables/optional columns). Call this first.
输入模式
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢inspect_space_schema(space)
Read a Data Space's live schema: every table with its columns, types, optionality and version, the file paths and folders in the space, and pending schema proposals. Use the exact names it returns in generated code.
输入模式
{
"type": "object",
"properties": {
"space": {
"description": "The Data Space: its id (from list_spaces), slug or exact name.",
"type": "string"
}
},
"required": [
"space"
],
"additionalProperties": false
}🟡create_space(name, slug, tables)
Create a new Data Space owned by the signed-in user, optionally with initial tables. This agent gets editor access to it. Prefer an existing space when one fits (list_spaces).
输入模式
{
"type": "object",
"properties": {
"name": {
"description": "Display name, e.g. \"Finance\".",
"type": "string"
},
"slug": {
"description": "Optional URL slug (lower-case letters, digits, dashes). Defaults to one derived from the name.",
"type": "string"
},
"tables": {
"additionalProperties": {
"additionalProperties": {
"properties": {
"indexed": {
"description": "Queries may compare and order on the column. Not on json columns.",
"type": "boolean"
},
"optional": {
"description": "Nullable/omittable. New columns on existing tables must be optional to apply without approval.",
"type": "boolean"
},
"ref_table": {
"description": "For ref columns: the referenced table.",
"type": "string"
},
"type": {
"enum": [
"string",
"number",
"boolean",
"datetime",
"json",
"ref",
"file_ref"
],
"type": "string"
},
"unique": {
"description": "The server rejects a write that gives two live rows the same non-null value (unique_violation). Not on json columns.",
"type": "boolean"
}
},
"required": [
"type"
],
"type": "object"
},
"type": "object"
},
"description": "Tables by name, each mapping column names to column definitions, e.g. {\"expenses\": {\"vendor\": {\"type\": \"string\"}, \"amount\": {\"type\": \"number\"}, \"note\": {\"type\": \"string\", \"optional\": true}}}. \"id\" is implicit; do not declare it.",
"type": "object"
}
},
"required": [
"name"
],
"additionalProperties": false
}🟡request_space_access(asks)
Get a Kovlet approve link the user opens to share more of their Data Spaces with this agent (or create new ones), without signing the agent in again. Show the returned approve_url to the user, then call list_spaces once they approved. Use it when list_spaces reports not_shared_with_agent or a space you need is missing.
输入模式
{
"type": "object",
"properties": {
"asks": {
"description": "What to ask for (default: one editor space). Each: {\"role\": \"viewer\"|\"editor\", \"space_id\"?: an id you know, \"suggested_name\"?: a name for a new space}.",
"items": {
"additionalProperties": false,
"properties": {
"role": {
"enum": [
"viewer",
"editor"
],
"type": "string"
},
"space_id": {
"type": "string"
},
"suggested_name": {
"type": "string"
}
},
"required": [
"role"
],
"type": "object"
},
"type": "array"
}
},
"additionalProperties": false
}🟡propose_schema_addition(changes, space, tables)
Add tables or columns to a Data Space. New tables and new optional columns apply immediately (editor role). Anything destructive (a new required column, a type change, tightening nullability, renames, drops) is not applied: it becomes a schema proposal that a space owner must approve in the Kovlet console. Pass `tables` (the columns you need; existing identical columns are ignored) or explicit `changes`.
输入模式
{
"type": "object",
"properties": {
"changes": {
"description": "Explicit changes, applied in order: {\"op\": \"create_table\", \"table\", \"columns\"}, {\"op\": \"add_column\", \"table\", \"column\", \"def\"}, or (destructive, become proposals) drop_column, rename_column (new_name), change_type (def), make_required, drop_table, rename_table (new_name), add_unique, drop_unique, drop_index (column). add_index (column) applies at once.",
"items": {
"properties": {
"column": {
"type": "string"
},
"columns": {
"additionalProperties": {
"properties": {
"indexed": {
"description": "Queries may compare and order on the column. Not on json columns.",
"type": "boolean"
},
"optional": {
"description": "Nullable/omittable. New columns on existing tables must be optional to apply without approval.",
"type": "boolean"
},
"ref_table": {
"description": "For ref columns: the referenced table.",
"type": "string"
},
"type": {
"enum": [
"string",
"number",
"boolean",
"datetime",
"json",
"ref",
"file_ref"
],
"type": "string"
},
"unique": {
"description": "The server rejects a write that gives two live rows the same non-null value (unique_violation). Not on json columns.",
"type": "boolean"
}
},
"required": [
"type"
],
"type": "object"
},
"type": "object"
},
"def": {
"properties": {
"indexed": {
"description": "Queries may compare and order on the column. Not on json columns.",
"type": "boolean"
},
"optional": {
"description": "Nullable/omittable. New columns on existing tables must be optional to apply without approval.",
"type": "boolean"
},
"ref_table": {
"description": "For ref columns: the referenced table.",
"type": "string"
},
"type": {
"enum": [
"string",
"number",
"boolean",
"datetime",
"json",
"ref",
"file_ref"
],
"type": "string"
},
"unique": {
"description": "The server rejects a write that gives two live rows the same non-null value (unique_violation). Not on json columns.",
"type": "boolean"
}
},
"required": [
"type"
],
"type": "object"
},
"new_name": {
"type": "string"
},
"op": {
"enum": [
"create_table",
"add_column",
"drop_column",
"rename_column",
"change_type",
"make_required",
"drop_table",
"rename_table",
"add_unique",
"drop_unique",
"add_index",
"drop_index"
],
"type": "string"
},
"table": {
"type": "string"
}
},
"required": [
"op",
"table"
],
"type": "object"
},
"type": "array"
},
"space": {
"description": "The Data Space: its id (from list_spaces), slug or exact name.",
"type": "string"
},
"tables": {
"additionalProperties": {
"additionalProperties": {
"properties": {
"indexed": {
"description": "Queries may compare and order on the column. Not on json columns.",
"type": "boolean"
},
"optional": {
"description": "Nullable/omittable. New columns on existing tables must be optional to apply without approval.",
"type": "boolean"
},
"ref_table": {
"description": "For ref columns: the referenced table.",
"type": "string"
},
"type": {
"enum": [
"string",
"number",
"boolean",
"datetime",
"json",
"ref",
"file_ref"
],
"type": "string"
},
"unique": {
"description": "The server rejects a write that gives two live rows the same non-null value (unique_violation). Not on json columns.",
"type": "boolean"
}
},
"required": [
"type"
],
"type": "object"
},
"type": "object"
},
"description": "Tables by name, each mapping column names to column definitions, e.g. {\"expenses\": {\"vendor\": {\"type\": \"string\"}, \"amount\": {\"type\": \"number\"}, \"note\": {\"type\": \"string\", \"optional\": true}}}. \"id\" is implicit; do not declare it.",
"type": "object"
}
},
"required": [
"space"
],
"additionalProperties": false
}🟡propose_rules(rules, space)
Propose the end-user access rules of a Data Space (the shape of InstantDB's instant.perms.ts, expressions in CEL): per table `bind` and `allow` with view/create/update/delete, plus `_users` (view), `_files` and `_rooms` (join). Nothing changes until a space owner approves the proposal in the Kovlet console (Access → End users → Rules → Proposals; the result has the link), as with POST /v1/spaces/{space}/rules/proposals. The document replaces the current rules as a whole: start from the `rules` that inspect_space_schema returns. Rules bind end users only; members, apps' own sessions and Machine Auth Keys keep their space roles. Closed by default: a table with no view rule is invisible to end users. Guide: <kovletd>/docs/rules.md
输入模式
{
"type": "object",
"properties": {
"rules": {
"description": "The whole rules document, e.g. {\"todos\": {\"bind\": [\"isOwner\", \"auth.id == data.owner\"], \"allow\": {\"view\": \"isOwner\", \"create\": \"auth.id == newData.owner\", \"update\": \"isOwner\", \"delete\": \"isOwner\"}}}. Expressions read auth.id/auth.email/auth.is_guest, data (the stored row), newData (the row after a write), params, and data.ref('link.column'). \"$default\" applies to app tables without an entry.",
"type": "object"
},
"space": {
"description": "The Data Space: its id (from list_spaces), slug or exact name.",
"type": "string"
}
},
"required": [
"space",
"rules"
],
"additionalProperties": false
}🟢list_connected_apps(space)
List the apps (and headless machines) that have access to a Data Space, or to every space this agent can reach when `space` is omitted, with their roles and approval status.
输入模式
{
"type": "object",
"properties": {
"space": {
"description": "The Data Space: its id (from list_spaces), slug or exact name.",
"type": "string"
}
},
"additionalProperties": false
}🟢generate_app_connection(app_name, role, slot, space, tables, ...)
Generate ready-to-use TypeScript that connects a new app to a Data Space with @kovlet/client, typed from the space's live schema: "client" (browser, consent popup), "react" (adds @kovlet/react hooks), or "node" (headless, device-code sign-in, space pinned). Write the returned files into the project.
输入模式
{
"type": "object",
"properties": {
"app_name": {
"description": "The app's name, shown on the consent screen and in the console.",
"type": "string"
},
"role": {
"description": "Access the app asks for. Default: editor if you can write, else viewer.",
"enum": [
"viewer",
"editor"
],
"type": "string"
},
"slot": {
"description": "The logical space name used in code, e.g. \"finance\". Defaults to one derived from the space name.",
"type": "string"
},
"space": {
"description": "The Data Space: its id (from list_spaces), slug or exact name.",
"type": "string"
},
"tables": {
"description": "Only declare these tables. Default: all.",
"items": {
"type": "string"
},
"type": "array"
},
"target": {
"description": "Default \"client\".",
"enum": [
"client",
"react",
"node"
],
"type": "string"
}
},
"required": [
"space",
"app_name"
],
"additionalProperties": false
}社区
证据