MCP · API integration guides

Software and AI uploads

Upload source files from scripts, laboratory software or an AI assistant. Check parsing, complete dataset information and submit for review.

Create API key

Uploads require uploads:write; also enable reactions:read for searches.

MCP connection setup

Connect your AI client

Streamable HTTP · Bearer

Add the service URL and Authorization header in a client that supports remote MCP. Configuration formats vary; a common mcpServers example is shown below.

https://your-isynth-host/api/mcp
{
  "mcpServers": {
    "isynth": {
      "url": "https://your-isynth-host/api/mcp",
      "headers": {
        "Authorization": "Bearer <ISYNTH_AUTOMATION_TOKEN>"
      }
    }
  }
}

Replace the placeholder with an iSynth MCP credential, not a model API key. Existing credentials cannot be retrieved; revoke and replace a lost one.

Prepare and submit data

Reaction JSON/JSONL is the shared specification. Upload existing CSV/Excel using column mappings and known units without refilling a template. Preserve author-original filenames, contents and formats for separate download. Save necessary processing results separately, retaining CSV/Excel or other source formats where practical, for import, reaction display and download.

MCP file uploads only: import existing CSV/Excel directly via column mappings only when headers, structures and values are already clean and self-contained. Whenever companion lookup/sheet/SI code joins (e.g. Co-3, A1 across any participant role—never map codes to *_name), header/placeholder/Excel-ratio (15:01) fixes, shared table conditions or archive decoding are needed, write deterministic local code first to produce a clean processed file (retaining CSV/Excel for single-step tables or JSONL for multistep, and re-verifying any cached local files), without inventing unreported external facts. Preserve author-original files (including lookup tables) unchanged for source preview and download; link and use the clean processed file for import, reaction display and download. Skip records that cannot be reliably prepared while submitting the qualifying remainder.

Percent is dimensionless notation. Public JSON uses quantity strings, for example "85 %" or "0.85 fraction". Keep original table cells such as 85%; source_units declares a verified scale for bare numbers. Never infer it from magnitude.

  1. 01

    Confirm and validate

    Confirm the contribution agreement first, then check fields, structures and metadata.

  2. 02

    Upload

    Save agreement consent on the first file and check parsing; append multiple files to one dataset.

  3. 03

    Submit for review

    Review parsing results, describe data processing and submit reusing saved agreement consent.

MCP submission workflow and tools

Upload unchanged with mappings only when a source table is already clean and self-contained; when companion lookup codes (e.g. Co-3, A1), header/format repairs or archive decoding are needed, prepare a clean processed copy via local code first and archive untouched originals.

  1. 1

    Confirm agreement and prepare sources locally

    Read the upload checklist once and obtain explicit /data-rights acceptance before processing, validating or uploading files (unless draft/test was requested or consent is already saved on the target dataset). After confirmation, inspect source tables alongside companion lookup files, sheets and SI. Use direct column mappings (file_role=reactions) only when a table is already clean and self-contained; whenever any participant role uses lookup codes (e.g. Co-3, A1—never map codes to *_name or leave codes inside *_smiles columns), companion lookups/SI, header/placeholder/Excel-ratio fixes (e.g. 15:01 for 15:1) or archive decoding, write deterministic local code first to produce a clean isynth_ processed file (re-verifying any cached local files) while archiving untouched originals (including lookup files) as file_role=original. Reserve reaction_identifier for per-reaction/well IDs, never batch/group numbers. Publish basenames and page/sheet/entry locators; local paths and hashes stay in the local report.

    get_upload_requirements · /data-rights · get_reaction_fields

  2. 2

    Upload every file

    Save the confirmed rights_declaration on the first file and complete its transfer to obtain the dataset/version receipt. Start a separate session for each remaining file using the same dataset/version. Upload each Excel workbook once and parse the selected sheets. Prefer one whole-file HTTP PUT; byte transfer is a fallback only for clients unable to send HTTP file bodies. Retry an interrupted file independently.

    start_file_upload · HTTP PUT · get_file_upload_status (fallback: transfer_file_bytes)

  3. 3

    Check and submit for review

    Review proportion scales, units, amount owners, missing identities, mapping_review and each parse report; acceptance does not establish mapping completeness. Describe the source and actual processing for V1, or changes for later versions. Reuse the agreement consent saved on the first file and submit once after all files are ready without asking again; honor draft/test requests.

    get_file_report · get_dataset_status · submit_dataset_for_review

