@memoraone/mcp 0.1.23 → 0.1.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/cli.cjs +5 -5
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -30,7 +30,7 @@ var require_package = __commonJS({
|
|
|
30
30
|
"package.json"(exports2, module2) {
|
|
31
31
|
module2.exports = {
|
|
32
32
|
name: "@memoraone/mcp",
|
|
33
|
-
version: "0.1.
|
|
33
|
+
version: "0.1.25",
|
|
34
34
|
type: "module",
|
|
35
35
|
main: "dist/index.cjs",
|
|
36
36
|
bin: {
|
|
@@ -691,7 +691,7 @@ var GITIGNORE_MEMORAONE_COMMENT = "# MemoraOne local project binding / API key";
|
|
|
691
691
|
var GITIGNORE_MEMORAONE_ENTRY = "memoraone.m1";
|
|
692
692
|
var MEMORAONE_MCP_SERVER = {
|
|
693
693
|
command: "npx",
|
|
694
|
-
args: ["-y", "@memoraone/mcp"]
|
|
694
|
+
args: ["-y", "@memoraone/mcp@latest"]
|
|
695
695
|
};
|
|
696
696
|
function assertUnderRepoRoot(repoRoot, absPath) {
|
|
697
697
|
const normRoot = path4.resolve(repoRoot) + path4.sep;
|
|
@@ -801,10 +801,10 @@ function mcpJsonHeader() {
|
|
|
801
801
|
`;
|
|
802
802
|
}
|
|
803
803
|
function buildMcpJsonBody(existing) {
|
|
804
|
-
const base = existing && typeof existing === "object" ? { ...existing } : {
|
|
805
|
-
const servers = typeof base.
|
|
804
|
+
const base = existing && typeof existing === "object" ? { ...existing } : { servers: {} };
|
|
805
|
+
const servers = typeof base.servers === "object" && base.servers !== null && !Array.isArray(base.servers) ? { ...base.servers } : {};
|
|
806
806
|
servers.memoraone = { ...MEMORAONE_MCP_SERVER };
|
|
807
|
-
const merged = { ...base,
|
|
807
|
+
const merged = { ...base, servers };
|
|
808
808
|
return mcpJsonHeader() + JSON.stringify(merged, null, 2) + "\n";
|
|
809
809
|
}
|
|
810
810
|
async function writeManagedMarkdown(repoRoot, relPath, fullContent, opts) {
|