Skip to content

List raw cells after confirm and load configured remote URIs - #8

Merged
jepegit merged 1 commit into
mainfrom
1089-mcp-raw-search
Sep 23, 2026
Merged

jepegit merged 1 commit into
mainfrom
1089-mcp-raw-search

Conversation

@jepegit

@jepegit jepegit commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • find_cells(kind=raw) always calls find_by_project and returns needs_metadata: ["mass", "nominal_capacity"].
  • Remote rawdatadir listings return URIs (no silent found-0).
  • load_cell opens a remote URI only when it sits under configured rawdatadir / cellpydatadir (no .., no invented host). Pathlib sandbox is not widened to /.

Refs jepegit/cellpy#1089.

Test plan

  • uv run pytest in cellpy-mcp
  • kind=raw local hit + needs_metadata
  • remote list returns URIs
  • prefix allow / sibling / .. refuse on load_cell

Made with Cursor

Scenario 2 needs an explicit kind=raw search, needs_metadata, and a prefix-checked load so OtherPath rawdatadir works without opening the pathlib sandbox.
@jepegit
jepegit merged commit ffb8ae1 into main Sep 23, 2026
2 checks passed
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.

1 participant