mcp-zenskar 1.0.3 → 1.0.5
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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/mcp-config.json +48 -18
package/README.md
CHANGED
package/package.json
CHANGED
package/src/mcp-config.json
CHANGED
|
@@ -4008,57 +4008,87 @@
|
|
|
4008
4008
|
}
|
|
4009
4009
|
},
|
|
4010
4010
|
{
|
|
4011
|
-
"name": "
|
|
4012
|
-
"description": "Create a new usage event
|
|
4011
|
+
"name": "createRawMetric",
|
|
4012
|
+
"description": "Create a new raw metric (usage event schema) with column definitions and connectors.",
|
|
4013
4013
|
"needsApproval": true,
|
|
4014
4014
|
"approvalConfig": {
|
|
4015
|
-
"title": "Create
|
|
4016
|
-
"description": "This will create a new
|
|
4017
|
-
"warningText": "
|
|
4018
|
-
"confirmText": "Create
|
|
4015
|
+
"title": "Create Raw Metric",
|
|
4016
|
+
"description": "This will create a new raw metric and provision its event schema. Please review the payload carefully.",
|
|
4017
|
+
"warningText": "Ensure the dataschema and slug values are correct before continuing.",
|
|
4018
|
+
"confirmText": "Create Raw Metric",
|
|
4019
4019
|
"cancelText": "Cancel",
|
|
4020
|
-
"sensitiveFields": ["name", "api_slug"]
|
|
4020
|
+
"sensitiveFields": ["name", "api_slug", "dataschema", "column_order"]
|
|
4021
4021
|
},
|
|
4022
4022
|
"args": [
|
|
4023
4023
|
{
|
|
4024
4024
|
"name": "name",
|
|
4025
|
-
"description": "
|
|
4025
|
+
"description": "Human-friendly name for the raw metric.",
|
|
4026
4026
|
"type": "string",
|
|
4027
4027
|
"required": true,
|
|
4028
|
-
"position": "body"
|
|
4029
|
-
"default": "New Usage Event"
|
|
4028
|
+
"position": "body"
|
|
4030
4029
|
},
|
|
4031
4030
|
{
|
|
4032
4031
|
"name": "api_slug",
|
|
4033
|
-
"description": "
|
|
4032
|
+
"description": "API slug used when ingesting events (lowercase, underscores).",
|
|
4034
4033
|
"type": "string",
|
|
4035
4034
|
"required": true,
|
|
4036
4035
|
"position": "body"
|
|
4037
4036
|
},
|
|
4037
|
+
{
|
|
4038
|
+
"name": "connector",
|
|
4039
|
+
"description": "Connector that owns this raw metric (e.g., push_to_zenskar).",
|
|
4040
|
+
"type": "string",
|
|
4041
|
+
"required": true,
|
|
4042
|
+
"position": "body",
|
|
4043
|
+
"default": "push_to_zenskar"
|
|
4044
|
+
},
|
|
4045
|
+
{
|
|
4046
|
+
"name": "api_type",
|
|
4047
|
+
"description": "API type for ingestion (typically PUSH).",
|
|
4048
|
+
"type": "string",
|
|
4049
|
+
"required": false,
|
|
4050
|
+
"position": "body",
|
|
4051
|
+
"default": "PUSH"
|
|
4052
|
+
},
|
|
4038
4053
|
{
|
|
4039
4054
|
"name": "dataschema",
|
|
4040
|
-
"description": "Data schema of raw metric (JSON object). Structure: {\"data\": {custom_fields}, \"timestamp\": \"DateTime64\", \"customer_id\": \"String\"}. The 'data'
|
|
4055
|
+
"description": "Data schema of raw metric (JSON object). Structure: {\"data\": {custom_fields}, \"timestamp\": \"DateTime64\", \"customer_id\": \"String\"}. The 'data' map must include only valid ClickHouse types (String, Int64, Float64, Date32, DateTime64, UUID, Bool).",
|
|
4041
4056
|
"type": "object",
|
|
4042
4057
|
"required": true,
|
|
4043
|
-
"position": "body"
|
|
4058
|
+
"position": "body",
|
|
4059
|
+
"default": {
|
|
4060
|
+
"customer_id": "String",
|
|
4061
|
+
"timestamp": "DateTime64",
|
|
4062
|
+
"data": {
|
|
4063
|
+
"String": "String",
|
|
4064
|
+
"Int64": "Int64",
|
|
4065
|
+
"Float64": "Float64",
|
|
4066
|
+
"Date32": "Date32",
|
|
4067
|
+
"DateTime64": "DateTime64",
|
|
4068
|
+
"UUID": "UUID",
|
|
4069
|
+
"Bool": "Bool"
|
|
4070
|
+
}
|
|
4071
|
+
}
|
|
4044
4072
|
},
|
|
4045
4073
|
{
|
|
4046
4074
|
"name": "column_order",
|
|
4047
|
-
"description": "
|
|
4075
|
+
"description": "Optional ordered list of columns for downstream processing.",
|
|
4048
4076
|
"type": "array",
|
|
4049
4077
|
"required": false,
|
|
4050
|
-
"position": "body"
|
|
4078
|
+
"position": "body",
|
|
4079
|
+
"default": ["timestamp"]
|
|
4051
4080
|
}
|
|
4052
4081
|
],
|
|
4053
4082
|
"requestTemplate": {
|
|
4054
|
-
"url": "/
|
|
4083
|
+
"url": "/rawmetric",
|
|
4055
4084
|
"method": "POST",
|
|
4056
4085
|
"headers": {
|
|
4057
|
-
"Content-Type": "application/json"
|
|
4086
|
+
"Content-Type": "application/json",
|
|
4087
|
+
"apiversion": "20240301"
|
|
4058
4088
|
}
|
|
4059
4089
|
},
|
|
4060
4090
|
"responseTemplate": {
|
|
4061
|
-
"prependBody": "##
|
|
4091
|
+
"prependBody": "## Raw Metric Created\n\nThe raw metric was created successfully:\n\n"
|
|
4062
4092
|
}
|
|
4063
4093
|
},
|
|
4064
4094
|
{
|