Skip to content

Commit 0b2d34a

Browse files
authored
Add verification steps for local blob storage in Azurite to README (#18)
1 parent 1189edd commit 0b2d34a

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,35 @@ An Azure Storage Emulator is needed for this particular sample because we will s
119119
120120
>**Note** this step will not work in CodeSpaces. Please move on to Deploy to Remote MCP.
121121
122-
5. **List Tools**. Click on a tool and **Run Tool**.
122+
5. **List Tools**. Click on a tool and **Run Tool**.
123+
124+
## Verify local blob storage in Azurite
125+
126+
After testing the snippet save functionality locally, you can verify that blobs are being stored correctly in your local Azurite storage emulator.
127+
128+
### Using Azure Storage Explorer
129+
130+
1. Open Azure Storage Explorer
131+
1. In the left panel, expand **Emulator & Attached** → **Storage Accounts** → **(Emulator - Default Ports) (Key)**
132+
1. Navigate to **Blob Containers** → **snippets**
133+
1. You should see any saved snippets as blob files in this container
134+
1. Double-click on any blob to view its contents and verify the snippet data was saved correctly
135+
136+
### Using Azure CLI (Alternative)
137+
138+
If you prefer using the command line, you can also verify blobs using Azure CLI with the storage emulator:
139+
140+
```shell
141+
# List blobs in the snippets container
142+
az storage blob list --container-name snippets --connection-string "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;"
143+
```
144+
145+
```shell
146+
# Download a specific blob to view its contents
147+
az storage blob download --container-name snippets --name <blob-name> --file <local-file-path> --connection-string "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;"
148+
```
149+
150+
This verification step ensures your MCP server is correctly interacting with the local storage emulator and that the blob storage functionality is working as expected before deploying to Azure.
123151
124152
## Deploy to Azure for Remote MCP
125153

0 commit comments

Comments
 (0)