Skip to content

fix(mcp): route update_bank through config resolver, expose all fields#1168

Merged
nicoloboschi merged 1 commit intomainfrom
fix/mcp-update-bank-config-fields
Apr 21, 2026
Merged

fix(mcp): route update_bank through config resolver, expose all fields#1168
nicoloboschi merged 1 commit intomainfrom
fix/mcp-update-bank-config-fields

Conversation

@nicoloboschi
Copy link
Copy Markdown
Collaborator

Summary

  • Bug fix: The MCP update_bank tool was writing mission to the legacy banks.mission DB column instead of the config system (reflect_mission), causing the value to be silently ignored when reflect_mission was already set in config. The HTTP PATCH endpoint correctly routed through the config resolver — the MCP tool now does the same.
  • New fields: Exposes all bank-configurable fields via the MCP tool: reflect_mission, retain_mission, retain_extraction_mode, retain_custom_instructions, retain_chunk_size, enable_observations, observations_mission, disposition_skepticism, disposition_literalism, disposition_empathy.
  • Backwards compatible: The deprecated mission parameter is kept and mapped to reflect_mission (matching HTTP PATCH behavior).

Closes #1156

Test plan

  • Existing test_update_bank updated to verify config resolver routing
  • 12 new tests covering: reflect_mission, retain_mission, disposition traits, observations settings, extraction settings, all-fields-together, name-only (no config call), single-bank mode, bank_id override, reflect_mission precedence over mission
  • All 172 MCP tool tests pass
  • Lints pass

…ig_updates

The MCP update_bank tool was writing mission to the legacy DB column
instead of the config system, causing silent data loss. Now uses a generic
config_updates dict that passes through to config_resolver.update_bank_config(),
automatically supporting all current and future configurable fields without
MCP tool changes.

Closes #1156
@nicoloboschi nicoloboschi force-pushed the fix/mcp-update-bank-config-fields branch from 9021dd3 to ab3bb6a Compare April 20, 2026 15:53
@nicoloboschi nicoloboschi merged commit abbd361 into main Apr 21, 2026
53 of 54 checks passed
r266-tech added a commit to r266-tech/hindsight that referenced this pull request Apr 21, 2026
Follow-up to vectorize-io#1168: update_bank now accepts config_updates with all
bank-configurable fields (reflect_mission, retain_*, disposition_*,
entity_labels, recall_*, mcp_enabled_tools, etc.). Existing docs only
showed name + mission; callers had to read mcp_tools.py to discover the
full surface.

Mirrored to skills/hindsight-docs/references/developer/mcp-server.md per
the dual-doc convention (vectorize-io#1137).
nicoloboschi pushed a commit that referenced this pull request Apr 21, 2026
#1183)

* docs(mcp): document update_bank config_updates and configurable fields

Follow-up to #1168: update_bank now accepts config_updates with all
bank-configurable fields (reflect_mission, retain_*, disposition_*,
entity_labels, recall_*, mcp_enabled_tools, etc.). Existing docs only
showed name + mission; callers had to read mcp_tools.py to discover the
full surface.

Mirrored to skills/hindsight-docs/references/developer/mcp-server.md per
the dual-doc convention (#1137).

* docs(mcp): mirror update_bank config_updates docs to skills reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP update_bank silently drops mission field and doesn't expose disposition / reflect_mission / retain_mission / observations_mission

1 participant