Skip to content

Commit dc7cf36

Browse files
committed
feat(wokwi-ci/mcp-support): initial MCP server implementation
1 parent 2e0b718 commit dc7cf36

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

docs/wokwi-ci/getting-started.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,15 @@ You can limit the simulation time for each test in your CI workflow using the `-
4343
wokwi-cli --timeout 10000
4444
```
4545

46+
## AI Agent Integration
47+
48+
The Wokwi CLI includes experimental support for the [Model Context Protocol (MCP)](./mcp-support), enabling AI agents to interact with Wokwi's simulation capabilities. This allows AI assistants to run automated tests, simulate hardware behavior, and integrate Wokwi into AI-powered development workflows.
49+
4650
## Next Steps
4751

4852
- [Install the Wokwi CLI](./cli-installation) to run your firmware on your local machine or CI system.
4953
- [Write automation scenarios](./automation-scenarios) to automate the simulation and test your firmware.
5054
- [Use Wokwi with GitHub Actions](./github-actions) to run your tests on every commit.
5155
- [Check out the example projects](./github-actions#examples) that are set up to run on Wokwi CI.
56+
- [Set up MCP support](./mcp-support) to integrate Wokwi with AI agents.
5257
- [Join the Wokwi Discord server](https://wokwi.com/discord) to get help and share your projects with the community.

docs/wokwi-ci/mcp-support.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# MCP Support
2+
3+
## What is MCP?
4+
5+
The Model Context Protocol (MCP) is an open standard that allows AI agents—such as Copilot, Claude Code, Cursor, and others to securely interact with external tools and services. For Wokwi users, MCP enables seamless integration between AI assistants and embedded simulation.
6+
7+
## Wokwi MCP Server
8+
9+
The Wokwi CLI includes an experimental MCP server that allows AI agents to interact with Wokwi's simulation and testing capabilities. This enables AI agents to:
10+
11+
- Simulate complex embedded systems
12+
- Run automated tests on embedded projects
13+
- Monitor the serial console output and logs
14+
- Interact with the virtual hardware in real-time
15+
16+
## Configuration
17+
18+
To configure your AI agent to use the Wokwi MCP server, add the following to your agent's MCP configuration:
19+
20+
```json
21+
{
22+
"servers": {
23+
"Wokwi": {
24+
"type": "stdio",
25+
"command": "wokwi-cli",
26+
"args": ["mcp"],
27+
"env": {
28+
"WOKWI_CLI_TOKEN": "${input:wokwi-cli-token}"
29+
}
30+
}
31+
}
32+
}
33+
```
34+
35+
### Authentication
36+
37+
You will need a valid Wokwi CLI token to use the MCP server. You can generate a token in the [Wokwi CI Dashboard](https://wokwi.com/dashboard/ci).

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ module.exports = {
9999
'wokwi-ci/cli-usage',
100100
'wokwi-ci/github-actions',
101101
'wokwi-ci/automation-scenarios',
102+
'wokwi-ci/mcp-support',
102103
],
103104
},
104105
};

0 commit comments

Comments
 (0)