nocodb-mcp-server
Version:
Model Context Protocol server for nocodb
53 lines (52 loc) • 1.7 kB
JavaScript
import { patchRecords } from "./start.js";
// bun run src/dev.ts
export async function start() {
try {
console.log("start");
// await alterTableAddColumn("Shinobi", "Age", "Number");
// const tableId = await getTableId("Shinobi");
// console.log("tableId")
// console.log(tableId);
// const tableMetadata = await getTableMetadata(tableId);
// console.log("tableMetadata")
// console.log(tableMetadata);
// const columnId = "c7uo2ruwc053a3a"
// await alterTableRemoveColumn(columnId)
// await createTable("Shinobi102", [
// {
// title: "Name",
// uidt: "SingleLineText"
// },
// {
// title: "Age",
// uidt: "Number"
// },
// {
// title: "isHokage",
// uidt: "Checkbox"
// },
// {
// title: "Birthday",
// uidt: "DateTime"
// }
// ]
// )
// {
// `data`: `{shinobiName: \"Naruto Uzumaki III\"}`,
// `rowId`: 1,
// `tableName`: `Hokage-1`
// }
// `data`: `{\"shinobiName\": \"Naruto Uzumaki II\"}`,
const response = await patchRecords("Hokage-1", 1, {
// shinobiName: "Naruto Uzumaki III"
"shinobiName": "Naruto Uzumaki III"
});
console.log("response");
console.log(response);
console.log("end");
}
catch (e) {
console.log("debug-dev: e,", e);
}
}
start();