@memoraone/mcp 0.1.11 → 0.1.13
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/cli.cjs +11 -3
- package/dist/index.cjs +11 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -107,6 +107,7 @@ var config = {
|
|
|
107
107
|
agentName: parsed.data.MEMORAONE_AGENT_NAME ?? "cursor",
|
|
108
108
|
agentType: parsed.data.MEMORAONE_AGENT_TYPE ?? "agent",
|
|
109
109
|
source: parsed.data.MEMORAONE_SOURCE ?? "cursor",
|
|
110
|
+
devMode: parseBooleanFlag(parsed.data.MEMORAONE_DEV_MODE, false),
|
|
110
111
|
worklogEnabled: parseBooleanFlag(parsed.data.MEMORAONE_WORKLOG, true),
|
|
111
112
|
heartbeatEnabled: parseBooleanFlag(parsed.data.MEMORAONE_HEARTBEAT, true),
|
|
112
113
|
heartbeatIntervalMs: Number.parseInt(parsed.data.MEMORAONE_HEARTBEAT_INTERVAL_MS ?? "30000", 10)
|
|
@@ -615,6 +616,7 @@ function registerToolWithWorklog(server, client, toolName, description, schema,
|
|
|
615
616
|
}
|
|
616
617
|
async function main() {
|
|
617
618
|
const client = new memoraClient_default(config);
|
|
619
|
+
const devMode = Boolean(config.devMode);
|
|
618
620
|
console.error(
|
|
619
621
|
`[memoraone-mcp] Agent identity: name="${config.agentName}", type="${config.agentType}", source="${config.source}"`
|
|
620
622
|
);
|
|
@@ -771,7 +773,9 @@ async function main() {
|
|
|
771
773
|
};
|
|
772
774
|
}
|
|
773
775
|
);
|
|
774
|
-
|
|
776
|
+
if (devMode) {
|
|
777
|
+
console.error("[memoraone-mcp] Starting MCP server with", registeredToolNames.length, "tools");
|
|
778
|
+
}
|
|
775
779
|
const transport = new import_stdio.StdioServerTransport();
|
|
776
780
|
await server.connect(transport);
|
|
777
781
|
let heartbeatInterval = null;
|
|
@@ -792,12 +796,16 @@ async function main() {
|
|
|
792
796
|
if (globalThis.__memoraHeartbeatInterval) {
|
|
793
797
|
clearInterval(globalThis.__memoraHeartbeatInterval);
|
|
794
798
|
}
|
|
795
|
-
|
|
799
|
+
if (devMode) {
|
|
800
|
+
console.error(`[memoraone-mcp] Received ${signal}, shutting down`);
|
|
801
|
+
}
|
|
796
802
|
process.exit(0);
|
|
797
803
|
};
|
|
798
804
|
process.on("SIGINT", () => shutdown("SIGINT"));
|
|
799
805
|
process.on("SIGTERM", () => shutdown("SIGTERM"));
|
|
800
|
-
|
|
806
|
+
if (devMode) {
|
|
807
|
+
console.error("[memoraone-mcp] MCP server ready");
|
|
808
|
+
}
|
|
801
809
|
}
|
|
802
810
|
main().catch((err) => {
|
|
803
811
|
console.error("[memoraone-mcp] fatal error", err);
|
package/dist/index.cjs
CHANGED
|
@@ -107,6 +107,7 @@ var config = {
|
|
|
107
107
|
agentName: parsed.data.MEMORAONE_AGENT_NAME ?? "cursor",
|
|
108
108
|
agentType: parsed.data.MEMORAONE_AGENT_TYPE ?? "agent",
|
|
109
109
|
source: parsed.data.MEMORAONE_SOURCE ?? "cursor",
|
|
110
|
+
devMode: parseBooleanFlag(parsed.data.MEMORAONE_DEV_MODE, false),
|
|
110
111
|
worklogEnabled: parseBooleanFlag(parsed.data.MEMORAONE_WORKLOG, true),
|
|
111
112
|
heartbeatEnabled: parseBooleanFlag(parsed.data.MEMORAONE_HEARTBEAT, true),
|
|
112
113
|
heartbeatIntervalMs: Number.parseInt(parsed.data.MEMORAONE_HEARTBEAT_INTERVAL_MS ?? "30000", 10)
|
|
@@ -615,6 +616,7 @@ function registerToolWithWorklog(server, client, toolName, description, schema,
|
|
|
615
616
|
}
|
|
616
617
|
async function main() {
|
|
617
618
|
const client = new memoraClient_default(config);
|
|
619
|
+
const devMode = Boolean(config.devMode);
|
|
618
620
|
console.error(
|
|
619
621
|
`[memoraone-mcp] Agent identity: name="${config.agentName}", type="${config.agentType}", source="${config.source}"`
|
|
620
622
|
);
|
|
@@ -771,7 +773,9 @@ async function main() {
|
|
|
771
773
|
};
|
|
772
774
|
}
|
|
773
775
|
);
|
|
774
|
-
|
|
776
|
+
if (devMode) {
|
|
777
|
+
console.error("[memoraone-mcp] Starting MCP server with", registeredToolNames.length, "tools");
|
|
778
|
+
}
|
|
775
779
|
const transport = new import_stdio.StdioServerTransport();
|
|
776
780
|
await server.connect(transport);
|
|
777
781
|
let heartbeatInterval = null;
|
|
@@ -792,12 +796,16 @@ async function main() {
|
|
|
792
796
|
if (globalThis.__memoraHeartbeatInterval) {
|
|
793
797
|
clearInterval(globalThis.__memoraHeartbeatInterval);
|
|
794
798
|
}
|
|
795
|
-
|
|
799
|
+
if (devMode) {
|
|
800
|
+
console.error(`[memoraone-mcp] Received ${signal}, shutting down`);
|
|
801
|
+
}
|
|
796
802
|
process.exit(0);
|
|
797
803
|
};
|
|
798
804
|
process.on("SIGINT", () => shutdown("SIGINT"));
|
|
799
805
|
process.on("SIGTERM", () => shutdown("SIGTERM"));
|
|
800
|
-
|
|
806
|
+
if (devMode) {
|
|
807
|
+
console.error("[memoraone-mcp] MCP server ready");
|
|
808
|
+
}
|
|
801
809
|
}
|
|
802
810
|
main().catch((err) => {
|
|
803
811
|
console.error("[memoraone-mcp] fatal error", err);
|