Skip to main content

science-assistant-client

High-level client for Science Assistant. It is built on mcp_proxy_adapter.client.jsonrpc_client.JsonRpcClient; it does not implement a second JSON-RPC/TLS stack.

Installation

Online:

python -m pip install science_assistant_client-<version>-py3-none-any.whl

Offline release archive:

unzip science-assistant-client-offline-<version>.zip
python -m pip install --no-index --find-links wheels wheels/science_assistant_client-<version>-py3-none-any.whl

The archive contains the client wheel, the matching mcp-proxy-adapter wheel and its dependency wheels, examples and tests.

Configuration

Environment variables:

  • SCIENCE_ASSISTANT_PROXY_PROTOCOL, default https;
  • SCIENCE_ASSISTANT_PROXY_HOST, default mcp-proxy.techsup.od.ua;
  • SCIENCE_ASSISTANT_PROXY_PORT, default 3004;
  • SCIENCE_ASSISTANT_PROXY_TOKEN_HEADER and SCIENCE_ASSISTANT_PROXY_TOKEN;
  • SCIENCE_ASSISTANT_PROXY_CERT, SCIENCE_ASSISTANT_PROXY_KEY, SCIENCE_ASSISTANT_PROXY_CA;
  • SCIENCE_ASSISTANT_SERVER_ID, default science-assistant-vvz;
  • SCIENCE_ASSISTANT_COPY_NUMBER, default 1.

Client and server release versions must match. The first operation calls info(include_markdown=false) and raises VersionMismatchError when they differ.

Python

from science_assistant_client import ScienceAssistantClient

client = ScienceAssistantClient()
info = client.info()  # all pages are assembled automatically
client.upload_file("/mnt/data/input.fits", "incoming/input.fits")
client.download_file("exports/result.ecsv", "/mnt/data/result.ecsv")
result = client.call("astroquery_object", {"service": "simbad", "target": "M 31"})

Async usage:

from science_assistant_client import AsyncScienceAssistantClient

async with AsyncScienceAssistantClient() as client:
    result = await client.query_catalog(catalog="J/ApJ/714/25", row_limit=10)

Uploads and downloads persist sidecar state files until completion. Retry with the same paths to resume from the server-confirmed raw-byte offset. Final size and SHA-256 are mandatory.

CLI

science-assistant-client info
science-assistant-client upload /mnt/data/input.bin incoming/input.bin
science-assistant-client download incoming/input.bin /mnt/data/copy.bin
science-assistant-client call astroquery_object --params '{"service":"simbad","target":"M 31"}'

Dedicated Python 3.13 environment

The release also contains science-assistant-client-py313-linux-x86_64-<version>.zip. After extraction:

./create_venv.sh /mnt/data/science-assistant-client-venv

This creates an isolated environment and installs every dependency from the included wheelhouse without network access.

The direct JsonRpcClient transport still requires a network route to MCP Proxy. In an agent runtime where call_server is supplied as a callable bridge, pass a compatible proxy_client object to AsyncScienceAssistantClient. ChatGPT's isolated Python sandbox does not expose model tools as importable Python functions, so tool calls there remain controlled by the model runtime rather than by the venv.

Library and CLI

The distribution is a normal Python package. Import ScienceAssistantClient or AsyncScienceAssistantClient from application code, and use the installed science-assistant-client CLI for shell workflows. The package-upload CLI command sends independently checksummed parts and requests verified server-side assembly.

The standalone mcp_file_parts.py model-tool bridge is a separate release artifact. It is intentionally not imported by this package and has no network dependencies.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

science_assistant_client-0.2.23.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

science_assistant_client-0.2.23-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file science_assistant_client-0.2.23.tar.gz.

File metadata

File hashes

Hashes for science_assistant_client-0.2.23.tar.gz
Algorithm Hash digest
SHA256 5ca4c68a45190b0af652b18add3bddd3b7bd5107b2c03a4974196966a2e968a6
MD5 fd7939c87f9ff4e5a0da2316f3b49352
BLAKE2b-256 6baee79df5f2e3bdf67f548aa18873b93c879783b7c61448cbd6c98f86dace7b

See more details on using hashes here.

File details

Details for the file science_assistant_client-0.2.23-py3-none-any.whl.

File metadata

File hashes

Hashes for science_assistant_client-0.2.23-py3-none-any.whl
Algorithm Hash digest
SHA256 373a709699a77fc4e457d64da8e64f10208c52e0cca28e56ed65c73f62e3dc6f
MD5 3961f8645362c6db462f731bba2f3f50
BLAKE2b-256 1ff2e9579c7e1405878484ec82494d1119c2fa6f02649cd39b1a5808f909da1e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.27

2 files

0.2.26

2 files

0.2.25

2 files

0.2.24

2 files

This release

0.2.23 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page