File Relay
Temporary file relay for AI agents: upload a generated file, get an expiring download link.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (2)
- HIGH
- LOWen create_upload_link
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"file-relay": {
"url": "https://code.easyllms.com/relay/mcp"
}
}
}Puntos de conexión remotos
https://code.easyllms.com/relay/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (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).
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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
}Comunidad
Evidencia