This repository is a sanitized, reusable package. It does not contain personal API keys, Zotero configuration, local workspace state, generated experiment outputs, or machine-specific MCP configuration.
{
"mcpServers": {
"origin-pro": {
"command": "python",
"args": ["-u", "PATH_TO_REPO/server.py"]
}
}
}
On machines without Origin Pro, Origin-dependent tests are skipped. On a Windows machine with Origin Pro available, the integration tests exercise the real COM workflow.
new_project()
create_worksheet(book_name="Data", sheet_name="Sheet1")
set_worksheet_data(
book_name="Data",
sheet_name="Sheet1",
columns="[[0,1,2,3],[0.02,0.08,0.18,0.36],[0.11,0.42,0.90,1.62]]",
column_names="Bias,Dark,Light"
)
create_graph(graph_name="Fig1", data_book="Data", data_sheet="Sheet1", x_col=1, y_col=2, plot_type="line+symbol")
add_plot_to_graph(graph_name="Fig1", data_book="Data", data_sheet="Sheet1", x_col=1, y_col=3, plot_type="line+symbol")
apply_publication_style(
graph_name="Fig1",
x_label="Voltage (V)",
y_label="Current density (mA cm^-2)",
x_min=0,
x_max=3,
y_min=0,
y_max=2,
legend_entries="Dark,Light",
legend_position="top-left"
)
export_graph(graph_name="Fig1", file_path="OUTPUT_DIR/Fig1.png")
Before publishing derived versions, run a secret scan for keys, tokens, passwords, local connector names, and machine-specific paths. For example: