Copied to Clipboard
Extending the Python MCP Server with Kiro CLI
Now that the basic MCP functionality has been tested and verified with Kiro CLI- the Python server code can be extended with new MCP tools:
/context add main.py
with main.py add 2 new MCP tools - one that gets the AWS CLI version and one that gets the Kiro CLI version
Restart Kiro CLI and check for the new MCP tools:
list mcp tools
The MCP tools available from the hello-stdio-python server are:
- greet — Get a greeting from the local stdio server. Takes a param (string) and returns it back.
- get_aws_cli_version — Get the installed AWS CLI version.
- get_kiro_cli_version — Get the installed Kiro CLI version.
- get_system_info — Get host system information (OS, CPU count, memory).
- get_system_time — Get the current system time on the host machine.
Get the system time:
●くろまるget_system_time{"content":[{...+9lines(ctrl+ototoggle)2026年06月14日T19:13:14
And system Info:
get_system_info●くろまるget_system_info{"content":[{...+9lines(ctrl+ototoggle)-OS:Linux6.6.99-09128-g14e87a8a9b71-Architecture:x86_64-CPUs:12-Memory:4.32GB
And AWS/Kiro versions:
get_aws_cli_version
●くろまる get_aws_cli_version
AWS CLI version: 2.35.4
Full details: aws-cli/2.35.4 Python/3.14.5 Linux/6.6.99-09128-g14e87a8a9b71 exe/x86_64.debian.13
▸ Credits: 0.06 • Time: 6s
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
get_kiro_cli_version
●くろまる get_kiro_cli_version
{
"content": [
{
...+9 lines (ctrl+o to toggle)
Kiro CLI version: 2.7.0
▸ Credits: 0.06 • Time: 4s
The information from the MCP tool execution comes back into the current Kiro CLI context. You can use the information returned from the tools along with the underlying Models:
can I play Cyberpunk 2077 on this system?
Based on the system info: no, not without significant workarounds.
The main blockers:
- RAM: 4.32 GB — Cyberpunk 2077 requires a minimum of 8 GB, recommended 12 GB. This alone disqualifies the system.
- OS: Linux — The game supports Linux via Steam/Proton, but performance overhead makes the already-tight specs
even worse.
- CPU: 12 cores — That's actually fine.
- GPU: Unknown — We don't have GPU info, which is the other critical component. Minimum is a GTX 970 / RX 480.
Even if you had a capable GPU, the 4.32 GB of RAM is a hard blocker.
▸ Credits: 0.04 • Time: 5s
But you can still play Doom!
> can I play Classic Doom on this machine?
Yes, easily. Classic Doom (1993) requires:
- 4 MB RAM — you have 4.32 GB
- 386/486 CPU — you have a modern x86_64 with 12 cores
Run it via a source port like Chocolate Doom (https://www.chocolate-doom.org/) or GZDoom (https://zdoom.org/):
sudo apt install chocolate-doom
You'll need the original doom.wad file (purchased from Steam/GOG), or use the free freedoom WAD:
sudo apt install freedoom
▸ Credits: 0.04 • Time: 4s
Summary
The strategy for using Python for MCP development with Kiro CLI was validated with an incremental step by step approach.
A minimal stdio transport MCP Server was started from Python source code and validated with Kiro CLI running as a MCP client in the same local environment.
Kiro CLI was then used to extend the sample Python code with several MCP tools and use these tools inside the context for the underlying LLM.
This approach can be extended to more complex deployments using other MCP transports and Cloud based options.