@talonic/mcp 0.1.56 → 0.1.58
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/dist/http-server.js +45 -16
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +41 -16
- package/dist/index.js.map +1 -1
- package/dist/server.js +41 -16
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/http-server.js
CHANGED
|
@@ -154,18 +154,22 @@ var BASE_CSS = `
|
|
|
154
154
|
}
|
|
155
155
|
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg);
|
|
156
156
|
font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, sans-serif; }
|
|
157
|
-
.root { padding:
|
|
158
|
-
|
|
157
|
+
.root { padding: 20px; box-sizing: border-box; }
|
|
158
|
+
* { box-sizing: border-box; }
|
|
159
|
+
.empty { color: var(--muted); padding: 28px; text-align: center; }
|
|
159
160
|
.muted { color: var(--muted); }
|
|
160
161
|
.small { font-size: 12px; }
|
|
161
|
-
.header { display: flex; align-items:
|
|
162
|
-
gap: 12px; margin-bottom:
|
|
162
|
+
.header { display: flex; align-items: flex-start; justify-content: space-between;
|
|
163
|
+
gap: 12px; margin-bottom: 16px; }
|
|
163
164
|
.title { font-weight: 600; }
|
|
164
165
|
.subtitle { color: var(--muted); font-size: 12px; }
|
|
165
166
|
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
|
|
166
|
-
th, td { text-align: left; padding:
|
|
167
|
+
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border);
|
|
167
168
|
vertical-align: top; font-size: 13px; }
|
|
168
169
|
th { color: var(--muted); font-weight: 500; font-size: 12px; }
|
|
170
|
+
th:first-child, td:first-child { padding-left: 0; }
|
|
171
|
+
th:last-child, td:last-child { padding-right: 0; }
|
|
172
|
+
tr:last-child td { border-bottom: none; }
|
|
169
173
|
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
170
174
|
.val { font-variant-numeric: tabular-nums; word-break: break-word; }
|
|
171
175
|
.bar { display: inline-block; width: 60px; height: 6px; background: var(--border);
|
|
@@ -182,10 +186,14 @@ var BASE_CSS = `
|
|
|
182
186
|
.chip { display: inline-block; background: var(--chip); border-radius: 999px;
|
|
183
187
|
padding: 1px 8px; font-size: 12px; margin: 2px 4px 2px 0; }
|
|
184
188
|
.big { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
185
|
-
.grid { display: grid; grid-template-columns:
|
|
186
|
-
|
|
187
|
-
|
|
189
|
+
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
190
|
+
gap: 10px; margin-top: 14px; }
|
|
191
|
+
/* Stat tile: label stacked above value, padded, never crowding an edge. */
|
|
192
|
+
.kv { display: flex; flex-direction: column; gap: 3px;
|
|
193
|
+
background: var(--chip); border: 1px solid var(--border); border-radius: 8px;
|
|
194
|
+
padding: 10px 12px; min-width: 0; }
|
|
188
195
|
.kv .k { color: var(--muted); font-size: 12px; }
|
|
196
|
+
.kv .val { font-weight: 500; }
|
|
189
197
|
pre.md { background: var(--chip); border: 1px solid var(--border); border-radius: 8px;
|
|
190
198
|
padding: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap;
|
|
191
199
|
word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
@@ -238,7 +246,9 @@ var BOOTSTRAP_JS = `
|
|
|
238
246
|
renderFromHost();
|
|
239
247
|
}, { passive: true });
|
|
240
248
|
window.addEventListener("message", function (event) {
|
|
249
|
+
if (event.source !== window.parent) return;
|
|
241
250
|
var msg = event.data;
|
|
251
|
+
if (!msg || msg.jsonrpc !== "2.0") return;
|
|
242
252
|
if (!msg || msg.method !== "ui/notifications/tool-result") return;
|
|
243
253
|
var sc = msg.params && msg.params.structuredContent;
|
|
244
254
|
if (sc) { window.openai = window.openai || {}; window.openai.toolOutput = sc; renderFromHost(); }
|
|
@@ -905,6 +915,7 @@ function registerExtract(server, getTalonic) {
|
|
|
905
915
|
openWorldHint: true
|
|
906
916
|
},
|
|
907
917
|
_meta: {
|
|
918
|
+
ui: { resourceUri: EXTRACTION_RESULT_WIDGET_URI },
|
|
908
919
|
"openai/outputTemplate": EXTRACTION_RESULT_WIDGET_URI
|
|
909
920
|
}
|
|
910
921
|
},
|
|
@@ -1054,9 +1065,11 @@ function registerFilter(server, getTalonic) {
|
|
|
1054
1065
|
annotations: {
|
|
1055
1066
|
title: "Filter Talonic Documents",
|
|
1056
1067
|
readOnlyHint: true,
|
|
1057
|
-
|
|
1068
|
+
destructiveHint: false,
|
|
1069
|
+
openWorldHint: false
|
|
1058
1070
|
},
|
|
1059
1071
|
_meta: {
|
|
1072
|
+
ui: { resourceUri: WIDGET_URIS.filter },
|
|
1060
1073
|
"openai/outputTemplate": WIDGET_URIS.filter
|
|
1061
1074
|
}
|
|
1062
1075
|
},
|
|
@@ -1121,9 +1134,11 @@ function registerGetBalance(server, getTalonic) {
|
|
|
1121
1134
|
annotations: {
|
|
1122
1135
|
title: "Get Talonic Credit Balance",
|
|
1123
1136
|
readOnlyHint: true,
|
|
1124
|
-
|
|
1137
|
+
destructiveHint: false,
|
|
1138
|
+
openWorldHint: false
|
|
1125
1139
|
},
|
|
1126
1140
|
_meta: {
|
|
1141
|
+
ui: { resourceUri: WIDGET_URIS.getBalance },
|
|
1127
1142
|
"openai/outputTemplate": WIDGET_URIS.getBalance
|
|
1128
1143
|
}
|
|
1129
1144
|
},
|
|
@@ -1229,9 +1244,11 @@ function registerGetDocument(server, getTalonic) {
|
|
|
1229
1244
|
annotations: {
|
|
1230
1245
|
title: "Get Talonic Document",
|
|
1231
1246
|
readOnlyHint: true,
|
|
1232
|
-
|
|
1247
|
+
destructiveHint: false,
|
|
1248
|
+
openWorldHint: false
|
|
1233
1249
|
},
|
|
1234
1250
|
_meta: {
|
|
1251
|
+
ui: { resourceUri: WIDGET_URIS.getDocument },
|
|
1235
1252
|
"openai/outputTemplate": WIDGET_URIS.getDocument
|
|
1236
1253
|
}
|
|
1237
1254
|
},
|
|
@@ -1315,9 +1332,11 @@ function registerListSchemas(server, getTalonic) {
|
|
|
1315
1332
|
annotations: {
|
|
1316
1333
|
title: "List Talonic Schemas",
|
|
1317
1334
|
readOnlyHint: true,
|
|
1318
|
-
|
|
1335
|
+
destructiveHint: false,
|
|
1336
|
+
openWorldHint: false
|
|
1319
1337
|
},
|
|
1320
1338
|
_meta: {
|
|
1339
|
+
ui: { resourceUri: WIDGET_URIS.listSchemas },
|
|
1321
1340
|
"openai/outputTemplate": WIDGET_URIS.listSchemas
|
|
1322
1341
|
}
|
|
1323
1342
|
},
|
|
@@ -1394,9 +1413,10 @@ function registerSaveSchema(server, getTalonic) {
|
|
|
1394
1413
|
title: "Save Talonic Schema",
|
|
1395
1414
|
readOnlyHint: false,
|
|
1396
1415
|
destructiveHint: false,
|
|
1397
|
-
openWorldHint:
|
|
1416
|
+
openWorldHint: false
|
|
1398
1417
|
},
|
|
1399
1418
|
_meta: {
|
|
1419
|
+
ui: { resourceUri: WIDGET_URIS.saveSchema },
|
|
1400
1420
|
"openai/outputTemplate": WIDGET_URIS.saveSchema
|
|
1401
1421
|
}
|
|
1402
1422
|
},
|
|
@@ -1495,9 +1515,11 @@ function registerSearch(server, getTalonic) {
|
|
|
1495
1515
|
annotations: {
|
|
1496
1516
|
title: "Search Talonic Workspace",
|
|
1497
1517
|
readOnlyHint: true,
|
|
1498
|
-
|
|
1518
|
+
destructiveHint: false,
|
|
1519
|
+
openWorldHint: false
|
|
1499
1520
|
},
|
|
1500
1521
|
_meta: {
|
|
1522
|
+
ui: { resourceUri: WIDGET_URIS.search },
|
|
1501
1523
|
"openai/outputTemplate": WIDGET_URIS.search
|
|
1502
1524
|
}
|
|
1503
1525
|
},
|
|
@@ -1591,9 +1613,11 @@ function registerRequestUpload(server, getToken, baseUrl) {
|
|
|
1591
1613
|
annotations: {
|
|
1592
1614
|
title: "Request File Upload",
|
|
1593
1615
|
readOnlyHint: false,
|
|
1594
|
-
|
|
1616
|
+
destructiveHint: false,
|
|
1617
|
+
openWorldHint: false
|
|
1595
1618
|
},
|
|
1596
1619
|
_meta: {
|
|
1620
|
+
ui: { resourceUri: WIDGET_URIS.requestUpload },
|
|
1597
1621
|
"openai/outputTemplate": WIDGET_URIS.requestUpload
|
|
1598
1622
|
}
|
|
1599
1623
|
},
|
|
@@ -1718,6 +1742,7 @@ function registerToMarkdown(server, getTalonic) {
|
|
|
1718
1742
|
openWorldHint: true
|
|
1719
1743
|
},
|
|
1720
1744
|
_meta: {
|
|
1745
|
+
ui: { resourceUri: WIDGET_URIS.toMarkdown },
|
|
1721
1746
|
"openai/outputTemplate": WIDGET_URIS.toMarkdown
|
|
1722
1747
|
}
|
|
1723
1748
|
},
|
|
@@ -1727,7 +1752,7 @@ function registerToMarkdown(server, getTalonic) {
|
|
|
1727
1752
|
|
|
1728
1753
|
// package.json
|
|
1729
1754
|
var package_default = {
|
|
1730
|
-
version: "0.1.
|
|
1755
|
+
version: "0.1.58"};
|
|
1731
1756
|
|
|
1732
1757
|
// src/version.ts
|
|
1733
1758
|
var VERSION = package_default.version;
|
|
@@ -1810,6 +1835,10 @@ var ALLOWED_ORIGINS = /* @__PURE__ */ new Set([
|
|
|
1810
1835
|
"https://claude.ai",
|
|
1811
1836
|
"https://www.claude.ai",
|
|
1812
1837
|
"https://app.claude.ai",
|
|
1838
|
+
"https://chatgpt.com",
|
|
1839
|
+
"https://www.chatgpt.com",
|
|
1840
|
+
"https://chat.openai.com",
|
|
1841
|
+
"https://platform.openai.com",
|
|
1813
1842
|
"https://cursor.directory",
|
|
1814
1843
|
"https://glama.ai",
|
|
1815
1844
|
"https://mcp.so",
|