mr-magic-mcp-server 0.1.15 → 0.1.16
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/package.json
CHANGED
|
@@ -117,9 +117,8 @@ export async function startMcpHttpServer(options = {}) {
|
|
|
117
117
|
res.json({ status: 'ok', providers: await getProviderStatus() });
|
|
118
118
|
});
|
|
119
119
|
|
|
120
|
-
app.get('/downloads/:downloadId
|
|
121
|
-
const { downloadId } = req.params;
|
|
122
|
-
const extension = req.params[0] || '';
|
|
120
|
+
app.get('/downloads/:downloadId/:extension', async (req, res) => {
|
|
121
|
+
const { downloadId, extension } = req.params;
|
|
123
122
|
if (!downloadId || !extension) {
|
|
124
123
|
res.status(400).json({ error: 'Invalid download path' });
|
|
125
124
|
return;
|