@pipeworx/mcp-plausible 0.1.2 → 0.2.0
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 +17 -12
- package/bin/cli.js +55 -11
- package/lib/index.js +333 -0
- package/package.json +17 -16
- package/server.json +1 -1
- package/tools.json +268 -0
- package/src/index.ts +0 -784
- package/src/server.ts +0 -45
- package/tsconfig.json +0 -18
package/tools.json
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "plausible_overview",
|
|
4
|
+
"description": "Return aggregate visitors, visits, pageviews, bounce rate, visit duration, and optional goal revenue for a Plausible site. Answers how much traffic and engagement the site generated during a period.",
|
|
5
|
+
"inputSchema": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"_apiKey": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Plausible Stats API key"
|
|
11
|
+
},
|
|
12
|
+
"site_id": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Plausible site ID, usually the configured domain such as example.com"
|
|
15
|
+
},
|
|
16
|
+
"date_range": {
|
|
17
|
+
"description": "Plausible date range preset or a two-item ISO date array",
|
|
18
|
+
"anyOf": [
|
|
19
|
+
{
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": [
|
|
22
|
+
"day",
|
|
23
|
+
"24h",
|
|
24
|
+
"7d",
|
|
25
|
+
"28d",
|
|
26
|
+
"30d",
|
|
27
|
+
"91d",
|
|
28
|
+
"month",
|
|
29
|
+
"6mo",
|
|
30
|
+
"12mo",
|
|
31
|
+
"year",
|
|
32
|
+
"all"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"minItems": 2,
|
|
41
|
+
"maxItems": 2
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"include_revenue": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"description": "Include total_revenue and average_revenue; use with a revenue goal filter"
|
|
48
|
+
},
|
|
49
|
+
"goal": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Limit metrics to one configured goal display name"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"_apiKey",
|
|
56
|
+
"site_id",
|
|
57
|
+
"date_range"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "plausible_timeseries",
|
|
63
|
+
"description": "Return bounded Plausible metrics grouped by day, week, month, or hour. Answers when traffic, engagement, conversions, or revenue changed during a period.",
|
|
64
|
+
"inputSchema": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {
|
|
67
|
+
"_apiKey": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "Plausible Stats API key"
|
|
70
|
+
},
|
|
71
|
+
"site_id": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "Plausible site ID, usually the configured domain such as example.com"
|
|
74
|
+
},
|
|
75
|
+
"date_range": {
|
|
76
|
+
"description": "Plausible date range preset or a two-item ISO date array",
|
|
77
|
+
"anyOf": [
|
|
78
|
+
{
|
|
79
|
+
"type": "string",
|
|
80
|
+
"enum": [
|
|
81
|
+
"day",
|
|
82
|
+
"24h",
|
|
83
|
+
"7d",
|
|
84
|
+
"28d",
|
|
85
|
+
"30d",
|
|
86
|
+
"91d",
|
|
87
|
+
"month",
|
|
88
|
+
"6mo",
|
|
89
|
+
"12mo",
|
|
90
|
+
"year",
|
|
91
|
+
"all"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"minItems": 2,
|
|
100
|
+
"maxItems": 2
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"interval": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"enum": [
|
|
107
|
+
"hour",
|
|
108
|
+
"day",
|
|
109
|
+
"week",
|
|
110
|
+
"month"
|
|
111
|
+
],
|
|
112
|
+
"description": "Time bucket"
|
|
113
|
+
},
|
|
114
|
+
"metrics": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"items": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"maxItems": 8,
|
|
120
|
+
"description": "Plausible metric names; defaults to visitors and pageviews"
|
|
121
|
+
},
|
|
122
|
+
"goal": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"description": "Limit metrics to one configured goal display name"
|
|
125
|
+
},
|
|
126
|
+
"limit": {
|
|
127
|
+
"type": "number",
|
|
128
|
+
"minimum": 1,
|
|
129
|
+
"maximum": 500,
|
|
130
|
+
"description": "Maximum rows, default 100 and maximum 500"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"required": [
|
|
134
|
+
"_apiKey",
|
|
135
|
+
"site_id",
|
|
136
|
+
"date_range",
|
|
137
|
+
"interval"
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "plausible_breakdown",
|
|
143
|
+
"description": "Return ranked Plausible metrics grouped by a page, source, campaign, geography, device, browser, or custom-property dimension. Answers which channels, content, audiences, or experiences drove results.",
|
|
144
|
+
"inputSchema": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"properties": {
|
|
147
|
+
"_apiKey": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"description": "Plausible Stats API key"
|
|
150
|
+
},
|
|
151
|
+
"site_id": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"description": "Plausible site ID, usually the configured domain such as example.com"
|
|
154
|
+
},
|
|
155
|
+
"date_range": {
|
|
156
|
+
"description": "Plausible date range preset or a two-item ISO date array",
|
|
157
|
+
"anyOf": [
|
|
158
|
+
{
|
|
159
|
+
"type": "string",
|
|
160
|
+
"enum": [
|
|
161
|
+
"day",
|
|
162
|
+
"24h",
|
|
163
|
+
"7d",
|
|
164
|
+
"28d",
|
|
165
|
+
"30d",
|
|
166
|
+
"91d",
|
|
167
|
+
"month",
|
|
168
|
+
"6mo",
|
|
169
|
+
"12mo",
|
|
170
|
+
"year",
|
|
171
|
+
"all"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "array",
|
|
176
|
+
"items": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"minItems": 2,
|
|
180
|
+
"maxItems": 2
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"dimension": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"description": "Plausible dimension such as visit:source, visit:utm_campaign, event:page, visit:country_name, or event:props:plan"
|
|
187
|
+
},
|
|
188
|
+
"metrics": {
|
|
189
|
+
"type": "array",
|
|
190
|
+
"items": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"maxItems": 8,
|
|
194
|
+
"description": "Metrics; defaults to visitors and pageviews"
|
|
195
|
+
},
|
|
196
|
+
"limit": {
|
|
197
|
+
"type": "number",
|
|
198
|
+
"minimum": 1,
|
|
199
|
+
"maximum": 100,
|
|
200
|
+
"description": "Maximum rows, default 20 and maximum 100"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"required": [
|
|
204
|
+
"_apiKey",
|
|
205
|
+
"site_id",
|
|
206
|
+
"date_range",
|
|
207
|
+
"dimension"
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "plausible_goal_performance",
|
|
213
|
+
"description": "Return events, visitors, and conversion rate grouped by configured Plausible goal. Answers which signup, activation, purchase, or other goals converted during a period.",
|
|
214
|
+
"inputSchema": {
|
|
215
|
+
"type": "object",
|
|
216
|
+
"properties": {
|
|
217
|
+
"_apiKey": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "Plausible Stats API key"
|
|
220
|
+
},
|
|
221
|
+
"site_id": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"description": "Plausible site ID, usually the configured domain such as example.com"
|
|
224
|
+
},
|
|
225
|
+
"date_range": {
|
|
226
|
+
"description": "Plausible date range preset or a two-item ISO date array",
|
|
227
|
+
"anyOf": [
|
|
228
|
+
{
|
|
229
|
+
"type": "string",
|
|
230
|
+
"enum": [
|
|
231
|
+
"day",
|
|
232
|
+
"24h",
|
|
233
|
+
"7d",
|
|
234
|
+
"28d",
|
|
235
|
+
"30d",
|
|
236
|
+
"91d",
|
|
237
|
+
"month",
|
|
238
|
+
"6mo",
|
|
239
|
+
"12mo",
|
|
240
|
+
"year",
|
|
241
|
+
"all"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"type": "array",
|
|
246
|
+
"items": {
|
|
247
|
+
"type": "string"
|
|
248
|
+
},
|
|
249
|
+
"minItems": 2,
|
|
250
|
+
"maxItems": 2
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
"limit": {
|
|
255
|
+
"type": "number",
|
|
256
|
+
"minimum": 1,
|
|
257
|
+
"maximum": 100,
|
|
258
|
+
"description": "Maximum goals, default 20 and maximum 100"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"required": [
|
|
262
|
+
"_apiKey",
|
|
263
|
+
"site_id",
|
|
264
|
+
"date_range"
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
]
|