tunc-mcp 0.1.2 → 0.1.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.
- package/README.md +12 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -128,20 +128,27 @@ await memory.callTool('data_delete', {
|
|
|
128
128
|
if_revision: revision,
|
|
129
129
|
});
|
|
130
130
|
|
|
131
|
-
// Artifacts: store a file, get a private link
|
|
131
|
+
// Artifacts: store a file, get a private link back.
|
|
132
|
+
// art_read is operation list|get; art_write is operation create; art_delete
|
|
133
|
+
// takes an artifact_id and nothing else.
|
|
132
134
|
const files = art();
|
|
133
|
-
await files.callTool('art_write', {
|
|
134
|
-
|
|
135
|
+
const stored = await files.callTool('art_write', {
|
|
136
|
+
operation: 'create',
|
|
137
|
+
name: 'quarterly-report.pdf',
|
|
135
138
|
mime_type: 'application/pdf',
|
|
136
139
|
content_base64: base64Bytes,
|
|
137
140
|
});
|
|
141
|
+
// the result nests the artifact, keyed by `id`, with a viewer_url to share
|
|
142
|
+
const artifactId = JSON.parse(stored.content[0].text).artifact.id;
|
|
138
143
|
|
|
139
|
-
// Documents: build something a human can open and edit
|
|
144
|
+
// Documents: build something a human can open and edit.
|
|
145
|
+
// doc_create needs only a title; doc_read, doc_write and doc_delete take `doc`.
|
|
140
146
|
const docs = doc();
|
|
141
|
-
await docs.callTool('doc_create', {
|
|
147
|
+
const made = await docs.callTool('doc_create', {
|
|
142
148
|
title: 'Q4 summary',
|
|
143
149
|
markdown: '# Q4\n\nRevenue up 12%.',
|
|
144
150
|
});
|
|
151
|
+
const docId = JSON.parse(made.content[0].text).result.doc.id;
|
|
145
152
|
```
|
|
146
153
|
|
|
147
154
|
Discover what any service offers:
|
package/package.json
CHANGED