Example request

Use iSynth MCP: first ask me to confirm the contribution agreement (/data-rights), then after I agree, follow the current server instructions to prepare and upload my chemical reaction data and return the dataset links, actual status and progress report location.

Ordinary uploads continue through review submission. Clients with filesystem access maintain a Markdown progress/issues report by default. Report missing facts or explicit agreement consent; submission enters platform review before publication.

Upload workflow

get_upload_requirements (overview; topic details only when needed)
confirm explicit /data-rights acceptance FIRST (wait before processing/validating/uploading; skip only for draft/test or saved consent)
CSV/XLSX: validate_reaction_records → get_reaction_fields(format=table) for unresolved mappings
JSON/JSONL: get_reaction_fields(format=json) when preparing records
start_file_upload (save rights_declaration on first file; file_role=reactions or original → processed)
  HTTP PUT (whole file, auto-finish)
  fallback only: transfer_file_bytes (complete=true on last call)
get_file_report → get_dataset_status
submit_dataset_for_review (reuses saved consent; skip for draft/test) → get_dataset_status

For ordinary contributions, obtain explicit acceptance of /data-rights before validating, preparing or uploading data, save it on the first file, and reuse it at review submission. Standard table headers can be validated first; inspect mapping_review and reaction_check. Read the table catalog only for unresolved mappings and verify meanings against the source. Uncertain or redundant fields may remain source-only with meaningful descriptions; do not hide supported facts merely to remove validation errors. JSON/JSONL follows the reaction schema directly, without column mappings. Use the same column_mapping and source_units for validation and upload. Additional files reuse dataset_id/version_num from the receipt. Unless a draft or test was requested, submit after processing; publication follows approval.

Resume the same upload or retry failed parsing. Clients prefer one whole-file PUT. Only clients unable to send HTTP file bodies use client-coded byte parts. Do not split or rebuild author-original XLSX files. Save necessary conversions only as separate processed files. If an earlier draft lacks saved consent, preserve the draft and await explicit agreement acceptance before review submission.

Additional files, versions and descriptions

Additional files reuse dataset_id/version_num from the first completed file. Archive each original workbook in full. Import reaction data from the separate result; lookup tables and predictions are not additional experiments. Selected sheets share one mapping and unit declaration, so same-named columns must have the same meaning and unit.

Read get_dataset_status before changing an existing dataset and reuse an editable draft. Call create_dataset_version only when there is no draft and a published base exists. Metadata-only changes use update_dataset_metadata without a new version.

R identifies an internal unpublished revision; V identifies an approved file release. Requests use version_num to address revisions. Review status is separate from version names and data-processing summaries.

The dataset description introduces research context, reaction systems, scope, measured variables and briefly how the data were obtained; project names may be mentioned naturally. Populate energy_input and tags to match actual activation modes, tasks and reaction classes, and keep titles free of local folder names or batch codes. Keep DOI/URL citations in source. Use one or two sentences in file_description for the scientific contents of this file, row meaning and sheets, without check logs. Use 1–3 sentences in version_note for actual version-wide processing. preparation.summary adds only distinct file-specific steps, choices or limitations without repeating version_note or file_description. sources lists original filenames with worksheet/row or publication page/table references. These appear together in one expanded processing card. Use concise prose; detailed checks and status logs stay local.

Use get_file_upload_status after a transfer interruption. Only counts_final=true reports final row counts. Retry get_file_report after a report-read failure; reprocess_file explicitly restarts processing only when needed. Test or draft requests remain drafts and are not submitted for review.

Local file organization

Use one task directory and one subdirectory per dataset or independent source set. Keep related files, prepared outputs, necessary scripts and evidence together. Update one progress.md at the root instead of creating duplicate reports or serial status snapshots. Original files keep their names and may remain in their existing locations.

upload-task/
  progress.md
  aldol/       # related files, optional preparation and evidence
  michael/     # another dataset or independent source set