All buildsPrototype

Media production tooling / 2026 / Prototype · Anonymized work

Media Intake Service.

A prototype media catalogue that picks up a stopped import without making duplicates

Part of the Media Job Compiler journey
Role
Software engineering
Built with
Python · Typer · Pydantic · JSON Schema · MCP · Pillow

01What I built

The problem.

Importing media files takes several writes, and it can stop partway. Run it again carelessly and you get duplicate assets. Or a file gets overwritten by a different one with the same name. And the rights and review decisions attached to a file only mean something while they still point at the same file contents.

What I built.

Media Intake Service is a prototype written in Python. One intake service sits behind two ways in. One is a command line built with Typer. The other is an A technical wordMCPModel Context Protocol. A standard way for AI apps to find and use tools that other programs offer. server, which uses a standard way for AI tools to find and call it. The service looks over the files first, then copies them into the catalogue. It saves a fingerprint of each file’s content, a record for each asset and a history of imports. A fingerprint is a short code that changes when the content changes. Rights and reviews are checked in a separate step, against the files as they are now.

The intake service

Python, Typer, Pydantic, MCP

Scan first
Shows the accepted files, duplicates and filename clashes before anything is changed.
Request identity
Turns the whole request into one fingerprint, used as its ID. It covers the product, the source type and the rights reference. It also covers the file paths and contents.The storyRecovering a media import that stopped before it finished
Path checks
Refuses file paths and shortcuts that lead outside the media folder. It also refuses rights references that belong to another product.
Safe copying
Copies to a temporary file and makes sure it is fully written to disk. Then it compares the fingerprint and swaps the file into place in one step.The storyRecovering a media import that stopped before it finished
Rights check
Keeps usage conditions on the asset. Blockers, expired rights and unsorted restrictions still prevent use.
Approval check
Compares the required reviews and a person’s final decision with the current fingerprints in the asset records.

Confidential work. Names and identifying business details have been changed.

02The journey

What broke, and what changed.

Broke, then fixedA decisionA milestone

  1. 01 of 03Decided

    Know a file by its content, not its name

    The questionTwo files with the same name can hold different material. The same material can also arrive twice.

    What I choseMatching content keeps the asset ID it already has. Different content aimed at a place that must not change raises a conflict instead of overwriting it.

03Today

Where it stands.

This covers local intake and review only. The part meant to talk to a provider has no network code, so this is not a finished service for making media. An import is several writes, not one save where either all of it is saved or none of it is. The asset records let it recover, but it cannot undo every file.