MCP Sensor Observability
Overview
This section demonstrates how MCP-based applications generate observability events when interacting with tools, resources, and prompts.
Python and TypeScript clients interact with an MCP server that is integrated with the BlueRock sensor for observability.
These interactions emit structured events that are captured and visualized in CloudWatch.
The following operations are validated:
Tool discovery and execution
Resource listing and access
Prompt discovery and execution
Deploying Python MCP Applications with BlueRock Sensor
Prerequisites
# Connect to the BlueRock EC2 instance
ssh -i bluerock-ec2-key.pem ec2-user@<instance-ip># Verify Python version
python3 --versionPython 3.10 or higher is required for FastMCP.
Setup
Install uv
Create Project Directory
Create a new project directory for MCP observability and navigate into it.
Install Required Dependencies
Install MCP framework, BlueRock sensor, and BlueRock runtime required for generating and exporting observability events.
Add MCP Application File
Create the MCP client and server scripts in the project directory using the sample code provided in the Appendix section.
Verify Project Files
Ensure the required files are present in the directory.
Expected Output:
Start MCP Server
Run the MCP server to start accepting client requests.
Observability
Tool Events
Tool Listing & Execution
Command
Output

Tool interactions are captured in AWS CloudWatch telemetry logs. These logs include:
MCP client request activity
MCP server request handling
Tool name and arguments
Runtime metadata
Resource Events
Resource Listing & Access
Command
Output

Resource interactions are captured in CloudWatch telemetry logs and include:
resource name
resource type
resource URI
Prompt Events
Prompt Listing & Execution
Command
Output

Prompt interactions are captured in CloudWatch telemetry logs and include:
prompt name
input arguments
request flow
Deploying JS/TS MCP Applications with BlueRock Sensor
Prerequisites
Install Node.js (using NVM)
Setup
1. Create Project Directory
Create a new project directory for the MCP JavaScript/TypeScript application and navigate into it.
2.Install Dependencies
Install the required Node.js dependencies before executing the MCP scripts.
3. Add MCP Application Files
Create the MCP client and server scripts directly on the EC2 instance using the sample code provided in the Appendix section.
4. Verify Project Files
Verify that the required files are present.
Expected output:
Observability
To view MCP observability events in AWS CloudWatch, start the MCP server and then run the MCP client to list and execute tools.
Tool Events
Tool Listing & Execution
Output

Tool interactions are captured in AWS CloudWatch telemetry logs. These logs include:
MCP client request activity
MCP server request handling
Tool name and arguments
Runtime metadata
Resource Events
Resource Listing & Access
Output

Resource interactions are captured in AWS CloudWatch telemetry logs. These logs include:
MCP client request activity
MCP server request handling
Resource name and type
Resource URI
Runtime metadata
Prompt Events
Prompt Listing & Execution
Output

Prompt interactions are captured in AWS CloudWatch telemetry logs. These logs include:
MCP client request activity
MCP server request handling
Prompt name
Input arguments
Runtime metadata
Last updated