Skip to content

Commit 65a618d

Browse files
rholinsheadandrew-lastmile
authored andcommitted
Clarify web/build/static dir for ChatGPT App Docs (lastmile-ai#598)
* Clarify web/build/static dir * Update READMEs as well
1 parent e40cc53 commit 65a618d

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

docs/cloud/use-cases/deploy-chatgpt-apps.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ OpenAI’s ChatGPT Apps platform can consume MCP servers as “Actions”. This
1111

1212
- ChatGPT Apps developer access
1313
- Deployed MCP server with **unauthenticated access enabled** (`mcp-agent deploy ... --no-auth`)
14-
- Optional: frontend bundle (React, vanilla JS) if you want rich widgets
14+
- Optional: frontend bundle (React, vanilla JS) if you want rich widgets; the bundle should have build output (JS, CSS) at web/build/static or web/dist/static
1515

1616
## Recommended project structure
1717

1818
```
1919
chatgpt-app/
2020
├── main.py # MCP server (FastMCP or MCPApp)
2121
├── web/ # Front-end assets (React build)
22-
├── static/ # Optional static resources
22+
│ ├── build/ # React build (or dist) output
23+
│ │ └── static/ # Built static resources (JS, CSS, etc.)
24+
│ └── src/ # Optional, your React source files
2325
├── mcp_agent.config.yaml
2426
└── requirements.txt
2527
```

examples/cloud/chatgpt_app/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ References static files from a deployed server URL:
6464
- Better performance with caching
6565
- Requires initial deployment to get the server URL
6666
- Best for production use
67+
- NOTE: The deployed server will only serve static files from `web/build/static` or `web/dist/static`
6768

6869
## Prerequisites
6970

@@ -82,7 +83,7 @@ yarn build
8283
cd ..
8384
```
8485

85-
This creates optimized production assets in `web/build/` that the server will serve.
86+
This creates optimized production assets in `web/build/static` that the server will serve.
8687

8788
## Test Locally
8889

src/mcp_agent/data/examples/cloud/chatgpt_app/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ References static files from a deployed server URL:
6464
- Better performance with caching
6565
- Requires initial deployment to get the server URL
6666
- Best for production use
67+
- NOTE: The deployed server will only serve static files from `web/build/static` or `web/dist/static`
6768

6869
## Prerequisites
6970

@@ -82,7 +83,7 @@ yarn build
8283
cd ..
8384
```
8485

85-
This creates optimized production assets in `web/build/` that the server will serve.
86+
This creates optimized production assets in `web/build/static` that the server will serve.
8687

8788
## Test Locally
8889

0 commit comments

Comments
 (0)