Skip to content

Commit fdd58c7

Browse files
committed
Added support for MCP edit.
1 parent 2138eba commit fdd58c7

2 files changed

Lines changed: 830 additions & 1 deletion

File tree

‎debug.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module.exports = function(opt) {
3333
// options.limit = 10;
3434
// options.timeout = 5000;
3535
// options.edit = 'wss://.....com/?id=myprojectname'
36+
// options.editmcp = 'wss://.....com/?id=myprojectname'
3637

3738
};
3839

@@ -556,7 +557,10 @@ function init() {
556557

557558
if (Meta.isWatcher) {
558559
if (options.edit) {
559-
require('./edit').init(options.edit.replace(/^http/, 'ws'));
560+
require('./edit').init(options.edit);
561+
setTimeout(runwatching, 1000);
562+
} else if (options.editmcp) {
563+
require('./edit-mcp').init(options.editmcp);
560564
setTimeout(runwatching, 1000);
561565
} else
562566
setImmediate(runwatching);

0 commit comments

Comments
 (0)