diff --git a/.gitignore b/.gitignore index 0afebef0f..f0f1e6986 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,6 @@ Thumbs.db # Local dev helpers install.bat launch.bat + +# Local task notes (plans, lessons), never committed +/tasks/ diff --git a/api/README.md b/api/README.md index cdcd4d6b0..691652554 100644 --- a/api/README.md +++ b/api/README.md @@ -21,6 +21,24 @@ pip install -r requirements.txt uvicorn main:app --host 127.0.0.1 --port 8765 --reload ``` +## Calling the API from other apps + +Scripts, CLIs and other programs (curl, `modly-cli`, the MCP server, OrcaSlicer…) can call the API +with no token or setup. + +**Web pages** are refused (403), so a site open in your browser cannot drive Modly. To let a web app +in, list its origin in `MODLY_ORIGINS` before starting Modly (comma-separated, `*` wildcards): + +```bash +MODLY_ORIGINS="http://localhost:3000,chrome-extension://*" # or "*" for every page +``` + +`` / `