File Relay
Temporary file relay for AI agents: upload a generated file, get an expiring download link.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (2)
- HIGH
- LOWin create_upload_link
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"file-relay": {
"url": "https://code.easyllms.com/relay/mcp"
}
}
}Remote-Endpunkte
https://code.easyllms.com/relay/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (5)
🟡create_upload_link(content_type, filename, path, ttl_hours)
Relay a file of any size up to 100 MB. Save the file to local disk first, call this with its path, then run the returned curl command in your shell to upload it. The download link works as soon as the upload finishes. Requires outbound network access to code.easyllms.com; if curl is blocked, ask the user to allow that domain in their sandbox network settings (on claude.ai: Settings > Capabilities > Code execution).
Eingabe-Schema
{
"type": "object",
"properties": {
"content_type": {
"description": "Optional MIME type; guessed from the extension otherwise.",
"type": "string"
},
"filename": {
"description": "Optional name shown to the downloader; defaults to the file name in path.",
"type": "string"
},
"path": {
"description": "Local path of the file you saved, e.g. /tmp/report.pdf. Used to build the curl command.",
"type": "string"
},
"ttl_hours": {
"description": "Hours until the download link expires. Default 24, maximum 168 (7 days).",
"maximum": 168,
"minimum": 0.1,
"type": "number"
}
},
"required": [
"path"
],
"additionalProperties": false
}🟢relay_attached_file(file, filename, ttl_hours)
ChatGPT only: relay a file from the conversation (the host passes it as a file reference) and get a temporary download link.
Eingabe-Schema
{
"type": "object",
"properties": {
"file": {
"description": "File reference provided by the host.",
"properties": {
"download_url": {
"type": "string"
},
"file_id": {
"type": "string"
},
"file_name": {
"type": "string"
},
"mime_type": {
"type": "string"
}
},
"required": [
"download_url"
],
"type": "object"
},
"filename": {
"description": "Optional file name override.",
"type": "string"
},
"ttl_hours": {
"description": "Hours until the download link expires. Default 24, maximum 168 (7 days).",
"maximum": 168,
"minimum": 0.1,
"type": "number"
}
},
"required": [
"file"
],
"additionalProperties": false
}🟢get_file_info(id)
Look up a relayed file by id or download URL: name, size, type, expiry and download link.
Eingabe-Schema
{
"type": "object",
"properties": {
"id": {
"description": "File id or download URL returned by an upload tool.",
"type": "string"
}
},
"required": [
"id"
],
"additionalProperties": false
}🟢read_file(id)
Read a relayed file's content (up to 1 MB) so an agent can pick up a file someone else relayed. Text comes back as text, images as images, other files as base64.
Eingabe-Schema
{
"type": "object",
"properties": {
"id": {
"description": "File id or download URL from this relay.",
"type": "string"
}
},
"required": [
"id"
],
"additionalProperties": false
}🔴delete_file(delete_token, id)
Delete a relayed file before it expires. Requires the delete_token returned at upload.
Eingabe-Schema
{
"type": "object",
"properties": {
"delete_token": {
"description": "delete_token returned at upload.",
"type": "string"
},
"id": {
"description": "File id or download URL.",
"type": "string"
}
},
"required": [
"id",
"delete_token"
],
"additionalProperties": false
}Community
Nachweis