You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*(Note that the server expects the client to send a shutdown request, so you can stop the connection with CTRL-C)*
143
143
144
144
## Remote Testing
145
-
```bash
146
-
export API_KEY=$(heroku config:get API_KEY -a $APP_NAME)
147
-
export MCP_SERVER_URL=$(heroku info -s -a $APP_NAME| grep web_url | cut -d= -f2)
148
-
```
149
145
150
146
### Remote SSE
151
147
To test your remote `SSE` server, you'll need to make sure a web process is actually spun up. To save on costs, by default this repository doesn't spin up web dynos on creation, as many folks only want to use `STDIO` mode (local and one-off dyno) requests:
@@ -154,6 +150,13 @@ heroku ps:scale web=1 -a $APP_NAME
154
150
```
155
151
You only need to do this once, unless you spin back down to 0 web dynos to save on costs (`heroku ps:scale web=0 -a $APP_NAME`). To confirm currently running dynos, use `heroku ps -a $APP_NAME`.
156
152
153
+
Next, run:
154
+
155
+
```bash
156
+
export API_KEY=$(heroku config:get API_KEY -a $APP_NAME)
157
+
export MCP_SERVER_URL=$(heroku info -s -a $APP_NAME| grep web_url | cut -d= -f2)
158
+
```
159
+
157
160
Next, you can run the same queries as shown in the [Local SSE - Example Requests](#local-sse---example-requests) testing section - because you've set `MCP_SERVER_URL`, the client will call out to your deployed server.
0 commit comments