Skip to content

Commit 80abc73

Browse files
added REMOTE_SERVER_TYPE to app.json and README
1 parent 17b03eb commit 80abc73

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
web: uvicorn src.#{REMOTE_SERVER_TYPE:-streamable_http_server}:app --host=0.0.0.0 --port=${PORT:-8000} --workers=${WEB_CONCURRENCY:-1}
1+
web: uvicorn src.${REMOTE_SERVER_TYPE:-streamable_http_server}:app --host=0.0.0.0 --port=${PORT:-8000} --workers=${WEB_CONCURRENCY:-1}
22
mcp-python: python -m src.stdio_server

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ heroku buildpacks:set heroku/python -a $APP_NAME
3535
# set a private API key that you create, for example:
3636
heroku config:set API_KEY=$(openssl rand -hex 32) -a $APP_NAME
3737
heroku config:set STDIO_MODE_ONLY=<true/false> -a $APP_NAME
38+
# set the remote server type (module) that your web process will use (only relevant for web deployments)
39+
heroku config:set REMOTE_SERVER_TYPE=<streamable_http_server/sse_server>
3840
```
3941
*Note: we recommend setting `STDIO_MODE_ONLY` to `true` for security and code execution isolation security in non-dev environments.*
4042

app.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
"STDIO_MODE_ONLY": {
1616
"description": "Only allow tool requests via STDIO mode?",
1717
"value": "false"
18+
},
19+
"REMOTE_SERVER_TYPE": {
20+
"description": "Tranport module name used for deployed web app (applicable when web formation size is >0). `streamable_http_server` or `sse_server`.",
21+
"value": "streamable_http_server"
1822
}
1923
},
2024
"formation": [

0 commit comments

Comments
 (0)