mcp-file-uploader-cli
v1.0.4
Published
MCP Server for file uploading functionality
Readme
mcp-file-uploader
MCP Server for file uploading functionality.
Environment Variables
Set the following environment variable to specify the web file uploader service URL:
export WEB_FILE_UPLOADER_URL=http://localhost:8000Tools
upload_file
Uploads a file from the current working directory to the specified web file uploader service.
Parameters:
filename: The name of the file to upload (relative to current working directory)
Installation
To install dependencies:
bun installTo build the project:
bun run buildUsage
Development
bun run devProduction
bun run startUsing bunx (after publishing to npm)
If published to npm, you can run directly with:
bunx mcp-file-uploader-cliFor HTTP mode:
bunx mcp-file-uploader-cli --httpDeployment
As NPM Package
- Build the project:
bun run build - Publish to npm:
npm publish
As Web Service (HTTP Mode)
The server supports HTTP mode for deployment to platforms like Vercel, Netlify, or Railway.
- Set the
--httpflag when starting - Deploy the
dist/index.jsfile - Set environment variables in your deployment platform
Example for Vercel:
- Set
WEB_FILE_UPLOADER_URLin environment variables - The
vercel.jsonis already configured for deployment - Deploy with
vercel --prod
Environment Variables for Deployment
Make sure to set the following in your deployment platform:
WEB_FILE_UPLOADER_URL: URL of your web file uploader servicePORT: Port for the HTTP server (defaults to 3000)
This project was created using bun init in bun v1.2.15. Bun is a fast all-in-one JavaScript runtime.
