@dalmasonto/taskflow-mcp 1.0.24 → 1.0.25
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/dist/index.js +1 -1
- package/dist/sse.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60,7 +60,7 @@ if (!httpOnly) {
|
|
|
60
60
|
const { registerTerminalTools } = await import('./tools/terminal.js');
|
|
61
61
|
const { registerResources } = await import('./resources.js');
|
|
62
62
|
const { registerCheckpointTools } = await import('./tools/checkpoint.js');
|
|
63
|
-
const server = new McpServer({ name: 'taskflow', version: '1.0.
|
|
63
|
+
const server = new McpServer({ name: 'taskflow', version: '1.0.25' }, {
|
|
64
64
|
instructions: [
|
|
65
65
|
'You MUST call bootstrap (preferred) or get_agent_instructions before doing any work. This loads your task management rules and project context.',
|
|
66
66
|
'You MUST create a task in TaskFlow before editing files or running commands. search_tasks first to avoid duplicates.',
|
package/dist/sse.js
CHANGED
|
@@ -618,12 +618,12 @@ export async function startSSEServer() {
|
|
|
618
618
|
if (isTaskFlow) {
|
|
619
619
|
// Another TaskFlow instance owns this port — connect to it instead
|
|
620
620
|
activePort = port;
|
|
621
|
-
console.
|
|
621
|
+
console.error(`[SSE] port ${port} owned by another TaskFlow instance (pid probe) — using it`);
|
|
622
622
|
resolve();
|
|
623
623
|
}
|
|
624
624
|
else {
|
|
625
625
|
// Not ours — try next port
|
|
626
|
-
console.
|
|
626
|
+
console.error(`[SSE] port ${port} in use by non-TaskFlow service — trying ${port + 1}`);
|
|
627
627
|
attempt++;
|
|
628
628
|
tryPort(port + 1);
|
|
629
629
|
}
|
|
@@ -658,14 +658,14 @@ export async function startSSEServer() {
|
|
|
658
658
|
catch { /* ignore */ }
|
|
659
659
|
}, 3_000);
|
|
660
660
|
if (port !== PREFERRED_PORT) {
|
|
661
|
-
console.
|
|
661
|
+
console.error(`[SSE] listening on fallback port ${port} (preferred ${PREFERRED_PORT} was unavailable)`);
|
|
662
662
|
}
|
|
663
663
|
else {
|
|
664
|
-
console.
|
|
664
|
+
console.error(`[SSE] listening on port ${port}`);
|
|
665
665
|
}
|
|
666
666
|
// Relay command polling + state pushing (if relay is configured)
|
|
667
667
|
if (RELAY_URL && RELAY_PUSH_TOKEN) {
|
|
668
|
-
console.
|
|
668
|
+
console.error(`[relay] command polling started → ${RELAY_URL}`);
|
|
669
669
|
// Push lightweight sync state — only what the remote app needs
|
|
670
670
|
// SSE events handle real-time updates after this initial load
|
|
671
671
|
const pushState = () => {
|