VS Code Copilot MCP for Web Monitoring: Add AyeWatch
Add AyeWatch's MCP server to VS Code Copilot with an http entry and your API key, in the native ~/.copilot/mcp-config.json or the older .vscode/mcp.json. Configs, first prompts, limits.
By AyeWatch Team4 min read
Short answer: To monitor websites from VS Code Copilot, add AyeWatch to ~/.copilot/mcp-config.json under mcpServers with type http, the URL https://ayewatch.ai/api/mcp and an Authorization header that reads your key from ${AYEWATCH_API_KEY}. The older .vscode/mcp.json format uses a servers key instead. Copilot can then list, create and pause monitors.
Which file VS Code reads now
VS Code changed how chat finds MCP servers in late 2026. The Copilot harness is now the default, and VS Code deprecated the older Local harness in version 1.146, with removal planned for February 2027. The Copilot harness reads native config files:
~/.copilot/mcp-config.jsonfor your user, or$COPILOT_HOME/mcp-config.jsonif you set that variable.- A
.mcp.jsonfile at the workspace root, when the experimental settingchat.mcp.workspaceRootConfig.enabledis on.
The older .vscode/mcp.json file uses a different top-level key. It is covered below for setups that still use it.
The native entry
Create a key in API access settings, set it as AYEWATCH_API_KEY on your machine, and add this entry:
{
"mcpServers": {
"ayewatch": {
"type": "http",
"url": "https://ayewatch.ai/api/mcp",
"headers": { "Authorization": "Bearer ${AYEWATCH_API_KEY}" },
"tools": ["list_topics", "get_topic", "create_topic", "update_topic"]
}
}
}
VS Code's docs say variable references take the form ${NAME} or ${NAME:-default} and work in HTTP header values, while a bare $NAME is read as literal text. The variable must be set on the machine that runs the server, and the docs warn against literal credentials in shared files.
On macOS and Linux, export the variable in the shell profile that starts VS Code, or open VS Code from a terminal where it is set. On Windows, add it as a user environment variable and restart VS Code so it sees the value. If the variable isn't visible, the header reaches AyeWatch as Bearer with no key, and every call fails with a 401.
The tools list limits what chat can call. ["*"] allows every tool. The list above leaves out delete_topic and the three webhook tools, which suits an editor where you mostly create and pause monitors.
The older .vscode/mcp.json format
{
"inputs": [
{
"type": "promptString",
"id": "ayewatch-key",
"description": "AyeWatch API key",
"password": true
}
],
"servers": {
"ayewatch": {
"type": "http",
"url": "https://ayewatch.ai/api/mcp",
"headers": { "Authorization": "Bearer ${input:ayewatch-key}" }
}
}
}
This format uses servers, not mcpServers. The inputs block makes VS Code ask for the key instead of reading it from the file, and "password": true hides what you type, so the file can be committed without a key. ${env:AYEWATCH_API_KEY} also works in this format. VS Code's docs note that configs using ${input:...} can't be forwarded to Copilot sessions, which is one more reason to move to the native file.
Check it, then try a prompt
VS Code's docs say that adding a config doesn't confirm the server works. Run MCP: List Servers from the Command Palette, or open Chat: Open Customizations and then MCP Servers, and check that AyeWatch shows its tools. Then make a real call in chat.
First prompt: Using AyeWatch, list my active monitors and their intervals.
Next prompt: Read docs/vendors.md and create one paused AyeWatch monitor for each vendor status page listed there, checked daily. Name each monitor after the vendor.
{
"name": "Ferncastle Payments status",
"web_page_urls": ["https://status.ferncastle.example"],
"description": "Alert me when an incident affects card payments or payouts.",
"interval": "1_day",
"is_active": false
}
Read the arguments of each create call before it goes through, and turn the monitors on only after the list looks right. VS Code's client tries Streamable HTTP first, which is the transport AyeWatch uses.
Later prompt: We dropped Ferncastle. Pause its AyeWatch monitor.
That is one update_topic call with changes: {"is_active": false}. A paused monitor keeps its settings and spends no credits, so pausing is safer than deleting when a vendor might come back.
Limits
- No alert history. The tools manage monitors and the webhook. Alerts arrive by email, push in the AyeWatch app, Slack or the webhook.
- Public pages only. AyeWatch can't sign in to a site. Some sites block automated readers, and the first check shows it.
- No secret in chat. The webhook tools never return the signing secret. Read it in Notification settings.
- Shared rate limit. MCP and the REST API share 120 requests a minute per key, and every MCP POST counts.
- Workspace files are experimental. A workspace-root
.mcp.jsonneeds the experimental setting turned on.
AyeWatch Pro is $9/mo with 50 topics and hourly checks; Pro+ is $19/mo with 200 topics and ASAP mode. Every plan starts with a 7-day free trial. A web page monitor costs 1 credit a check, so six vendor status pages checked daily use 6 × 30 = 180 of the 500 credits on Pro.
Connect VS Code in six steps
- Create an API key in API access settings.
- Set AYEWATCH_API_KEY on the machine that runs VS Code.
- Add the ayewatch entry with type http to ~/.copilot/mcp-config.json.
- Run MCP: List Servers and check that AyeWatch shows its tools.
- Ask chat to list your monitors. A list, even an empty one, means the key works.
- Create one paused monitor, read the arguments, then ask chat to turn it on.
| Setup | File | Top-level key | Key handling |
|---|---|---|---|
| Native file, user | ~/.copilot/mcp-config.json | mcpServers | Bearer ${AYEWATCH_API_KEY} |
| Native file, workspace | .mcp.json at the workspace root | mcpServers | Bearer ${AYEWATCH_API_KEY}, needs chat.mcp.workspaceRootConfig.enabled |
| Older format | .vscode/mcp.json | servers | Bearer ${input:ayewatch-key} or Bearer ${env:AYEWATCH_API_KEY} |
Start a monitor in under a minute
Describe a topic or paste a URL. Cancel before the trial ends and you pay nothing.
Try it free for 7 daysThe bottom line
Put the http entry in ~/.copilot/mcp-config.json, check it with MCP: List Servers, and create one paused monitor from chat. Keep delete_topic off the tools list.
FAQ
Does VS Code use servers or mcpServers for MCP?
The native ~/.copilot/mcp-config.json uses mcpServers. The older .vscode/mcp.json uses servers. Both take type http, a url and headers for AyeWatch.
How do I keep my AyeWatch key out of the VS Code config?
Write Bearer ${AYEWATCH_API_KEY} in the header and set the variable on the machine that runs the server. In the older format, an input with password set to true prompts for the key instead.
Why does VS Code list AyeWatch but its tools fail?
Usually the key was not accepted. Check that the header reads Bearer, a space, then the key, and that the variable is set where VS Code runs. A bare $NAME is sent as literal text.
Can I stop Copilot from deleting AyeWatch monitors?
Yes. In the native config, list only the tools you want in tools and leave out delete_topic. You can still delete monitors in the AyeWatch app.
Should I move AyeWatch out of .vscode/mcp.json?
VS Code deprecated the Local harness in version 1.146 and plans to remove it in February 2027, and the Copilot harness reads native files. Putting AyeWatch in ~/.copilot/mcp-config.json now saves a later move.