mcpField
S
shareflare

shareflare

github.com/falcondev-ossProductivity250 installsUpdated today
Repository

About shareflare

shareflare is a file-sharing skill that uploads requested local files through a configured service and returns the resulting URL. It is for workflows that need to deliver files while keeping the bearer token out of output.

Key features

  1. 01Checks required environment variables
  2. 02Confirms files are readable regular files
  3. 03Uploads files with MIME type and bearer authorization
  4. 04Returns a URL for each uploaded file
  5. 05Keeps the token out of output and files

Use cases

  1. 01Sharing a requested local file
  2. 02Delivering multiple files with a URL for each
  3. 03Uploading files from a workflow with configured credentials

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/falcondev-oss/skills --skill shareflare

After installing, type/shareflarein Claude Code to confirm it loaded.

Bundled filesagents/openai.yaml

Details

From the project README

Share files

For every requested file:

  1. Require non-empty SHAREFLARE_URL and SHAREFLARE_TOKEN. If either is unset, stop and name the missing variable.
  2. Set file to the path and confirm it is a readable regular file.
  3. Upload it and capture the response:
curl --fail-with-body --silent --show-error \
  --data-binary "@$file" \
  -H "Authorization: Bearer $SHAREFLARE_TOKEN" \
  -H "Content-Type: $(file --brief --mime-type -- "$file")" \
  "${SHAREFLARE_URL%/}/"
  1. Return the URL printed by the service. Completion means every requested file has one returned URL.

Keep SHAREFLARE_TOKEN out of output and files.

Comments

Markdown supported