{"slug": "lex-dev-smartergpt-lex-4-0-4", "title": "Lex (dev.smartergpt/lex@4.0.4)", "summary": "Lex, an MCP server for AI agents providing episodic memory, Frames, Policy Neighborhoods, and policy enforcement, released version 4.0.4 on 2026-08-29, distributed as @smartergpt/lex-mcp on npm and listed in the official MCP registry. The mcpindex.ai screening service gave Lex's description a 'pass' on its semantic screen as of snapshot 2026-08-30, noting the deterministic conformance probe has not yet been run. The server declares 8 environment variables including LEX_WORKSPACE_ROOT and LEX_STORE.", "body_md": "[← Index](/leaderboard)\n\n# Lex\n\nEpisodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.\n\nThe current version, v4.0.4, was published to the official MCP registry on 2026-08-29. It is distributed as @smartergpt/lex-mcp on npm, filed under Memory & RAG by this index, and declares 8 environment variables. Removals and unreachable sources are measured across every server this index tracks, contract drift across the servers that answer in consecutive snapshots; [the index's current counts](/stats) put this record in context.\n\n## Using Lex in Claude, Cursor, Gemini CLI, Cline, or Zed?\n\nMCP tool contracts can change remotely with no version bump. The mcpindex gate pins each contract and **HOLDs the call** when it drifts-before your agent acts. Zero credentials. This is not the package install for this server itself (use **Install this server** for that).\n\nRewrites your MCP host config so each server launches behind the gate. Inspect first: curl -fsSL https://mcpindex.ai/install.sh | less\n\n```\nuv tool install mcpindex-gate && mcpindex-config-wire\n```\n\n[method](/methodology)\n\nSemantic screen found no manipulation pattern in the description. Conformance probe not yet run.\n\n`mcpindex.integrity.description`\n\npassINFOevidence“Normal capability description”via static_description\n\n- - Semantic screen only - the deterministic conformance probe has not run on this server\n- - Confidence is reported but not yet calibrated (v1)\n- - Screen reads the tool description, not the live behavior\n- - advisory\n- - registry description only no input schema\n- - screen model 8b\n- - The registry listing (version, packages, links) changed after this screen ran - the description we assessed did not\n\nSemantic screen: an LLM judge reads the tool description for hidden instructions (status PARTIAL). A pass means the description is not lying, not that the tool is safe: a high-capability tool with an honest description still warrants caution. The deterministic conformance probe has not been run on this server yet, so the screen here is semantic-only. Posture: advisory. Confidences are reported but not yet calibrated (calibrated=false at v1). Full verdict history is not shown on this page.\n\nOwn this server? [Screen its description →](/screen)\n\n## That verdict was true at screening time (snapshot 2026-08-30).\n\nContracts can change after screening, with no version bump. The gate pins Lex’s tool contracts on first sight and holds any silent change before your agent acts - the check that keeps being true on Tuesday.\n\n[See your first HOLD in 2 minutes →](/guides/install-the-gate-first-hold)\n\nRelated: [how to trust an MCP server](/guides/how-to-trust-an-mcp-server) · [screen before install](/guides/screen-mcp-server-before-install) · [silent contract drift](/guides/mcp-silent-contract-drift)\n\nPeople vet a server before wiring it in. One line on your project site or docs answers that with an independent record: screening verdict, registry provenance, contract drift history. It stays current as new screens and drift events land.\n\n```\n[Independent trust record for Lex](https://mcpindex.ai/server/dev-smartergpt-lex) - screening verdict, registry provenance, and contract drift monitoring.\n<a href=\"https://mcpindex.ai/server/dev-smartergpt-lex\">Independent trust record for Lex</a> - screening verdict, registry provenance, and contract drift monitoring.\n```\n\nA live verdict badge for your README or listing. It reflects the current screen, links back here, and updates when the verdict does.\n\n```\n[![mcpindex](https://mcpindex.ai/api/v1/badge/dev-smartergpt-lex)](https://mcpindex.ai/server/dev-smartergpt-lex)\n<a href=\"https://mcpindex.ai/server/dev-smartergpt-lex\"><img src=\"https://mcpindex.ai/api/v1/badge/dev-smartergpt-lex\" alt=\"mcpindex verdict\" height=\"20\" /></a>\n```\n\n`LEX_WORKSPACE_ROOT`\n\nProject root directory for Lex runtime discovery. Defaults to current working directory.\n\n`LEX_STORE`\n\nFrame-store backend: sqlite or postgres. Defaults to sqlite unless LEX_DATABASE_URL selects PostgreSQL.\n\n`LEX_DB_PATH`\n\nPath to SQLite database file. Defaults to .smartergpt/lex/memory.db under the project root.\n\n`LEX_MEMORY_DB`\n\nAlias for LEX_DB_PATH (backwards compatibility). Same behavior.\n\n`LEX_DATABASE_URL`\n\nPostgreSQL connection URL for the compatibility adapter. Treat as secret because it may contain credentials.\n\n`LEX_POSTGRES_PASSWORD`\n\nPostgreSQL password supplied separately when LEX_DATABASE_URL omits one.\n\n`LEX_POSTGRES_POOL_MAX`\n\nMaximum PostgreSQL compatibility-adapter pool size. Defaults to 10.\n\n`LEX_DEBUG`\n\nSet to any value to enable debug logging to stderr.\n\n[methodology](/methodology)\n\n[Fodda Knowledge Graphsai.fodda/mcp-server](/server/ai-fodda-mcp-server)\n\nExpert-curated knowledge, brand, research & earnings intelligence — 47 tools, 220+ graphs.\n\n[Achriomcom.achriom/achriom](/server/com-achriom-achriom)\n\nMedia memory for AI agents and their humans: books, movies, music, shows, anime, podcasts, games.\n\n[Brainboxdev.thexi/brainbox](/server/dev-thexi-brainbox)\n\nPersistent, portable memory for AI assistants — your private memory graph, from any MCP client.", "url": "https://wpnews.pro/news/lex-dev-smartergpt-lex-4-0-4", "canonical_source": "https://mcpindex.ai/server/dev-smartergpt-lex", "published_at": "2026-08-29 23:35:46+00:00", "updated_at": "2026-08-30 00:48:37.670395+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["Lex", "@smartergpt/lex-mcp", "mcpindex.ai", "MCP registry"], "alternates": {"html": "https://wpnews.pro/news/lex-dev-smartergpt-lex-4-0-4", "markdown": "https://wpnews.pro/news/lex-dev-smartergpt-lex-4-0-4.md", "text": "https://wpnews.pro/news/lex-dev-smartergpt-lex-4-0-4.txt", "jsonld": "https://wpnews.pro/news/lex-dev-smartergpt-lex-4-0-4.jsonld"}}