# Sandbox Testing Walk-Through

### MCP Observability

1. Login to your BlueRock Sandbox instance
2. Gemini is preloaded on the instance as an example.  Run the gemini CLI command::\
   \
   `gemini`

   \
   You may need to start the MCP servers first:

   \
   `cd /opt/bluerock/trex/servicenow-mcp`

   `source .venv/bin/activate`\
   `servicenow-mcp-sse --host=127.0.0.1 --port=8001 &`<br>
3. Open a second terminal session.\
   \
   `cd /opt/bluerock/trex/fastmcp`\
   `source .venv/bin/activate`\
   `python my_server.py &`<br>
4. Run `/mcp` in the gemini CLI to view all available tools

<figure><img src="https://984714674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCj4nQ903CxyVJLmoOyKU%2Fuploads%2FPhBnfdyromTb0B2zVrdj%2Funknown.png?alt=media&#x26;token=dc02c0a5-1f8e-407d-be1f-af64ef71a04c" alt=""><figcaption></figcaption></figure>

\
The following tools will display:

<figure><img src="https://984714674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCj4nQ903CxyVJLmoOyKU%2Fuploads%2FvIJYrdPthehPktUVLQ7F%2Funknown.png?alt=media&#x26;token=56307d46-8c2e-403c-8cbe-d4fb1dc39476" alt=""><figcaption></figcaption></figure>

5. Execute the list\_users tool for servicenow:<br>

   <figure><img src="https://984714674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCj4nQ903CxyVJLmoOyKU%2Fuploads%2FXQz3InZucQ8uySgmt9RT%2Funknown.png?alt=media&#x26;token=93f562d2-10b6-4b6c-8003-bb625bca99d1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://984714674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCj4nQ903CxyVJLmoOyKU%2Fuploads%2FwSxYl7Trzs2JjSFGxdlt%2Funknown.png?alt=media&#x26;token=8bbbeda4-f4de-4a2f-97b6-f964ddc67c2d" alt=""><figcaption></figcaption></figure>

6. Execute the mongo\_list\_databases tool for FastMCP:\ <br>

   <figure><img src="https://984714674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCj4nQ903CxyVJLmoOyKU%2Fuploads%2FWBM6Nklk3xm4aGWpWx3r%2Funknown.png?alt=media&#x26;token=52af0779-978f-4995-a042-5c81b497164b" alt=""><figcaption></figcaption></figure>

7. Now let’s check the CloudWatch logs in AWS. Navigate to CloudWatch and select your **Log group**\ <br>

   <figure><img src="https://984714674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCj4nQ903CxyVJLmoOyKU%2Fuploads%2F1R1L9FPAqKD5k9z2UuGp%2Funknown.png?alt=media&#x26;token=2c5b96b5-f3c8-4ac0-8f59-642e19f74489" alt=""><figcaption></figcaption></figure>

8. Select your **Log stream**:\ <br>

   <figure><img src="https://984714674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCj4nQ903CxyVJLmoOyKU%2Fuploads%2FL1nTyCv18VIlfj0wIyaG%2Funknown.png?alt=media&#x26;token=af123bd6-caf5-4d49-9fd3-9fc15ac386e0" alt=""><figcaption></figcaption></figure>

9. Search for **python\_mcp** in the search bar. This will list out all of the MCP calls and connections:\ <br>

   <figure><img src="https://984714674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCj4nQ903CxyVJLmoOyKU%2Fuploads%2Fh8LiVx0K8tdv8P0WRNwA%2Funknown.png?alt=media&#x26;token=93687b83-8d96-4859-9940-8d5558f93147" alt=""><figcaption></figcaption></figure>

10. Now search for **{ $.body.message.method = "initialize" }**. This is the initial connection and MCP handshake between the client and server:\ <br>

    <figure><img src="https://984714674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCj4nQ903CxyVJLmoOyKU%2Fuploads%2Fw5JYo4ZyjIdGsrpxkwYi%2Funknown.png?alt=media&#x26;token=a79f4f78-e30b-4812-9e5a-0b15f4c75f62" alt=""><figcaption></figcaption></figure>

11. Next let’s list all of the tools by searching for **{ $.body.message.result.tools\[0].name = "list\_tool\_packages" }**:\ <br>

    <figure><img src="https://984714674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCj4nQ903CxyVJLmoOyKU%2Fuploads%2FLou0iEqAkLxks7zHEz7I%2Funknown.png?alt=media&#x26;token=f950ffc4-6729-450b-bfae-7325b3030186" alt=""><figcaption></figcaption></figure>

12. Next search **“tools/call”**. Make sure to use the quotes in the search. This will now show the specific tool calls used by the MCP Client:\ <br>

    <figure><img src="https://984714674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCj4nQ903CxyVJLmoOyKU%2Fuploads%2F6KQTHGJ1CIJreeRiFbQG%2Funknown.png?alt=media&#x26;token=4488505f-f3f3-4730-978c-dbd9d9685a42" alt=""><figcaption></figcaption></figure>
