1. Conduid
  2. Files
  3. Fastmcp Lro
MCP server · Files

Fastmcp Lro

Large Result Offloading for MCP servers. Writes oversized tool responses to JSONL files, returning compact descriptors with extraction recipes.

34Low

Scored 6 months ago · breakdown

About Fastmcp Lro

Fastmcp Lro is an MCP server in the Files category: large Result Offloading for MCP servers. Writes oversized tool responses to JSONL files, returning compact descriptors with extraction recipes.

Install

From source
git clone https://github.com/zircote/fastmcp-lro

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Fastmcp Lro

Powered by Claude · Grounded in docs

I know everything about Fastmcp Lro. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

fastmcp-lro

CI

Large Result Offloading for MCP servers — demand-driven context management for tool-augmented language models.

When MCP tool responses exceed a configurable character threshold, the full dataset is written to JSONL files and the tool returns a compact descriptor with file paths, schemas, jq recipes, and a caller-defined summary.

Based on the LRO specification.

Installation

pip install fastmcp-lro

Quick Start

Decorator (recommended for FastMCP tools)

from fastmcp_lro import lro_offload, OffloadSection

@lro_offload(
    sections=[
        OffloadSection(
            key="results",
            filename_prefix="search",
            schema={"id": "string", "title": "string", "score": "number"},
        ),
    ],
    inline_keys=["query", "total_count"],
    session_id_key="request_id",
)
async def search_tool(query: str) -> dict:
    return {
        "request_id": "req-123",
        "query": query,
        "total_count": 500,
        "results": [...]  # large list
    }

Explicit call

from fastmcp_lro import LROOffloader, OffloadSection

offloader = LROOffloader(threshold=50000)

section = OffloadSection(
    key="results",
    filename_prefix="search",
    schema={"id": "string", "score": "number"},
)

result = offloader.offload_if_needed(
    data=large_response,
    sections=[section],
    inline_keys=["query"],
    session_id="req-123",
)

Context manager

from fastmcp_lro import LROContext, OffloadSection

section = OffloadSection(key="results", filename_prefix="search", schema={})

with LROContext(sections=[section], threshold=50000) as ctx:
    ctx.set_data(large_response)
offloaded = ctx.result

Configuration

Parameter Default Env Override Description
threshold 50,000 {PREFIX}_THRESHOLD Character count threshold
output_dir system temp {PREFIX}_DIR JSONL output directory
header_type "mcp_lro" — JSONL header type field
env_prefix "MCP_LRO" — Prefix for env overrides
enabled True {PREFIX}_ENABLED Enable/disable LRO
ttl_seconds 3,600 — File expiry for cleanup

Documentation

Full Diataxis documentation:

Type Docs
Tutorials Getting Started · FastMCP Integration
How-to Custom Sections · Error Handling · Cleanup · Configuration · Server Instructions
Reference API · JSONL Format · Offload Response · Configuration
Explanation Why LRO? · Architecture · Security Model · Interface Comparison

License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Fastmcp Lro

How do I install Fastmcp Lro?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Fastmcp Lro safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Fastmcp Lro still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.