---
title: "Add YeNo to VS Code and Copilot: MCP Setup"
url: https://www.yenorules.com/guides/yeno-for-vs-code
description: "Add YeNo to VS Code as an MCP server, so Copilot's agent checks your rules before it deploys, deletes or spends. The mcp.json entry and steps."
author: YeNo Team
updated: 2026-11-11
---
# Add YeNo to VS Code

Add YeNo to VS Code as an MCP (Model Context Protocol) server, and GitHub Copilot's agent checks your rules before risky moves like deploying, deleting or spending.

By [YeNo Team](https://www.yenorules.com/about#team) · Updated 11 Nov 2026

## At a *glance*

Checked 11 November 2026. Menus move: if a name differs, look for "connectors", "apps" or "MCP".

| Where | **.vscode/mcp.json** (one project) or your user **mcp.json** (every project) |
|---|---|
| Sign-in | VS Code opens your browser: approve the code in YeNo on your phone |
| Address | `https://app.yenorules.com/mcp` |

## The entry to add

`{ "servers": { "yeno": { "type": "http", "url": "https://app.yenorules.com/mcp" } } }`

Or use the guided way: run **Chat: Open Customizations**, pick **MCP Servers**, then **Add Server**, choose **HTTP (Hypertext Transfer Protocol)** and paste the address with the ID **yeno**.

## Step by step

1.

### Add the entry

Create **.vscode/mcp.json** in your project (the command **MCP: Open Workspace Folder MCP Configuration** opens it), paste the entry above and save. For every project, use **MCP: Open User Configuration** instead.

2.

### Sign in

The first time YeNo starts, VS Code asks you to sign in and opens a browser window.

3.

### Allow it on your phone

A YeNo page opens with a short code. Enter that code in YeNo on your phone and tap **Allow**. Nothing secret is copied or pasted.

4.

### Use it

In Copilot Chat, use **Agent** mode and ask: "What are my YeNo rules?"

## What VS Code checks

VS Code reads, edits and tests code as usual. YeNo is for the moves you'd want a say in: deploying, publishing a package, force-pushing, deleting data or cloud resources, and spending money. Your rules answer **yes**, **no** (with the reason, so the agent can do something else) or **ask me**, which waits for a tap on your phone.

Rules files such as AGENTS.md tell an agent how to write code; YeNo checks what it's allowed to do. [Rules for AI agents](https://www.yenorules.com/guides/rules-for-ai-agents) explains the difference.

## Not working?

- Check the JSON: VS Code uses **servers** (not mcpServers) and needs **"type": "http"**.
- Open the MCP Servers list to see whether YeNo is running, and restart it from there.
- Don't paste keys into shared configuration: the sign-in keeps them out of the file.

## Questions, answered

01Does it work with other VS Code agents?

The steps above are for GitHub Copilot's agent in VS Code. Other extensions that support MCP use their own settings: look for "MCP server" and paste the same address.

**Sources:** [VS Code Docs: MCP configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration) · [VS Code Docs: Add and manage MCP servers](https://code.visualstudio.com/docs/agent-customization/mcp-servers). Steps for YeNo come from the YeNo app's own setup screens.

## Cite this page

*[YeNo Team](https://www.yenorules.com/about#team), YeNo Rules. “YeNo for VS Code.” Last updated November 11, 2026.* [www.yenorules.com/guides/yeno-for-vs-code](https://www.yenorules.com/guides/yeno-for-vs-code)
