@centia-io/mcp-server 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/centia-api.json +116 -102
  2. package/package.json +1 -1
package/centia-api.json CHANGED
@@ -79,7 +79,7 @@
79
79
  "tags": [
80
80
  "Clients"
81
81
  ],
82
- "description": "Get client",
82
+ "description": "Get OAuth client(s).",
83
83
  "operationId": "getClient",
84
84
  "parameters": [
85
85
  {
@@ -124,7 +124,7 @@
124
124
  "tags": [
125
125
  "Clients"
126
126
  ],
127
- "description": "Delete client",
127
+ "description": "Delete OAuth client(s).",
128
128
  "operationId": "deleteClient",
129
129
  "parameters": [
130
130
  {
@@ -148,7 +148,7 @@
148
148
  "tags": [
149
149
  "Clients"
150
150
  ],
151
- "description": "Update client",
151
+ "description": "Update existing OAuth client(s).",
152
152
  "operationId": "patchClient",
153
153
  "parameters": [
154
154
  {
@@ -188,7 +188,7 @@
188
188
  "tags": [
189
189
  "Clients"
190
190
  ],
191
- "description": "Create a new client OAuth client",
191
+ "description": "Create new OAuth client(s).",
192
192
  "operationId": "postClient",
193
193
  "requestBody": {
194
194
  "description": "New client",
@@ -322,7 +322,7 @@
322
322
  "tags": [
323
323
  "Schema"
324
324
  ],
325
- "description": "Create new column(s)",
325
+ "description": "Create new column(s).",
326
326
  "operationId": "postColumn",
327
327
  "parameters": [
328
328
  {
@@ -369,7 +369,7 @@
369
369
  "tags": [
370
370
  "Schema"
371
371
  ],
372
- "description": "Update column(s)",
372
+ "description": "Update existing column(s)",
373
373
  "operationId": "patchColumn",
374
374
  "parameters": [
375
375
  {
@@ -451,7 +451,7 @@
451
451
  "tags": [
452
452
  "Schema"
453
453
  ],
454
- "description": "Get constraints",
454
+ "description": "Get constraint(s).",
455
455
  "operationId": "getConstraint",
456
456
  "parameters": [
457
457
  {
@@ -492,12 +492,12 @@
492
492
  }
493
493
  }
494
494
  },
495
- "post": {
495
+ "delete": {
496
496
  "tags": [
497
497
  "Schema"
498
498
  ],
499
- "description": "Get constraints",
500
- "operationId": "postConstraint",
499
+ "description": "Delete constraint(s)",
500
+ "operationId": "deleteConstraint",
501
501
  "parameters": [
502
502
  {
503
503
  "name": "schema",
@@ -512,31 +512,32 @@
512
512
  "description": "Table name",
513
513
  "required": true,
514
514
  "example": "my_table"
515
+ },
516
+ {
517
+ "name": "constraint",
518
+ "in": "path",
519
+ "description": "Constraint name(s)",
520
+ "required": true,
521
+ "example": "my_constraint"
515
522
  }
516
523
  ],
517
- "requestBody": {
518
- "description": "New constraint",
519
- "required": true,
520
- "content": {
521
- "application/json": {
522
- "schema": {
523
- "$ref": "#/components/schemas/Constraint"
524
- }
525
- }
526
- }
527
- },
528
524
  "responses": {
529
- "201": {
530
- "description": "Created"
525
+ "204": {
526
+ "description": "Column deleted"
527
+ },
528
+ "404": {
529
+ "description": "Not found"
531
530
  }
532
531
  }
533
- },
534
- "delete": {
532
+ }
533
+ },
534
+ "/api/v4/schemas/{schema}/tables/{table}/constraints": {
535
+ "post": {
535
536
  "tags": [
536
537
  "Schema"
537
538
  ],
538
- "description": "Get constraint",
539
- "operationId": "deleteConstraint",
539
+ "description": "Create constraint(s).",
540
+ "operationId": "postConstraint",
540
541
  "parameters": [
541
542
  {
542
543
  "name": "schema",
@@ -551,21 +552,22 @@
551
552
  "description": "Table name",
552
553
  "required": true,
553
554
  "example": "my_table"
554
- },
555
- {
556
- "name": "constraint",
557
- "in": "path",
558
- "description": "Constraint name(s)",
559
- "required": true,
560
- "example": "my_constraint"
561
555
  }
562
556
  ],
557
+ "requestBody": {
558
+ "description": "New constraint",
559
+ "required": true,
560
+ "content": {
561
+ "application/json": {
562
+ "schema": {
563
+ "$ref": "#/components/schemas/Constraint"
564
+ }
565
+ }
566
+ }
567
+ },
563
568
  "responses": {
564
- "204": {
565
- "description": "Column deleted"
566
- },
567
- "404": {
568
- "description": "Not found"
569
+ "201": {
570
+ "description": "Created"
569
571
  }
570
572
  }
571
573
  }
@@ -633,7 +635,7 @@
633
635
  "tags": [
634
636
  "Rules"
635
637
  ],
636
- "description": "Get rule(s)",
638
+ "description": "Get rule(s).",
637
639
  "operationId": "getRule",
638
640
  "parameters": [
639
641
  {
@@ -664,7 +666,7 @@
664
666
  "tags": [
665
667
  "Rules"
666
668
  ],
667
- "description": "Delete rule(s)",
669
+ "description": "Delete rule(s).",
668
670
  "operationId": "deleteRule",
669
671
  "parameters": [
670
672
  {
@@ -688,7 +690,7 @@
688
690
  "tags": [
689
691
  "Rules"
690
692
  ],
691
- "description": "Update rule(s)",
693
+ "description": "Update existing rule(s).",
692
694
  "operationId": "patchRule",
693
695
  "parameters": [
694
696
  {
@@ -728,7 +730,7 @@
728
730
  "tags": [
729
731
  "Rules"
730
732
  ],
731
- "description": "Create rule(s)",
733
+ "description": "Create rule(s).",
732
734
  "operationId": "postRule",
733
735
  "requestBody": {
734
736
  "description": "New rule",
@@ -800,7 +802,7 @@
800
802
  "tags": [
801
803
  "Schema"
802
804
  ],
803
- "description": "Get index(s)",
805
+ "description": "Get index(s).",
804
806
  "operationId": "getIndex",
805
807
  "parameters": [
806
808
  {
@@ -905,7 +907,7 @@
905
907
  "tags": [
906
908
  "Schema"
907
909
  ],
908
- "description": "Create index(s)",
910
+ "description": "Create index(s).",
909
911
  "operationId": "postIndex",
910
912
  "parameters": [
911
913
  {
@@ -1156,7 +1158,7 @@
1156
1158
  "tags": [
1157
1159
  "Privileges"
1158
1160
  ],
1159
- "description": "Get privileges",
1161
+ "description": "Get privileges.",
1160
1162
  "operationId": "getPrivileges",
1161
1163
  "parameters": [
1162
1164
  {
@@ -1194,7 +1196,7 @@
1194
1196
  "tags": [
1195
1197
  "Privileges"
1196
1198
  ],
1197
- "description": "Update privileges",
1199
+ "description": "Update privileges.",
1198
1200
  "operationId": "patchPrivileges",
1199
1201
  "parameters": [
1200
1202
  {
@@ -1258,7 +1260,7 @@
1258
1260
  "tags": [
1259
1261
  "Schema"
1260
1262
  ],
1261
- "description": "Get schema(s)",
1263
+ "description": "Get schema(s).",
1262
1264
  "operationId": "getSchema",
1263
1265
  "parameters": [
1264
1266
  {
@@ -1301,7 +1303,7 @@
1301
1303
  "tags": [
1302
1304
  "Schema"
1303
1305
  ],
1304
- "description": "Delete schema(s)",
1306
+ "description": "Delete schema(s).",
1305
1307
  "operationId": "deleteSchema",
1306
1308
  "parameters": [
1307
1309
  {
@@ -1328,7 +1330,7 @@
1328
1330
  "tags": [
1329
1331
  "Schema"
1330
1332
  ],
1331
- "description": "Rename a schema",
1333
+ "description": "Rename an existing schema.",
1332
1334
  "operationId": "patchSchema",
1333
1335
  "parameters": [
1334
1336
  {
@@ -1382,7 +1384,7 @@
1382
1384
  "tags": [
1383
1385
  "Schema"
1384
1386
  ],
1385
- "description": "Create schema(s)",
1387
+ "description": "Create schema(s).",
1386
1388
  "operationId": "postSchema",
1387
1389
  "requestBody": {
1388
1390
  "description": "New schema",
@@ -1410,7 +1412,7 @@
1410
1412
  "tags": [
1411
1413
  "Schema"
1412
1414
  ],
1413
- "description": "Get sequence(s)",
1415
+ "description": "Get sequence(s).",
1414
1416
  "operationId": "getSequence",
1415
1417
  "parameters": [
1416
1418
  {
@@ -1448,7 +1450,7 @@
1448
1450
  "tags": [
1449
1451
  "Schema"
1450
1452
  ],
1451
- "description": "Delete sequence(s)",
1453
+ "description": "Delete sequence(s).",
1452
1454
  "operationId": "deleteSequence",
1453
1455
  "parameters": [
1454
1456
  {
@@ -1479,7 +1481,7 @@
1479
1481
  "tags": [
1480
1482
  "Schema"
1481
1483
  ],
1482
- "description": "Update sequence(s)",
1484
+ "description": "Update existing sequence(s).",
1483
1485
  "operationId": "patchSequence",
1484
1486
  "parameters": [
1485
1487
  {
@@ -1526,7 +1528,7 @@
1526
1528
  "tags": [
1527
1529
  "Schema"
1528
1530
  ],
1529
- "description": "Create sequence(s)",
1531
+ "description": "Create sequence(s).",
1530
1532
  "operationId": "postSequence",
1531
1533
  "parameters": [
1532
1534
  {
@@ -1663,7 +1665,7 @@
1663
1665
  "tags": [
1664
1666
  "Schema"
1665
1667
  ],
1666
- "description": "Get table(s)",
1668
+ "description": "Get table(s).",
1667
1669
  "operationId": "getTable",
1668
1670
  "parameters": [
1669
1671
  {
@@ -1738,7 +1740,7 @@
1738
1740
  "tags": [
1739
1741
  "Schema"
1740
1742
  ],
1741
- "description": "Delete table",
1743
+ "description": "Delete table(s).",
1742
1744
  "operationId": "deleteTable",
1743
1745
  "parameters": [
1744
1746
  {
@@ -1772,7 +1774,7 @@
1772
1774
  "tags": [
1773
1775
  "Schema"
1774
1776
  ],
1775
- "description": "Rename and move table(s)",
1777
+ "description": "Rename and move existing table(s).",
1776
1778
  "operationId": "patchTable",
1777
1779
  "parameters": [
1778
1780
  {
@@ -1808,6 +1810,12 @@
1808
1810
  "description": "Move table to schema",
1809
1811
  "type": "string",
1810
1812
  "example": "my_other_schema"
1813
+ },
1814
+ "comment": {
1815
+ "title": "Comment",
1816
+ "description": "Comment on the table",
1817
+ "type": "string",
1818
+ "example": "This is a comment on the table"
1811
1819
  }
1812
1820
  },
1813
1821
  "type": "object"
@@ -1835,7 +1843,7 @@
1835
1843
  "tags": [
1836
1844
  "Schema"
1837
1845
  ],
1838
- "description": "Create table(s)",
1846
+ "description": "Create table(s).",
1839
1847
  "operationId": "postTable",
1840
1848
  "parameters": [
1841
1849
  {
@@ -1867,12 +1875,12 @@
1867
1875
  }
1868
1876
  }
1869
1877
  },
1870
- "/api/v4/user/{name}": {
1878
+ "/api/v4/users/{name}": {
1871
1879
  "get": {
1872
1880
  "tags": [
1873
1881
  "Users"
1874
1882
  ],
1875
- "description": "Get user(s)",
1883
+ "description": "Get sub-user(s)",
1876
1884
  "operationId": "getUser",
1877
1885
  "parameters": [
1878
1886
  {
@@ -1898,45 +1906,12 @@
1898
1906
  "description": "Not found"
1899
1907
  }
1900
1908
  }
1901
- }
1902
- },
1903
- "/api/v4/users": {
1904
- "post": {
1905
- "tags": [
1906
- "Users"
1907
- ],
1908
- "description": "Create user(s)",
1909
- "operationId": "postUser",
1910
- "requestBody": {
1911
- "description": "New user",
1912
- "required": true,
1913
- "content": {
1914
- "application/json": {
1915
- "schema": {
1916
- "$ref": "#/components/schemas/User"
1917
- }
1918
- }
1919
- }
1920
- },
1921
- "responses": {
1922
- "201": {
1923
- "description": "Created"
1924
- },
1925
- "400": {
1926
- "description": "Bad request"
1927
- },
1928
- "404": {
1929
- "description": "Not found"
1930
- }
1931
- }
1932
- }
1933
- },
1934
- "/api/v4/users/{name}": {
1909
+ },
1935
1910
  "delete": {
1936
1911
  "tags": [
1937
1912
  "Users"
1938
1913
  ],
1939
- "description": "Delete user(s)",
1914
+ "description": "Delete sub-user(s)",
1940
1915
  "operationId": "deleteUsers",
1941
1916
  "parameters": [
1942
1917
  {
@@ -1960,7 +1935,7 @@
1960
1935
  "tags": [
1961
1936
  "Users"
1962
1937
  ],
1963
- "description": "Update user(s)",
1938
+ "description": "Update exiting sub-user(s)",
1964
1939
  "operationId": "patchUser",
1965
1940
  "parameters": [
1966
1941
  {
@@ -1994,6 +1969,37 @@
1994
1969
  }
1995
1970
  }
1996
1971
  }
1972
+ },
1973
+ "/api/v4/users": {
1974
+ "post": {
1975
+ "tags": [
1976
+ "Users"
1977
+ ],
1978
+ "description": "Create new sub-user(s)",
1979
+ "operationId": "postUser",
1980
+ "requestBody": {
1981
+ "description": "New user",
1982
+ "required": true,
1983
+ "content": {
1984
+ "application/json": {
1985
+ "schema": {
1986
+ "$ref": "#/components/schemas/User"
1987
+ }
1988
+ }
1989
+ }
1990
+ },
1991
+ "responses": {
1992
+ "201": {
1993
+ "description": "Created"
1994
+ },
1995
+ "400": {
1996
+ "description": "Bad request"
1997
+ },
1998
+ "404": {
1999
+ "description": "Not found"
2000
+ }
2001
+ }
2002
+ }
1997
2003
  }
1998
2004
  },
1999
2005
  "components": {
@@ -2231,7 +2237,13 @@
2231
2237
  "title": "Type",
2232
2238
  "description": "Type of the constraint.",
2233
2239
  "type": "string",
2234
- "example": "foreign"
2240
+ "enum": [
2241
+ "primary",
2242
+ "foreign",
2243
+ "unique",
2244
+ "check"
2245
+ ],
2246
+ "example": "primary"
2235
2247
  },
2236
2248
  "columns": {
2237
2249
  "title": "Columns",
@@ -2351,6 +2363,7 @@
2351
2363
  "type": "object"
2352
2364
  },
2353
2365
  "Rule": {
2366
+ "description": "Rules can deny or allow access to tables or rewrite the SQL statement by adding a where clause. Rules are not attached to tables but applied to the incoming SQL statement before it actually runs in the database engine.",
2354
2367
  "required": [],
2355
2368
  "properties": {
2356
2369
  "id": {
@@ -2740,9 +2753,9 @@
2740
2753
  "type": "string",
2741
2754
  "example": "joe"
2742
2755
  },
2743
- "privileges": {
2744
- "title": "Privileges",
2745
- "description": "The privileges granted to the sub-user on a table.",
2756
+ "privilege": {
2757
+ "title": "Privilege",
2758
+ "description": "The privilege granted to the sub-user on a table.",
2746
2759
  "type": "string",
2747
2760
  "enum": [
2748
2761
  "none",
@@ -2894,7 +2907,7 @@
2894
2907
  },
2895
2908
  "output_format": {
2896
2909
  "title": "Output format",
2897
- "description": "The wanted output format. json, csv, ndjson, excel or ogr/[any ogr vector format] (e.g 'ogr/ESRI Shape')",
2910
+ "description": "The wanted output format: json, geojson, csv, ccsv ndjson, excel or ogr/[any ogr vector format e.g 'ogr/ESRI Shape']. ccsv and ndjson are streamed instead of returning a whole document or file.",
2898
2911
  "type": "string",
2899
2912
  "default": "json",
2900
2913
  "example": "csv"
@@ -3066,6 +3079,7 @@
3066
3079
  "type": "object"
3067
3080
  },
3068
3081
  "User": {
3082
+ "description": "Sub-users are users for your API. While you can use your super-user for single user projects, it is a good idea to create sub-users for projects involving multiple users, which can be granted different privileges in the database.",
3069
3083
  "required": [
3070
3084
  "name",
3071
3085
  "email",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centia-io/mcp-server",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "publishConfig": { "access": "public" },
5
5
  "description": "Centia MCP Server",
6
6
  "type": "module",