File Relay
Temporary file relay for AI agents: upload a generated file, get an expiring download link.
사용해야 할까요
품질 및 안전성
발견 사항 (2)
- HIGH
- LOWcreate_upload_link에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"file-relay": {
"url": "https://code.easyllms.com/relay/mcp"
}
}
}원격 엔드포인트
https://code.easyllms.com/relay/mcpstreamable-http할 수 있는 일
도구 목록
도구 (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).
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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
}커뮤니티
증거