-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Description
Implement mirrord mcp command that will be used as a MCP Server by Cursor or other AI editors.
The MCP server should have at the first version three tools:
-
get mirrord config schema
-
list targets
-
dump traffic
The tools should be built so the following prompts will work:
Simple HTTP filter generation
Create new mirrord.json configuration for stealing http traffic on port 3030 that has header that contains "Aviram" and path "/api/v1", use schema to make sure you get it right
will yield (not exact, but will achieve similar)
{
"feature": {
"network": {
"incoming": {
"mode": "steal",
"http_filter": {
"all_of": [
{ "header": "Aviram" },
{ "path": "/api/v1" }
],
"ports": [3030]
}
}
}
}
}
Copy target + Scaledown
Create new mirrord.json configuration for a consumer microservice without splitting use schema to make sure you're right
will yield
{
"feature": {
"copy_target": {
"scale_down": true
}
}
}
Write FastAPI service that can handle incoming requests
Write FastAPI service that can handle requests that are being handled in kubernetes deployment ip-visit-counter.
will trigger target list to find the target then mirrord dump
to obtain traffic, then implement FastAPI requset handlers for the paths seen in the requests.
Metadata
Metadata
Assignees
Labels
No labels