About Memory Hub
Memory Hub is an MCP server published by redhat-ai-americas in the Cloud category: sanitized reference architecture for a self-hosted second-brain memory layer. Conduid read 15 tools from its source: admin_memory, delete_memory, list_memory, manage_curation, manage_graph, manage_project and 9 more. No package is published for it, so it installs from a source checkout.
The repository has 27 stars and 18 forks, and its last commit was on 30 Nov 2026. Conduid has no tagged release on record for it. Its topics include automation, debugging, graphify, incident, infrastructure and ingest.
Install
git clone https://github.com/redhat-ai-americas/memory-hubTools (15)
admin_memoryAdmin content moderation operations. Requires memory:admin scope.| Parameter | Type | Description |
|---|---|---|
| action * | string | Admin action: search, quarantine, restore, hard_delete |
| memory_id | string | Memory UUID (required for quarantine/restore/hard_delete) |
| options | object | Action-specific options. search: regex, cross_tenant, scope_filter, max_results, include_statuses. quarantine: reason (required), incident_reference. restore: reason (required). hard_delete: reason (required), incident_reference, sanitized_audit. |
| query | string | Search query (required for search) |
delete_memorySoft-delete a memory and its entire version chain.| Parameter | Type | Description |
|---|---|---|
| driver_id | string | Identity of the upstream human or system driving this delete. Omit to use the session default or the authenticated actor_id. Recorded in the audit log. |
| memory_id * | string | ID of any version of the memory to delete. The entire version chain (older + newer versions) plus child branches will be soft-deleted. You can pass any version ID — the tool walks the chain in both directions. |
| project_id | string | Your project identifier. Required when deleting a campaign-scoped memory — used to verify your project is enrolled in the campaign. |
list_memory| Parameter | Type | Description |
|---|---|---|
| content_type | string | (Advanced) Filter by content type. 'knowledge' for facts and preferences, 'behavioral' for demonstrated patterns, 'procedural' for directed-graph runbooks. Omit to list all types. |
| current_only | boolean | If true, only returns current versions. |
| cursor | string | Pagination cursor from a previous list response. Pass next_cursor to get the next page. |
| include_branches | boolean | If true, include branch memories. Default false. |
| max_results | integer | Maximum results to return (1-200). |
| project_id | string | Project identifier. Limits results to this project. |
| scope | string | Filter to a specific scope: user, project, campaign, role, organizational, enterprise. Omit to list all accessible scopes. |
| tenant_id | string | Target tenant to list from. Omit to use the session's own tenant. Must be a tenant the caller is authorized for. |
| verbose | boolean | Return full metadata per result. When False, returns only id + content, dramatically reducing token overhead. The unified memory() dispatcher defaults to False for agent callers. |
manage_curation| Parameter | Type | Description |
|---|---|---|
| action * | string | The curation operation to perform. One of: 'report_contradiction' (signal that observed behavior conflicts with a stored memory), 'resolve_contradiction' (close out a contradiction report with a disposition), 'set_rule' (create or update a user-layer curation rule). |
| action_type | string | action='set_rule': Action on match: 'flag', 'block', 'quarantine', 'reject_with_pointer', 'decay_weight'. |
| confidence | number | action='report_contradiction': How confident the agent is that this is a real contradiction (0.0-1.0). Temporary exceptions warrant lower confidence. Repeated, consistent contradictions warrant higher. |
| config | object | action='set_rule': Tier-specific config. For embedding: {"threshold": float}. For regex: {"pattern": string}. |
| enabled | boolean | action='set_rule': Whether this rule is active. |
| observed_behavior | string | action='report_contradiction': Description of what was observed that conflicts with the memory. Be specific: 'User created a Docker Compose project with 12 services' not just 'used Docker'. |
| priority | integer | action='set_rule': Evaluation priority (lower = higher priority). Default: 10. |
| project_id | string | action='report_contradiction': Your project identifier. Required when the target memory has campaign scope — used to verify your project is enrolled in the campaign. |
| resolution_action | string | action='resolve_contradiction': Disposition for the report. One of: 'accept_new' (the new observation supersedes the memory), 'keep_old' (the memory stands; observation was an exception), 'mark_both_invalid' (neither is authoritative), 'manual_merge' (a human will reconcile manually). |
| resolution_note | string | action='resolve_contradiction': Optional rationale for the resolution, for audit purposes. |
| scope_filter | string | action='set_rule': Scope this rule applies to (user, project, etc). Null for all scopes. |
| tier | string | action='set_rule': Rule tier: 'regex' or 'embedding'. |
manage_graph| Parameter | Type | Description |
|---|---|---|
| action * | string | The graph operation to perform. One of: 'create_relationship' (link two memory nodes with a typed edge), 'get_relationships' (query edges for a node, with optional provenance tracing), 'get_similar' (find near-duplicate memories by cosine similarity), 'get_guidance' (localized procedural guidance for one current step). |
| as_of | string | action='get_relationships': ISO-8601 timestamp to query edges active at that point in time. Omit to return only currently active edges. |
| direction | string | action='get_relationships': Which edges to return — 'outgoing' (this node is the source), 'incoming' (this node is the target), or 'both'. Default: 'both'. |
| include_provenance | boolean | action='get_relationships': If true, follows derived_from edges backward from this node to build a provenance chain showing which source memories this node was derived from. |
| max_hops | integer | action='get_guidance': Neighborhood size in edges. Default 2, the paper's neighborhood. Counts edges from node_id and includes distances 1 through this value. Hard cap 5. Traverses precedes, requires, and alternative_to. |
| max_results | integer | action='get_similar': Maximum results per page. Default: 10. |
| metadata | object | action='create_relationship': Optional key-value pairs to attach to the relationship edge. To suggest a merge, pass relationship_type='conflicts_with' with metadata={'merge_suggested': true, 'reasoning': '...'}. |
| offset | integer | action='get_similar': Pagination offset. Default: 0. |
| relationship_type | string | action='create_relationship': Type of relationship. Must be one of: derived_from, supersedes, conflicts_with, related_to, precedes, requires, alternative_to. 'mentions' is system-managed by entity extraction and cannot be created via this tool. Required for create_relationship. action='get_relationships': Filter by this type; omit to return all types. |
| target_id | string | action='create_relationship': UUID of the target memory node (the 'to' end of the edge). Required for create_relationship. |
| threshold | number | action='get_similar': Minimum cosine similarity (0.0–1.0). Default: 0.80. |
manage_project| Parameter | Type | Description |
|---|---|---|
| action * | string | The operation to perform. One of: 'list' (discover projects), 'create' (new project), 'describe' (project details + members), 'add_member' (add user to project), 'remove_member' (remove user from project). |
| description | string | Project description. Used with action='create'. |
| filter | any | Used with action='list'. 'mine' (default): only your projects. 'all': also shows open projects you could join. |
| invite_only | boolean | Enrollment policy. Used with action='create'. False (default): anyone can join by writing a project-scoped memory. True: members must be added explicitly. |
| project_name | string | Project identifier. Required for create, describe, add_member, remove_member. |
| role | string | Role for the user. Used with action='add_member'. One of: 'member' (default), 'admin'. |
| user_id | string | Target user. Required for add_member and remove_member. |
manage_session| Parameter | Type | Description |
|---|---|---|
| action * | string | The operation to perform. One of: 'status' (check your current session identity and project memberships), 'set_focus' (declare the session's focus topic for history and broadcast filtering), 'focus_history' (retrieve a per-project histogram of recent session focus declarations). |
| end_date | string | Used with action='focus_history'. End of the date range, inclusive, in ISO format YYYY-MM-DD. Defaults to today (UTC). |
| focus | string | Required for action='set_focus'. A short natural-language topic describing this session's current focus. 5-10 words work best. Examples: 'deployment', 'MCP tool design for session focus', 'UI panel for curation rules'. The SDK normally infers this from working directory or first user turn, but agents can declare explicitly or update mid-session when the conversation pivots. |
| project | string | Required for action='set_focus' and action='focus_history'. The project identifier this session belongs to. Typically matches the `project` field of project-scope memories and the `project` value in `.memoryhub.yaml`. Required so history aggregation can scope per-project. |
| start_date | string | Used with action='focus_history'. Start of the date range, inclusive, in ISO format YYYY-MM-DD. Defaults to 30 days before end_date. |
memory| Parameter | Type | Description |
|---|---|---|
| action * | string | The operation to perform. See action reference in docstring. |
| content | string | Memory text. Required for: write. Optional for: update. |
| memory_id | string | UUID of target memory. Required for: read, update, delete, similar, relationships, guidance, report. |
| options | object | Action-specific parameters. See reference table in docstring. |
| project_id | string | Project identifier. Required for: write (project/campaign scope), set_focus, focus_history, describe_project, add_member, remove_member. |
| query | string | Natural language search text. Required for: search. When options.current_step_id is set, the text is still required but the server ignores it and returns localized guidance. |
| scope | string | Scope: user, project, campaign, role, organizational, enterprise. Required for: write. Optional filter for: search. |
personaRetrieve, compile, or edit a user's standing persona profile.| Parameter | Type | Description |
|---|---|---|
| action * | string | Persona operation: 'get', 'compile', or 'edit'. |
| options | object | Action-specific parameters. For 'edit', provide edit_action='add_pin' or 'list_pins'; 'add_pin' also requires content. |
| project_id | string | Project scope for 'get' and 'compile' actions. |
| user_id | string | User ID. Defaults to the authenticated session user. |
read_memory| Parameter | Type | Description |
|---|---|---|
| history_max_versions | integer | Maximum number of versions to return when include_versions is true (1-100). |
| history_offset | integer | Number of versions to skip from newest when include_versions is true. Use for pagination on long-lived memories. |
| hydrate | boolean | When true and the memory uses external (S3) storage, fetches the full content instead of the truncated prefix. Set to true when you need the complete content — for example, after finding a chunk via search and following parent_id to the full memory. Has no effect on inline memories. |
| include_versions | boolean | If true, includes version history alongside the current content. Useful for understanding how a memory evolved. Supports pagination via history_offset and history_max_versions. |
| memory_id * | string | The UUID of the memory to read. |
| project_id | string | Your project identifier. Required when the target memory has campaign scope — used to verify your project is enrolled in the campaign. |
| resolve_current | boolean | When true and the requested memory is a superseded version (is_current=false), automatically resolve to the current version via logical_id and return that instead. |
| tenant_id | string | Target tenant to read from. Omit to use the session's own tenant. Must be a tenant the caller is authorized for. |
register_sessionRegister this session with an API key or attach JWT session metadata.| Parameter | Type | Description |
|---|---|---|
| api_key * | string | Your MemoryHub API key. Provided by the system administrator. Format: mh-dev-<hex>. |
| default_driver_id | string | Identity of the upstream human or system on whose behalf the agent is acting. When set, every write in this session records this as the driver_id unless overridden per-call. Omit when the agent is acting autonomously (driver_id defaults to the authenticated actor_id). |
search_memory| Parameter | Type | Description |
|---|---|---|
| content_mode | string | Content delivery mode for S3-backed memories. 'stub' (default): returns the stored prefix with honesty flags (content_truncated, full_available) so agents can follow up with read_memory(hydrate=true) for specific memories. 'full': hydrates full content from S3 storage before returning. Use 'full' in eval/benchmark harnesses. |
| content_type | string | (Advanced) Filter by content type. 'knowledge' for facts and preferences (default search scope), 'behavioral' for demonstrated patterns, 'procedural' for directed-graph runbooks. Omit to search all types. |
| current_only | boolean | (Advanced) If true, only returns current versions. Set false for forensic searches. |
| current_step_id | string | UUID of the procedural step the agent is on. When set, skip embedding and ranking and return localized guidance for that step's neighborhood (default 2 hops over precedes, requires, and alternative_to). The id is the current step, not a procedure root and not a search hit — pass it explicitly. query is still required and is ignored; the response sets query_ignored to true. focus, graph_depth, domains, entities, and graph_relationship_types are not applied; any of those you set are listed in ignored_parameters. When omitted, search behaves exactly as before, including content_type='procedural', which stays a ranked list of memories. |
| disabled_signals | array | (Advanced) RRF signals to disable for ablation testing. Valid names: reranker, focus, keyword, domain, graph. Vector similarity is always active. Disabled signals are reported in the response metadata. |
| domain_boost_weight | number | (Advanced) Domain boost strength (0.0-1.0). Default 0.3. Ignored when domains is not set. |
| domains | array | (Advanced) Domain tags to boost in results (e.g., ['React']). Matching results rank higher. Non-matching still appear. |
| entities | array | Filter to memories that mention these entity names. Entity names are matched case-insensitively against extracted entity nodes linked via MENTIONS relationships. Composes with all other filters (scope, domain, graph_depth). |
| exclude_source | string | Exclude memories from a specific source. Useful for ablation testing: exclude_source='dreaming' reproduces the library-only baseline by filtering out extracted memories. |
| focus | string | (Advanced) Session focus string (e.g., 'OpenShift deployment'). Biases retrieval toward memories matching this focus in addition to the query. Pass on every call (stateless). |
| graph_boost_weight | number | (Advanced) Graph proximity boost strength (0.0-1.0). Default 0.2. Higher values favor graph-connected memories. Ignored when graph_depth is 0. |
| graph_depth | integer | (Advanced) Hop depth for graph-enhanced retrieval. When > 0, follows relationships from vector search results to surface connected memories. 0 (default) disables graph traversal. Max 3. Not applied when current_step_id is set; that path skips ranking. A value greater than 0 on that path is listed in ignored_parameters. |
| graph_relationship_types | array | (Advanced) Limit graph traversal to these relationship types (e.g., ['derived_from', 'related_to']). Null means all types. Only used when graph_depth > 0. |
| include_branches | boolean | (Advanced) If true, nest branch memories (rationale, provenance) under their parent. Default false omits them — use read_memory to drill in when has_rationale or has_children is flagged. |
| max_hops | integer | Neighborhood size in edges for current_step_id. Default 2, the paper's neighborhood. Counts edges from the current step and includes distances 1 through this value. Hard cap 5. Ignored unless current_step_id is set. |
| max_response_tokens | integer | (Advanced) Soft cap on total response tokens. Past this cap, remaining results degrade to stubs. 0 disables the cap (no degradation). Default 4000. |
| max_results | integer | Maximum results to return (1-200). Keep low (5-15) to avoid context bloat. |
| mode | string | (Advanced) Result detail mode. 'full' (default): full content for high-weight matches, stubs for low. 'index': stubs only (for exploratory searches). 'full_only': always full content, no token budget degradation. |
| owner_id | string | (Advanced) Filter to a specific owner's memories. Omit to default to your user_id. Pass empty string to search across all owners. |
| project_id | string | Your project identifier. Restricts project-scoped results to this project only. Also resolves campaign-scoped memories for campaigns this project is enrolled in. Omit to include project memories from ALL projects you belong to. |
| query * | string | Natural language search query. Be specific -- 'container runtime preferences' works better than 'containers'. The query is embedded and compared via cosine similarity. When current_step_id is set, this text is still required but is not embedded or ranked. The response sets query_ignored to true and lists it in ignored_parameters. |
| raw_results | boolean | (Advanced) When True, return results ranked by similarity score instead of cache-optimized stable ordering. Default False. |
| retrieval_unit | string | (Advanced) Control which memory unit type is returned. 'facts' returns extracted fact nodes only; 'chunks' returns matched chunks directly; 'parents' returns parent memories only; 'auto' returns facts when available, otherwise parents. Default None (existing behavior: expand chunks to parents). |
| return_chunks | boolean | (Advanced) When True, return matched chunks directly instead of expanding them to their parent memories. Produces smaller, more focused results. Use read_memory(hydrate=true) on the parent_id if full context is needed. Default False. |
| scope | string | Filter to a specific scope: user, project, campaign, role, organizational, enterprise. Omit to search all accessible scopes. |
| session_focus_weight | number | (Advanced) Focus bias strength (0.0-1.0). Default 0.4. Higher values favor on-focus recall. Ignored when focus is None. |
| source | string | Filter by memory source. 'agent' for agent-written memories, 'dreaming' for memories extracted by the dreaming pipeline, 'import' for bulk-imported memories. Omit to include all sources. |
| temporal_status | string | Filter by temporal status. 'current' shows memories with no semantic expiry or expiry in the future. 'expired' shows memories past their relevant_until date. 'expiring_soon' shows memories expiring within 7 days. 'all' disables the filter (default). |
| tenant_id | string | Target tenant to search in. Omit to use the session's own tenant. Must be a tenant the caller is authorized for. |
| verbose | boolean | Return full metadata per result. When False, returns only id + content + result_type, dramatically reducing token overhead. The unified memory() dispatcher defaults to False for agent callers. |
| weight_threshold | number | (Advanced) Memories with weight below this value return as stubs instead of full content. Default 0.0 (all full). |
threadConversation thread operations. Call register_session first.| Parameter | Type | Description |
|---|---|---|
| action * | string | The operation to perform: create, append, get, list, archive, extract, fork, share, delete. |
| content | string | Message content. Required for: append. |
| options | object | Action-specific parameters. |
| role | string | Message role: user, assistant, tool_call, tool_result, system. Required for: append. |
| scope | string | Scope: user, project, campaign, role, organizational, enterprise. Required for: create. Optional filter for: list. |
| thread_id | string | Thread UUID. Required for: append, get, archive. |
update_memory| Parameter | Type | Description |
|---|---|---|
| content | string | New content text. Omit to keep existing content (useful for weight-only updates). |
| domains | array | New domain tags to replace existing ones. Omit to keep existing domains. |
| driver_id | string | Identity of the upstream human or system driving this update. Omit to use the session default or the authenticated actor_id. |
| memory_id * | string | ID of the current memory to update. Must be a current (isCurrent=true) version. |
| metadata | object | New metadata to merge with existing metadata. Omit to keep existing. |
| project_id | string | Your project identifier. Required when updating a campaign-scoped memory — used to verify enrollment. |
| weight | number | New injection priority (0.0-1.0). Omit to inherit from previous version. |
write_memory| Parameter | Type | Description |
|---|---|---|
| branch_type | string | Required when parent_id is set. Common types: rationale, provenance, description, evidence, approval. |
| chunk_overlap_tokens | integer | (Advanced) Overlap tokens between consecutive chunks. Omit to use the server default (0). Overlap preserves context at chunk boundaries for better retrieval. |
| chunk_target_tokens | integer | (Advanced) Target tokens per chunk for oversized content. Omit to use the server default (256). Smaller values produce more focused chunks; larger values preserve more context. |
| content * | string | The memory text. Should be clear and self-contained. |
| content_type | string | (Advanced) Memory content type. Defaults to 'experiential' (agent-created memories). Use 'knowledge' for facts and preferences, 'behavioral' for demonstrated patterns and successful approaches, 'procedural' for directed-graph runbooks (procedure root + procedure_step children). Behavioral memories are not injected by default -- use the reconstruct action to retrieve them. Procedural graphs are not returned by reconstruct; retrieve them by content_type filter or by walking the procedure subtree. |
| domains | array | Crosscutting knowledge domain tags (e.g., 'React', 'Spring Boot', 'CORS'). Improves retrieval for domain-relevant queries. Optional at any scope. |
| driver_id | string | Identity of the upstream human or system driving this write. Omit to use the session default (set at register_session time) or the authenticated actor_id if no default is set. |
| extract_facts | string | Fact extraction mode: 'eager' extracts via MCP sampling during this call regardless of content size; 'off' skips extraction; 'background' defers to the background dreaming path (not yet implemented, currently a no-op). Omit to use the server default (eager only when content exceeds the chunking threshold). Only applies to root memories, not branches. |
| force | boolean | (Advanced) Bypass near-duplicate similarity gates. Regex rules (secrets, PII) are never bypassed. |
| metadata | object | Arbitrary key-value pairs for tags, source references, etc. |
| owner_id | string | The user, project, or org this memory belongs to. For user-scope, this is the user ID. Omit to use your authenticated user_id (requires register_session). |
| parent_id | string | UUID of the parent memory node when creating a branch. Omit for root-level memories. |
| project_description | string | Description for the project when auto-creating it on first project-scoped write. Ignored if the project already exists. Helps other agents understand what the project is about in manage_project output. |
| project_id | string | Your project identifier. Required when scope is 'project' or 'campaign'. For project scope, the memory is tagged to this project and only project members can read it. For campaign scope, used to verify your project is enrolled in the campaign. |
| relevant_until | string | ISO 8601 timestamp for semantic expiry (e.g. '2026-12-31T23:59:59Z'). When set, indicates when this memory's content becomes stale. Distinct from storage lifecycle (expires_at). Omit to let the temporal classifier auto-detect from content. |
| scope | string | One of: user, project, campaign, role, organizational, enterprise. Defaults to 'user' -- most agent-created memories are user-scoped. For campaign scope, set owner_id to the campaign UUID and provide project_id for enrollment verification. |
| tenant_id | string | Target tenant for this write. Omit to use the session's own tenant. Must be a tenant the caller is authorized for. |
| upstream_trust_level | string | Trust level of the material this memory came from: 'trusted' (direct user input, verified tool output), 'untrusted' (web scrapes, unverified MCP servers, browser automation), or 'mixed' (both, and the memory cannot be attributed to only the trusted part). Omit for 'trusted'. Set this when writing anything derived from content you did not authenticate. The value is advisory and is surfaced to readers as taint metadata; it is set once and inherited by later versions, so it cannot be raised after the fact. |
| weight | number | Injection priority from 0.0 to 1.0. High-weight (0.8-1.0) memories get full content injected. Default 0.7. |
Security checks
6 checks have not been run yet.