* fix(mcp): detect Dolt-backed projects in workspace discovery (GH#2997)
The MCP `context()` tool reported "Database: Not found" for embedded Dolt
projects because `_find_beads_db()` and `_find_beads_db_in_tree()` only
globbed for `*.db` files. Embedded Dolt projects keep their data under
`.beads/embeddeddolt/` and declare the backend in `.beads/metadata.json`
— there is no `*.db` file to find.
Adds `_has_beads_project_files()` mirroring Go's `hasBeadsProjectFiles`
(metadata.json, config.yaml, dolt/, embeddeddolt/, or non-backup *.db).
Both Python discovery functions (and `.beads/redirect` validation) now
use this check, so SQLite, embedded Dolt, and server Dolt projects are
all recognized.
`context()` now reports the project root and backend when no SQLite db
is present, instead of the misleading "Not found".
* fix: delegate _find_beads_project to _find_beads_db_in_tree for redirect support
Addresses review item #2: _find_beads_project duplicated the upward
directory walk but skipped .beads/redirect handling. Now delegates to
_find_beads_db_in_tree, inheriting redirect, symlink, and all backend
detection for free.
Amp-Thread-ID: https://ampcode.com/threads/T-019d84e2-3a96-7263-a399-c3b2cc0ba6bb
Co-authored-by: Amp <amp@ampcode.com>
---------
Co-authored-by: Amp <amp@ampcode.com>