How to receive SMS in Kilo Code

This guide walks you through retrieving incoming SMS messages in Kilo Code using the Ozeki SMS MCP server. By following this tutorial, you will learn how to ask the AI model to list incoming messages in plain language and verify the transaction through the gateway logs.

What is an MCP tool call?

An MCP (Model Context Protocol) tool call is how an AI model communicates with external systems. When the AI needs to perform an action or retrieve data, such as querying a database, calling an API, or reading a file, it sends a structured request to the appropriate MCP server, which processes it and returns the result.

Overview
Overview

Example prompt

List all incoming SMS messages.

Steps to follow

We assume Ozeki SMS Gateway is already installed on your system, you have created an MCP user account with an API key, and you have already configured the Ozeki SMS MCP server in Kilo Code.

  1. Use the list incoming messages tool
  2. Verify the transaction in logs

How to receive SMS in Kilo Code video

The following video shows how to retrieve incoming SMS messages in Kilo Code using the Ozeki SMS MCP server step-by-step.

Step 1 - Use the list incoming messages tool

In the Kilo Code chat panel inside VS Code, type your request in plain language and press Enter. The AI model will interpret the request and invoke the appropriate MCP tool to retrieve the messages from the gateway inbox (Figure 1).

List all incoming SMS messages.

Ask LLM to list incoming messages
Figure 1 - Ask the AI model to list incoming SMS messages

The messages will appear in the Kilo Code chat panel. Each entry includes the sender number and message text (Figure 2).

List incoming messages tool result
Figure 2 - The incoming messages tool result appears in the Kilo Code chat panel

Step 2 - Verify the transaction in logs

Open Ozeki SMS Gateway in your browser and navigate to the MCP user details page by clicking on the MCP user entry in the Users and applications panel (Figure 3).

Open MCP user details in SMS Gateway
Figure 3 - Open the MCP user details in Ozeki SMS Gateway

In the MCP user event log, you should see an entry for the incoming message retrieval request, confirming that the API key authentication and tool call were processed correctly by the gateway (Figure 4).

View transaction in event logs
Figure 4 - Verify the transaction in the MCP user event logs

Final thoughts

You have successfully retrieved incoming SMS messages in Kilo Code using the Ozeki SMS MCP server. The AI model running in Kilo Code can now list incoming messages from your gateway simply by being asked to do so in plain language, making it easy to add SMS inbox access to any Kilo Code workflow.


More information