Local-first 🧠memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly 😴 dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.
TypeScript
import { buildMcpLandscape } from "../../../core/graph/mcp-config.ts";
import { brainVerbContext, parse } from "../helpers.ts";
export async function cmdBrainMcpLandscape(argv: string[]): Promise<number> {
const { flags } = parse(argv, {
vault: { type: "string" },
json: { type: "boolean" },
});
const { vault } = brainVerbContext(flags);
const landscape = buildMcpLandscape(vault);
if (flags["json"]) {
process.stdout.write(JSON.stringify({ servers: landscape.servers }, null, 2) + "\n");
return 0;
}
// An empty landscape names no forward exit, deliberately. This lists the
// MCP servers declared in runtime configuration files this tool never
// writes, so the way out of "none" is editing another runtime's config -
// there is no `o2b` command to point at.
process.stdout.write(`MCP servers configured in vault: ${landscape.servers.length}\n`);
for (const s of landscape.servers) {
process.stdout.write(` ${s.name} (${s.source})\n`);
if (s.packages.length > 0) process.stdout.write(` packages: ${s.packages.join(", ")}\n`);
if (s.env.length > 0) process.stdout.write(` env: ${s.env.join(", ")}\n`);
}
return 0;
}