@daileyos/mcp-server 1.13.1 → 1.13.2
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/.github/workflows/publish.yml +22 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +31 -1
- package/dist/api.js.map +1 -1
- package/dist/tools/credentials-reveal.js +1 -1
- package/dist/tools/credentials-reveal.js.map +1 -1
- package/dist/tools/deploy-status.d.ts.map +1 -1
- package/dist/tools/deploy-status.js +0 -70
- package/dist/tools/deploy-status.js.map +1 -1
- package/dist/tools/diagnose.d.ts.map +1 -1
- package/dist/tools/diagnose.js +0 -152
- package/dist/tools/diagnose.js.map +1 -1
- package/dist/tools/platform.d.ts.map +1 -1
- package/dist/tools/platform.js +0 -82
- package/dist/tools/platform.js.map +1 -1
- package/dist/tools/projects.d.ts.map +1 -1
- package/dist/tools/projects.js +1 -1
- package/dist/tools/projects.js.map +1 -1
- package/dist/tools/storage.d.ts.map +1 -1
- package/dist/tools/storage.js +0 -30
- package/dist/tools/storage.js.map +1 -1
- package/package.json +1 -1
- package/src/api.ts +30 -1
- package/src/tools/credentials-reveal.ts +1 -1
- package/src/tools/deploy-status.ts +0 -71
- package/src/tools/diagnose.ts +0 -183
- package/src/tools/platform.ts +0 -88
- package/src/tools/projects.ts +1 -3
- package/src/tools/storage.ts +0 -42
package/src/tools/storage.ts
CHANGED
|
@@ -88,13 +88,6 @@ export function registerStorageTools(server: McpServer) {
|
|
|
88
88
|
`URL TTL: ${data.binding.limits.signed_url_ttl_seconds}s`,
|
|
89
89
|
];
|
|
90
90
|
|
|
91
|
-
// Surface credential-missing warning before anything else so the LLM
|
|
92
|
-
// sees it immediately and can call dailey_storage_enable to fix it.
|
|
93
|
-
if ((data as any).secret_warning) {
|
|
94
|
-
lines.push('');
|
|
95
|
-
lines.push(`⚠ WARNING: ${(data as any).secret_warning}`);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
91
|
// Render the new integration_paths block when the API surfaces it.
|
|
99
92
|
// Older customer-api responses still set next_step; fall back to that
|
|
100
93
|
// verbatim so this tool keeps working during the rolling deploy.
|
|
@@ -212,41 +205,6 @@ export function registerStorageTools(server: McpServer) {
|
|
|
212
205
|
},
|
|
213
206
|
);
|
|
214
207
|
|
|
215
|
-
server.tool(
|
|
216
|
-
'dailey_storage_enable',
|
|
217
|
-
'Enable object storage on an existing project that was created without it, OR fix a project where storage was enabled but S3_* env vars are missing from the pod (secret_injected=false from dailey_storage_info). Provisions R2 credentials, creates the k8s secret, and patches the running deployment so pods pick up S3_* vars immediately. A redeploy is not required after calling this.',
|
|
218
|
-
{ project_id: z.string().describe('The project ID') },
|
|
219
|
-
async ({ project_id }) => {
|
|
220
|
-
const res = await apiRequest<{ ok: boolean; message: string; prefix: string }>(
|
|
221
|
-
'POST',
|
|
222
|
-
`/projects/${project_id}/storage/enable`,
|
|
223
|
-
);
|
|
224
|
-
if (!res.ok) {
|
|
225
|
-
// 409 means already enabled — check if the secret is actually present
|
|
226
|
-
if (res.status === 409) {
|
|
227
|
-
return textResult(
|
|
228
|
-
`Storage is already enabled for this project.\n\nIf S3_* vars are still missing from your pod, the credentials secret may not have been created correctly.\nCheck: dailey_storage_info to see secret_injected status.\nFix: redeploy the project (dailey_deploy) to re-mount the secret.`,
|
|
229
|
-
);
|
|
230
|
-
}
|
|
231
|
-
return textResult(formatError(res));
|
|
232
|
-
}
|
|
233
|
-
return textResult([
|
|
234
|
-
`Storage enabled.`,
|
|
235
|
-
``,
|
|
236
|
-
`Prefix: ${res.data.prefix}`,
|
|
237
|
-
``,
|
|
238
|
-
res.data.message,
|
|
239
|
-
``,
|
|
240
|
-
`S3_* env vars now available in your pod:`,
|
|
241
|
-
` S3_ENDPOINT, S3_REGION, S3_BUCKET_NAME`,
|
|
242
|
-
` S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, S3_SESSION_TOKEN, S3_KEY_PREFIX`,
|
|
243
|
-
``,
|
|
244
|
-
`Pods are restarting to pick up the new secret (~30s). No rebuild needed.`,
|
|
245
|
-
`If vars are still missing after 60s, call dailey_deploy to trigger a fresh rollout.`,
|
|
246
|
-
].join('\n'));
|
|
247
|
-
},
|
|
248
|
-
);
|
|
249
|
-
|
|
250
208
|
server.tool(
|
|
251
209
|
'dailey_storage_presign_download',
|
|
252
210
|
'For BROWSER-side flows. Server-side apps deployed on Dailey should instead use the S3 SDK with the auto-injected S3_* env vars (see dailey_storage_info). Creates a presigned download URL for an object in a project bucket.',
|