from spectro_kernel import run_algorithm
output = run_algorithm("flat_combine_easyspec", ctx, {
"flat_dir": None,
"flat_paths": None,
"method": "median",
"header_hdu_entry": 0
})
spectro run flat_combine_easyspec --input spectrum.fits \
--param flat_dir=none \
--param flat_paths=none \
--param method=median \
--param header_hdu_entry=0
{
"tool": "flat_combine_easyspec",
"arguments": {
"session_id": "<session_id>",
"params": {
"flat_dir": null,
"flat_paths": null,
"method": "median",
"header_hdu_entry": 0
}
}
}
Every algorithm is an MCP tool of the same name; describe_algorithm returns
this page's metadata as JSON.