-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Refactor enterprise documentation #9268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f25ef81
Create policies article
ntrogh 1c403e1
Regenerate policies doc for 1.108
ntrogh 57b4dbc
Rename images subfolder
ntrogh ee4b154
Add extensions article
ntrogh 81e3c0b
Add AI settings article
ntrogh 564ce4f
Update policies node
ntrogh d92271d
Add telemetry doc
ntrogh 438203b
Add overview and updates articles
ntrogh 0597ed6
Remove Enterprise article
ntrogh 9b1108c
Update bookmarks after enterprise docs refactor
ntrogh 1ef3e59
Update docs/enterprise/extensions.md
ntrogh 4fc7881
Apply review feedback
ntrogh b49c06c
Remove duplication
ntrogh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| --- | ||
| ContentId: f8a9c3d2-4e7b-5f1a-b6c8-9d0e2f3a7b4c | ||
| DateApproved: 01/08/2026 | ||
| MetaDescription: Learn how to centrally manage AI settings in VS Code for enterprise environments, including agent mode, MCP servers, and tool approvals. | ||
| --- | ||
|
|
||
| # Manage AI settings in enterprise environments | ||
|
|
||
| VS Code provides AI-powered development capabilities through GitHub Copilot, including agent mode, MCP servers, and chat tools. Organizations can centrally manage these features to control AI behavior, enforce security policies, and maintain compliance across their development teams. | ||
|
|
||
| This article covers the AI-related settings that IT admins can manage through [enterprise policies](/docs/enterprise/policies.md). | ||
|
|
||
| Users can control the functionality and behavior of AI features through VS Code settings. Organizations can enforce specific configurations by deploying enterprise policies via device management solutions. These policies override user-configured settings on managed devices. | ||
|
|
||
| Learn how to [deploy policies for VS Code](/docs/enterprise/policies.md) to your organization's devices. | ||
|
|
||
| ## Enable or disable the use of agents | ||
|
|
||
| [Agents](/docs/copilot/agents/overview.md) enable the AI to autonomously perform tasks like editing files, running terminal commands, and using tools. Agents enable developers to provide a high-level requirement and have the AI assistant analyze, plan, and execute the necessary steps to achieve that goal. | ||
|
|
||
| To disable agents entirely, set the `ChatAgentMode` policy to `false`. This configures the `setting(chat.agent.enabled)` setting in VS Code. | ||
|
|
||
| The **Agent** option will not be available in the agents dropdown in the Chat view when this policy is applied. Developers can still use [ask or edit](/docs/copilot/chat/copilot-chat.md) for code explanations and file edits, but autonomous code generation and task execution are not available. | ||
|
|
||
| ## Enable or disable extension language tools | ||
|
|
||
| [Tools in chat](/docs/copilot/chat/chat-tools.md) extend the AI assistant's capabilities with specialized functions. These tools can come from built-in features, Model Context Protocol (MCP) servers, or third-party extensions. | ||
|
|
||
| Third-party extensions can contribute tools that integrate with chat by using the [Language Model Tools API](/api/extension-guides/ai/tools). | ||
|
|
||
| To prevent developers from using extension-contributed tools while still allowing built-in tools and MCP tools, set the `ChatAgentExtensionTools` policy to `false`. This configures the `setting(chat.extensionTools.enabled)` setting in VS Code. | ||
|
|
||
| ## Configure MCP server access | ||
|
|
||
| [Model Context Protocol (MCP) servers](/docs/copilot/customization/mcp-servers.md) extend chat with external tools and services. Organizations can control which MCP servers developers can use through both GitHub organization settings and VS Code policies. | ||
|
|
||
| ### Restrict MCP server sources | ||
|
|
||
| The `ChatMCP` policy controls which sources MCP servers can be installed from. This configures the `setting(chat.mcp.access)` setting in VS Code. | ||
|
|
||
| The following values are supported: | ||
|
|
||
| | Value | Description | | ||
| |----------------|------------------------------------------------------------------| | ||
| | `allowed` | Developers can run MCP servers from any source | | ||
| | `registryOnly` | Developers can only run MCP servers from the configured registry | | ||
| | `off` | MCP server support is disabled | | ||
|
|
||
| ### Configure a custom MCP registry | ||
|
|
||
| You can host a private MCP server registry for your organization and configure VS Code to use it through the `McpGalleryServiceUrl` policy. This enables you to: | ||
|
|
||
| * Provide a curated list of approved MCP servers | ||
| * Host internal MCP servers for your organization | ||
| * Block access to the public GitHub MCP registry | ||
|
|
||
| When configured, developers see MCP servers from your custom registry in the Extensions view when they enter `@mcp` in the search field. | ||
|
|
||
| Organizations with GitHub Copilot Enterprise or Business can also configure MCP server access through [GitHub organization settings](https://docs.github.com/en/copilot/how-tos/administer-copilot/configure-mcp-server-access). | ||
|
|
||
| ## Configure agent tool approvals | ||
|
|
||
| Agent tools can perform actions that modify files, run commands, or access external services. VS Code includes approval prompts for potentially risky operations. Organizations can enforce stricter approval requirements or disable auto-approval entirely. | ||
|
|
||
| Learn more about [tool approval](/docs/copilot/chat/chat-tools.md#tool-approval) in VS Code. | ||
|
|
||
| ### Disable global auto-approval | ||
|
|
||
| The `ChatToolsAutoApprove` policy controls the global auto-approval setting, also known as "YOLO mode". When enabled, the AI assistant can execute all tools without manual approval. This is not recommended for security reasons. | ||
|
|
||
| To prevent developers from enabling global auto-approval, set the `ChatToolsAutoApprove` policy to `false`. This configures the `setting(chat.tools.global.autoApprove)` setting in VS Code. | ||
|
|
||
| > [!CAUTION] | ||
| > Global auto-approval bypasses all security prompts for tool invocations. Disabling this feature is strongly recommended for enterprise environments. | ||
|
|
||
| ### Require manual approval for specific tools | ||
|
|
||
| The `ChatToolsEligibleForAutoApproval` policy controls which tools can be auto-approved. Tools set to `false` always require manual approval and cannot be auto-approved by users. | ||
|
|
||
| Configure this policy with a JSON object that lists tool names and their approval eligibility. This configures the `setting(chat.tools.eligibleForAutoApproval)` setting in VS Code. | ||
|
|
||
| The following JSON snippet shows an example configuration that requires manual approval for task execution, URL fetching, and terminal commands: | ||
|
|
||
| ```json | ||
| { | ||
| "runTask": false, | ||
| "fetch": false, | ||
| "runInTerminal": false | ||
| } | ||
| ``` | ||
|
|
||
| ### Configure terminal auto-approval | ||
|
|
||
| The `ChatToolsTerminalEnableAutoApprove` policy specifically controls the rule-based auto-approval system for terminal commands. When enabled, VS Code applies a set of rules to automatically approve safe commands while prompting for potentially dangerous ones. | ||
|
|
||
| To disable terminal auto-approval entirely, set the policy to `false`. This configures the `setting(chat.tools.terminal.enableAutoApprove)` setting in VS Code. | ||
|
|
||
| ## Configure Copilot code review | ||
|
|
||
| Copilot code review enables AI-powered review of code changes. Organizations can control access to these features. | ||
|
|
||
| The `CopilotReviewSelection` policy controls whether developers can request code review for selected code in the editor. This configures the `setting(github.copilot.chat.reviewSelection.enabled)` setting in VS Code. | ||
|
|
||
| The `CopilotReviewAgent` policy controls access to the Copilot code review agent for reviewing pull requests and changed files. This configures the `setting(github.copilot.chat.reviewAgent.enabled)` setting in VS Code. | ||
|
|
||
| ## Security considerations | ||
|
|
||
| AI-powered development features can autonomously perform actions with user-level permissions. Refer to the [security documentation](/docs/copilot/security.md) for a comprehensive overview of AI security considerations and best practices. | ||
|
|
||
| ## Related resources | ||
|
|
||
| * [Enterprise policies reference](/docs/enterprise/policies.md) - Complete list of enterprise policies | ||
| * [Use tools in chat](/docs/copilot/chat/chat-tools.md) - Learn how tools work in VS Code chat | ||
| * [MCP servers in VS Code](/docs/copilot/customization/mcp-servers.md) - Configure and use MCP servers | ||
| * [AI security considerations](/docs/copilot/security.md) - Security best practices for AI features |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.