Skip to content

Forward optional nominal_capacity from load_cell to cellpy.get - #7

Merged
jepegit merged 1 commit into
mainfrom
1088-mcp-nom-cap
Sep 23, 2026
Merged

jepegit merged 1 commit into
mainfrom
1088-mcp-nom-cap

Conversation

@jepegit

@jepegit jepegit commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • MCP load_cell accepts optional nominal_capacity (number or unit string) and passes it to cellpy.get.
  • Result includes the applied value and nominal_capacity_was_supplied (same pattern as mass_mg).
  • Omitting the argument leaves cellpy’s default — no lab-looking fallback.

Refs jepegit/cellpy#1088.

Test plan

  • uv run pytest in cellpy-mcp (68 passed)
  • Confirm load_cell(..., mass_mg=2.1, nominal_capacity=320) reaches cellpy.get
  • Confirm omit path does not pass nominal_capacity=

Made with Cursor

Scenario 2 needs the user's 320 mAh/g on the same path as mass_mg; omitting it still leaves cellpy's default.
@jepegit
jepegit merged commit db91030 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