Skip to content

About

BioRouter BRXT extension for ClinicalVariantAgent

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ClinicalVariantAgent

Final release. ClinVar, MyVariant.info and ClinPGx lookups, now covered by BioMCP (BioMCPAgent), which replaces this extension. It keeps working until you switch, and gets no further updates.

Current version: 0.2.0

Sunset. ClinicalVariantAgent is now part of BioMCP (BAAM id biomcpagent). This extension gets no further updates. Why: Variant, gene and clinical evidence lookups now live in BioMCP, which covers ClinVar, MyVariant, MyGene, ClinicalTrials.gov and more. Use instead: Install BioMCP (BioMCPAgent) from BAAM. For raw NCBI or Ensembl identifier lookups, Public Bio Databases also works.

This is a Biorouter extension (a .brxt bundle) built on the BRXT adapter kit 1.0.0. Install it from BAAM in Biorouter, or from a file:

biorouter extension install dist/clinicalvariantagent.brxt

Tools

  • clinicalvariant_status: shows which targets are configured, their routes and which settings are present. It never shows a value and makes no network call.
  • clinicalvariant_get: reads from a target. It sends GET, or POST on routes declared as reads, and is marked read only, so Biorouter's Smart approval runs it without asking.

Targets

Target Base URL Credential Reads Writes
clinvar_eutils https://eutils.ncbi.nlm.nih.gov/entrez/eutils none GET /*.fcgi none
myvariant https://myvariant.info/v1 none GET /** none
clinpgx https://api.clinpgx.org/v1 none GET /** none

Settings

Variable Required Secret Purpose
CLINICAL_VARIANT_CONTACT_EMAIL no no Contact email sent to NCBI, which asks callers to identify themselves
CLINICAL_VARIANT_LOG_LEVEL no no Logging level

How it protects your credentials

  • Each credential is attached only to requests for its own target's host. A full URL that names another host, a path starting with //, plain http and a redirect to another host are all refused, so a prompt that names a URL cannot move a key off the service it belongs to.
  • Reads use GET, or POST on the routes declared as reads. Writes go through a separate tool that Biorouter asks you to approve every time, and only to declared routes.
  • The extension never runs a local command. Use Biorouter's Developer shell for that.
  • Credential values never appear in tool results, error messages or logs.

Develop and release

uv sync
uv run python -m unittest discover -s tests -v   # contract tests and leak suite
uv run python scripts/build_brxt.py               # writes dist/clinicalvariantagent.brxt and SHA256SUMS
uv run python scripts/version.py X.Y.Z            # moves every version string together

Push a tag vX.Y.Z equal to the manifest version to publish a release. The release workflow refuses any other tag. Do not edit src/clinicalvariantagent/_kit/ or tests/kit_testing/: they are vendored from the kit in the Biorouter repository (scripts/brxt-adapter-kit/, documented in docs/extensions/brxt-adapter-kit.md).

License

Apache-2.0. See LICENSE and NOTICE.

About

BioRouter BRXT extension for ClinicalVariantAgent

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages