Skip to content

rishcx/MCP-Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

MCP Filesystem Web App

This project is a simple web application that lets you perform basic filesystem operations (create, edit, delete files) inside a workspace folder, all from your browser!

Features

  • Upload a folder (as a zip file) and see its contents listed in the app.
  • Edit files by typing a command in the prompt box (e.g., Edit file.txt to say Hello).
  • Create new files with a command (e.g., Create newfile.txt with content Hello World).
  • Delete files with a command (e.g., Delete file.txt).
  • All operations happen inside a safe workspace directory on the server.

How to Run

  1. Install dependencies

    pip install flask flask-cors
  2. Start the server

    python app.py
  3. Open the app

How to Use

  1. Upload a Folder

    • Click "Choose File" and select a zip file containing the files you want to work with.
    • Click "Upload". The files will appear in the list below.
  2. Prompt Box Commands

    • To edit a file:
      Edit filename.txt to say Hello
    • To create a file:
      Create newfile.txt with content Hello World
    • To delete a file:
      Delete filename.txt
    • After each command, the file list will update automatically.
  3. See Results

    • The result of your command will be shown below the prompt box.

Notes

  • All file operations are limited to the workspace directory for safety.
  • Only zip files are supported for upload.
  • The prompt box expects commands in the formats shown above.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors