дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
Plugin API 1.20 adds wit/database.wit with describe-table behind the database.schema capability: a read-only view of a connected source's table (columns, keys, indexes) through DbManager::connected_table_details. Plugins can contribute database.table.context menu entries (needs_api 20) that receive the non-secret table identity and the when keys databaseDriver, databaseObjectKind, databaseSchema, databaseTable and databaseSelectionCount. Co-authored-by: gejun123456 <[email protected]>
77 рядки
1.4 KiB
TOML
77 рядки
1.4 KiB
TOML
id = "test.data-tools"
|
|
name = "Data tools fixture"
|
|
version = "0.1.0"
|
|
engines.openidea = "^1.20"
|
|
wasm = "dist/plugin.wasm"
|
|
activation = ["on-command:*"]
|
|
[capabilities]
|
|
required = ["project.read"]
|
|
optional = ["database.sources", "database.schema"]
|
|
|
|
[[contributes.commands]]
|
|
id = "upsert"
|
|
title = "upsert"
|
|
|
|
[[contributes.commands]]
|
|
id = "remove"
|
|
title = "remove"
|
|
|
|
[[contributes.commands]]
|
|
id = "sources"
|
|
title = "sources"
|
|
|
|
[[contributes.commands]]
|
|
id = "credential"
|
|
title = "credential"
|
|
|
|
[[contributes.commands]]
|
|
id = "connect"
|
|
title = "connect"
|
|
|
|
[[contributes.commands]]
|
|
id = "stdio"
|
|
title = "stdio"
|
|
|
|
[[contributes.mcpTools]]
|
|
name = "echo"
|
|
description = "Fixture echo"
|
|
inputSchema = "arguments.json"
|
|
readOnly = true
|
|
destructive = false
|
|
|
|
[[contributes.mcpTools]]
|
|
name = "write"
|
|
description = "Fixture write"
|
|
inputSchema = "arguments.json"
|
|
readOnly = false
|
|
destructive = false
|
|
|
|
[[contributes.mcpTools]]
|
|
name = "erase"
|
|
description = "Fixture erase"
|
|
inputSchema = "arguments.json"
|
|
readOnly = false
|
|
destructive = true
|
|
|
|
[[contributes.mcpTools]]
|
|
name = "spin"
|
|
description = "Fixture spin"
|
|
inputSchema = "arguments.json"
|
|
readOnly = true
|
|
destructive = false
|
|
|
|
[[contributes.mcpTools]]
|
|
name = "denied"
|
|
description = "Fixture denied"
|
|
inputSchema = "arguments.json"
|
|
readOnly = true
|
|
destructive = false
|
|
|
|
[[contributes.commands]]
|
|
id = "table-schema"
|
|
title = "Read table schema"
|
|
|
|
[[contributes.menus]]
|
|
menu = "database.table.context"
|
|
command = "table-schema"
|