Skip to main content

Research Engine SDK

marginalia-ai-sdk is the standalone, typed contract for building plugins for Research Engine. It contains static manifest models, boundary DTOs, scoped client protocols, decorators, chunking helpers, and portable contract tests. It does not install or import the Research Engine core.

Install

python -m pip install "marginalia-ai-sdk>=0.6,<0.7"

A plugin declares a static plugin.yaml inside its top-level import package and advertises that package through the research_engine.plugins entry-point group. Plugin acquisition and removal belong to pip, uv, or pipx; the running engine never installs plugin dependencies.

[project.entry-points."research_engine.plugins"]
example = "example"
schema_version: 2
plugin_id: example
requires:
  core_api: ">=0.6,<0.7"
  python: ">=3.11"
permissions:
  network: none
  filesystem: plugin_data
provides:
  mcp_tools:
    - id: example.search
      entry: example.tools:search
      description: Search the example source.
      input_schema:
        type: object
        properties:
          query: {type: string}
        required: [query]

Plugin code executes in the core process after explicit operator approval. Scoped clients are the supported API boundary, not a security sandbox; install and enable only trusted plugins.

API compatibility follows the core minor release through 0.x. A plugin supporting core 0.6.x should depend on marginalia-ai-sdk>=0.6,<0.7.

Core supplies each handler a PluginContext with its plugin data directory and the configured database URL. The URL is a Pydantic SecretStr: database-backed plugins call context.database_url.get_secret_value() at the connection boundary and must not log or serialize that value.

See the architecture, changelog, and issue tracker. Licensed under Apache-2.0.

Release files for marginalia-ai-sdk 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marginalia-ai-sdk 0.6.1
File Size Uploaded
marginalia_ai_sdk-0.6.1.tar.gz 18.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for marginalia-ai-sdk 0.6.1
File Interpreter ABI Platform
marginalia_ai_sdk-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 39.2 kB

Release files / marginalia_ai_sdk-0.6.1.tar.gz

Download URL marginalia_ai_sdk-0.6.1.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3aaa0edbba9fb39e8993c8fce2c3581bf0ecd44813b67dde3f3bb47542dc716b
BLAKE2b-256 checksum
How to use checksums
d84cfa4844339be31caef5607f7415c6508c313c9deae42aff7e75f342cb19ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / marginalia_ai_sdk-0.6.1-py3-none-any.whl

Download URL marginalia_ai_sdk-0.6.1-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc4453778ec6b71f465b006165ad992f1519ccdad00a819229ab04abfd29b754
BLAKE2b-256 checksum
How to use checksums
8ff8c7a8d590b280b6347e1ebeeb5f24245f6c29167e73012eb7449a054f513d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release 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