@mrxkun/mcfast-mcp 1.0.9 → 1.1.1
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 +1 -1
- package/package.json +1 -1
- package/src/index.js +12 -6
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ mcfast provides built-in strategies for AI agents (Claude Desktop, etc) to use t
|
|
|
112
112
|
## 🔒 Privacy & Security
|
|
113
113
|
|
|
114
114
|
- **Zero Persistence:** Code is processed in-memory and discarded immediately
|
|
115
|
-
- **Open Source Client:** Audit the source at [github.com/ndpmmo/mcfast](https://github.com/ndpmmo/mcfast). Current stable version: `1.0
|
|
115
|
+
- **Open Source Client:** Audit the source at [github.com/ndpmmo/mcfast](https://github.com/ndpmmo/mcfast). Current stable version: `1.1.0`.
|
|
116
116
|
- **Token Masking:** Your `MCFAST_TOKEN` is never logged
|
|
117
117
|
|
|
118
118
|
---
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -22,7 +22,7 @@ if (!TOKEN) {
|
|
|
22
22
|
const server = new Server(
|
|
23
23
|
{
|
|
24
24
|
name: "mcfast",
|
|
25
|
-
version: "1.
|
|
25
|
+
version: "1.1.1",
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
capabilities: {
|
|
@@ -265,12 +265,13 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
265
265
|
const { name, arguments: args } = request.params;
|
|
266
266
|
|
|
267
267
|
if (name === "apply_fast") {
|
|
268
|
-
return await handleApplyFast(args);
|
|
268
|
+
return await handleApplyFast({ ...args, toolName: 'apply_fast' });
|
|
269
269
|
} else if (name === "apply_search_replace") {
|
|
270
270
|
return await handleApplyFast({
|
|
271
271
|
instruction: `Replace checking for exact match:\nSEARCH:\n${args.search}\n\nREPLACE WITH:\n${args.replace}`,
|
|
272
272
|
files: args.files,
|
|
273
|
-
dryRun: args.dryRun || false
|
|
273
|
+
dryRun: args.dryRun || false,
|
|
274
|
+
toolName: 'apply_search_replace'
|
|
274
275
|
});
|
|
275
276
|
} else if (name === "search_code_ai") {
|
|
276
277
|
return await handleSearchCodeAI(args);
|
|
@@ -305,7 +306,7 @@ async function handleReapply({ instruction, files, errorContext = "", attempt =
|
|
|
305
306
|
}
|
|
306
307
|
|
|
307
308
|
try {
|
|
308
|
-
const result = await handleApplyFast({ instruction: enhancedInstruction, files, dryRun: false });
|
|
309
|
+
const result = await handleApplyFast({ instruction: enhancedInstruction, files, dryRun: false, toolName: 'reapply' });
|
|
309
310
|
return {
|
|
310
311
|
content: [{
|
|
311
312
|
type: "text",
|
|
@@ -417,7 +418,7 @@ async function handleEditFile({ path: filePath, content, instruction = "" }) {
|
|
|
417
418
|
}
|
|
418
419
|
}
|
|
419
420
|
|
|
420
|
-
async function handleApplyFast({ instruction, files, dryRun }) {
|
|
421
|
+
async function handleApplyFast({ instruction, files, dryRun, toolName }) {
|
|
421
422
|
if (!TOKEN) {
|
|
422
423
|
return {
|
|
423
424
|
content: [{ type: "text", text: "❌ Error: MCFAST_TOKEN is missing. Please set it in your MCP config." }],
|
|
@@ -431,7 +432,12 @@ async function handleApplyFast({ instruction, files, dryRun }) {
|
|
|
431
432
|
"Content-Type": "application/json",
|
|
432
433
|
"Authorization": `Bearer ${TOKEN}`,
|
|
433
434
|
},
|
|
434
|
-
body: JSON.stringify({
|
|
435
|
+
body: JSON.stringify({
|
|
436
|
+
instruction,
|
|
437
|
+
files,
|
|
438
|
+
dryRun,
|
|
439
|
+
toolName: toolName || 'apply_fast'
|
|
440
|
+
}),
|
|
435
441
|
});
|
|
436
442
|
|
|
437
443
|
if (!response.ok) {
|