@justmpm/memory 0.1.0 → 0.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/AGENTS.md +694 -0
- package/CLAUDE.md +575 -0
- package/README.md +27 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +43 -0
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justmpm/memory",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "MCP Server para gerenciar memória persistente de subagents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"memory
|
|
8
|
+
"memory": "./dist/index.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
package/src/index.ts
CHANGED
|
@@ -636,6 +636,49 @@ Exemplos de busca úteis: "padrão", "bug", "TypeScript", "Firebase", "erro"
|
|
|
636
636
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
637
637
|
|
|
638
638
|
async function main() {
|
|
639
|
+
// Verifica argumentos de linha de comando
|
|
640
|
+
const args = process.argv.slice(2);
|
|
641
|
+
|
|
642
|
+
// --version
|
|
643
|
+
if (args.includes("--version") || args.includes("-v")) {
|
|
644
|
+
console.log(`@justmpm/memory v${PACKAGE_VERSION}`);
|
|
645
|
+
process.exit(0);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
// --help
|
|
649
|
+
if (args.includes("--help") || args.includes("-h")) {
|
|
650
|
+
console.log(`
|
|
651
|
+
@justmpm/memory - MCP Server para gerenciar memória persistente de subagents
|
|
652
|
+
|
|
653
|
+
Versão: ${PACKAGE_VERSION}
|
|
654
|
+
|
|
655
|
+
USO:
|
|
656
|
+
memory Inicia o servidor MCP (comunicação via stdio)
|
|
657
|
+
memory --version Mostra a versão do pacote
|
|
658
|
+
memory --help Mostra esta mensagem de ajuda
|
|
659
|
+
|
|
660
|
+
COMANDOS MCP:
|
|
661
|
+
- read Lê a memória de um agent
|
|
662
|
+
- write Substitui toda a memória
|
|
663
|
+
- append Adiciona uma entrada ao final
|
|
664
|
+
- search Busca texto na memória
|
|
665
|
+
- list Lista todos os agents com memória
|
|
666
|
+
|
|
667
|
+
DOCUMENTAÇÃO:
|
|
668
|
+
Para mais detalhes, consulte:
|
|
669
|
+
- CLAUDE.md (Documentação para IAs)
|
|
670
|
+
- AGENTS.md (Guia para subagents)
|
|
671
|
+
- README.md (Documentação principal)
|
|
672
|
+
|
|
673
|
+
REPOSITÓRIO:
|
|
674
|
+
https://github.com/justmpm/memory-mcp
|
|
675
|
+
|
|
676
|
+
LICENÇA:
|
|
677
|
+
MIT © Koda AI Studio
|
|
678
|
+
`);
|
|
679
|
+
process.exit(0);
|
|
680
|
+
}
|
|
681
|
+
|
|
639
682
|
const transport = new StdioServerTransport();
|
|
640
683
|
await server.connect(transport);
|
|
641
684
|
// Não faz log aqui pois o servidor se comunica via stdio
|