-
Notifications
You must be signed in to change notification settings - Fork 79
Labels
Description
Description
When starting devproxy with no urlsToWatch section in the devproxyrc.json (or similarly with urls passed on the command line as parameters).
Setting the property in the devproxyrc.json file fixes the problem.
STDIO MCP servers don't have any URLs to watch as all the communication is done through JSON-RPC using STDIO.
Expected behaviour
The plugin gets loaded and no failure occurs.
Actual behaviour
The plugins cannot be loaded and the log shows:
[15:10:56.821] dbug: Plugins
Loading plugin MockSTDIOResponsePlugin from: C:\Users\dstamand\AppData\Local\Programs\Dev Proxy\plugins\DevProxy.Plugins.dll
[15:10:56.839] fail: Plugins
Plugin MockSTDIOResponsePlugin must have at least one URL to watch. Please add a URL to watch in the configuration file or use the --urls-to-watch option.
[15:10:56.840] dbug: Plugins
Loading plugin DevToolsPlugin from: C:\Users\dstamand\AppData\Local\Programs\Dev Proxy\plugins\DevProxy.Plugins.dll
[15:10:56.840] fail: Plugins
Plugin DevToolsPlugin must have at least one URL to watch. Please add a URL to watch in the configuration file or use the --urls-to-watch option.
Steps to reproduce
Use the following devproxyrc.json file:
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.1.0/rc.schema.json",
"plugins": [
{
"name": "MockStdioResponsePlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
"configSection": "mockStdioResponsePlugin"
},
{
"name": "DevToolsPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
"configSection": "devTools"
}
],
"logLevel": "debug",
"newVersionNotification": "stable",
"showSkipMessages": true,
"showTimestamps": true,
"validateSchemas": true,
"devTools": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.1.0/devtoolsplugin.schema.json",
"preferredBrowser": "Edge"
},
"mockStdioResponsePlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.1.0/mockstdioresponseplugin.schema.json",
"blockUnmockedRequests": false,
"mocksFile": "stdio-mocks.json"
}
}Dev Proxy Version
2.1.0
Operating system (environment)
Windows
Shell
PowerShell
Configuration file
See the steps to reproduce above.
Additional Info
No response
Reactions are currently unavailable