@hasna/attachments
v1.0.26
Published
File transfer for AI agents — S3-backed upload, shareable links, CLI + MCP + REST API
Maintainers
Readme
@hasna/attachments
File transfer for AI agents — S3-backed upload, shareable links, CLI + MCP + REST API
Install
npm install -g @hasna/attachmentsCLI Usage
attachments --helpMCP Server
attachments-mcpHTTP mode
Run a long-lived Streamable HTTP MCP server on 127.0.0.1 (default port 8800):
attachments-mcp --http
# or: MCP_HTTP=1 attachments-mcp
# port override: --port 8800 or MCP_HTTP_PORT=8800- Health:
GET http://127.0.0.1:8800/health→{"status":"ok","name":"attachments"} - MCP:
http://127.0.0.1:8800/mcp
Stdio remains the default when no --http / MCP_HTTP=1 is set.
Cloud Sync
This package supports cloud sync via @hasna/cloud:
cloud setup
cloud sync push --service attachments
cloud sync pull --service attachmentsData Directory
Data is stored in ~/.hasna/attachments/.
License
Apache-2.0 -- see LICENSE
