@centia-io/mcp-server 1.0.13 → 1.0.14

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 +173 -0
  2. package/package.json +1 -1
package/centia-api.json CHANGED
@@ -1543,6 +1543,151 @@
1543
1543
  }
1544
1544
  }
1545
1545
  },
1546
+ "/api/v4/keyvalue/{key}": {
1547
+ "get": {
1548
+ "tags": [
1549
+ "Keyvalue"
1550
+ ],
1551
+ "description": "Get a key, or list all visible keys.",
1552
+ "operationId": "getKeyvalue",
1553
+ "parameters": [
1554
+ {
1555
+ "name": "key",
1556
+ "in": "path",
1557
+ "description": "Key to fetch",
1558
+ "required": false,
1559
+ "schema": {
1560
+ "type": "string"
1561
+ },
1562
+ "example": "my_key"
1563
+ },
1564
+ {
1565
+ "name": "paths",
1566
+ "in": "query",
1567
+ "description": "Project only the named JSON sub-trees of the value. Comma-separated paths, each a dot-separated segment sequence, e.g. 'user.name,active'. The result value is keyed by each path string.",
1568
+ "required": false,
1569
+ "schema": {
1570
+ "type": "string"
1571
+ },
1572
+ "example": "user.name,active"
1573
+ }
1574
+ ],
1575
+ "responses": {
1576
+ "200": {
1577
+ "description": "Ok"
1578
+ },
1579
+ "404": {
1580
+ "description": "Not found"
1581
+ }
1582
+ }
1583
+ },
1584
+ "post": {
1585
+ "tags": [
1586
+ "Keyvalue"
1587
+ ],
1588
+ "description": "Create a key owned by the caller.",
1589
+ "operationId": "postKeyvalue",
1590
+ "parameters": [
1591
+ {
1592
+ "name": "key",
1593
+ "in": "path",
1594
+ "description": "Key to create",
1595
+ "required": true,
1596
+ "schema": {
1597
+ "type": "string"
1598
+ },
1599
+ "example": "my_key"
1600
+ }
1601
+ ],
1602
+ "requestBody": {
1603
+ "description": "Key/value definition.",
1604
+ "required": true,
1605
+ "content": {
1606
+ "application/json": {
1607
+ "schema": {
1608
+ "$ref": "#/components/schemas/Keyvalue"
1609
+ }
1610
+ }
1611
+ }
1612
+ },
1613
+ "responses": {
1614
+ "201": {
1615
+ "description": "Created"
1616
+ },
1617
+ "400": {
1618
+ "description": "Bad request"
1619
+ },
1620
+ "409": {
1621
+ "description": "Key already exists"
1622
+ }
1623
+ }
1624
+ },
1625
+ "delete": {
1626
+ "tags": [
1627
+ "Keyvalue"
1628
+ ],
1629
+ "description": "Delete a key.",
1630
+ "operationId": "deleteKeyvalue",
1631
+ "parameters": [
1632
+ {
1633
+ "name": "key",
1634
+ "in": "path",
1635
+ "description": "Key to delete",
1636
+ "required": true,
1637
+ "schema": {
1638
+ "type": "string"
1639
+ },
1640
+ "example": "my_key"
1641
+ }
1642
+ ],
1643
+ "responses": {
1644
+ "204": {
1645
+ "description": "Key deleted"
1646
+ },
1647
+ "404": {
1648
+ "description": "Not found"
1649
+ }
1650
+ }
1651
+ },
1652
+ "patch": {
1653
+ "tags": [
1654
+ "Keyvalue"
1655
+ ],
1656
+ "description": "Update a key's value and/or public flag.",
1657
+ "operationId": "patchKeyvalue",
1658
+ "parameters": [
1659
+ {
1660
+ "name": "key",
1661
+ "in": "path",
1662
+ "description": "Key to update",
1663
+ "required": true,
1664
+ "schema": {
1665
+ "type": "string"
1666
+ },
1667
+ "example": "my_key"
1668
+ }
1669
+ ],
1670
+ "requestBody": {
1671
+ "description": "Partial key/value update.",
1672
+ "required": true,
1673
+ "content": {
1674
+ "application/json": {
1675
+ "schema": {
1676
+ "$ref": "#/components/schemas/Keyvalue"
1677
+ }
1678
+ }
1679
+ }
1680
+ },
1681
+ "responses": {
1682
+ "303": {
1683
+ "description": "Key updated"
1684
+ },
1685
+ "404": {
1686
+ "description": "Not found"
1687
+ }
1688
+ }
1689
+ }
1690
+ },
1546
1691
  "/api/v4/layers/{layer}/classes/{class}/labels/{label}": {
1547
1692
  "get": {
1548
1693
  "tags": [
@@ -5010,6 +5155,30 @@
5010
5155
  },
5011
5156
  "type": "object"
5012
5157
  },
5158
+ "Keyvalue": {
5159
+ "description": "A key/value entry with an owner and a public flag.",
5160
+ "required": [
5161
+ "value"
5162
+ ],
5163
+ "properties": {
5164
+ "value": {
5165
+ "title": "Value",
5166
+ "description": "Arbitrary JSON value to store.",
5167
+ "type": "object",
5168
+ "example": {
5169
+ "a": 1
5170
+ }
5171
+ },
5172
+ "public": {
5173
+ "title": "Public",
5174
+ "description": "When true the key is readable by any user in the database.",
5175
+ "type": "boolean",
5176
+ "default": false,
5177
+ "example": false
5178
+ }
5179
+ },
5180
+ "type": "object"
5181
+ },
5013
5182
  "Label": {
5014
5183
  "description": "Label entry of a class. Property keys follow MapServer LABEL parameters.",
5015
5184
  "required": [],
@@ -6595,6 +6764,10 @@
6595
6764
  "name": "GraphQL",
6596
6765
  "description": "GraphQL"
6597
6766
  },
6767
+ {
6768
+ "name": "Keyvalue",
6769
+ "description": "Keyvalue"
6770
+ },
6598
6771
  {
6599
6772
  "name": "Layer",
6600
6773
  "description": "Layer"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centia-io/mcp-server",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },