Skip to content

MCP-DFT-002: MCP server does not reload on filesystem changes #91

@danieleades

Description

@danieleades

Observation

The MCP server loads the requirements directory once at startup and never reloads it when files or config change.

Evidence

  • req-mcp/src/state.rs wraps a Directory loaded only in ServerState::new.
  • req-mcp/src/main.rs initializes state once and never watches or refreshes it.

Impact

Active MCP sessions return stale data after edits, additions, deletions, or config changes, violating MCP-SYS-005 and risking incorrect guidance to agents.

Expected

Detect filesystem changes (requirements and .req/config.toml) and reload the directory so MCP tool calls always reflect current repository state without requiring a server restart.

Related Requirements

  • Parents: MCP-SYS-005
  • Tags: P2

Tracked in: MCP-DFT-002

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions