Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

github changedmanaged-agents/github

Nearest release: v2.1.336, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+26added
Lines−0removed
From line 309 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits32to this page, all time

The whole hunk

from line 309, old and new numbered
/
lines
from line 309
309309 ]
310310 )
311311 ```
312 
313 ```hcl Terraform
314 resource "anthropic_beta_agent" "code_reviewer" {
315 name = "Code Reviewer"
316 model = { id = "claude-opus-5-5" }
317 mcp_servers = [
318 { url = { name = "github", url = "https://api.githubcopilot.com/mcp/" } },
319 ]
320 tools = [
321 {
322 agent_toolset_20260401 = {
323 configs = [
324 { web_search = { enabled = false } },
325 { web_fetch = { enabled = false } },
326 ]
327 }
328 },
329 {
330 mcp_toolset = {
331 mcp_server_name = "github"
332 }
333 },
334 ]
335 system = "You are a code review assistant with access to GitHub."
336 }
337 ```
312338</CodeGroup>
313339 
314340Then create a session that mounts the GitHub repository. With a `limited` [environment](https://platform.claude.com/docs/en/managed-agents/environments#networking), session creation fails with a 400 error when the agent declares an MCP server whose host is not in `allowed_hosts` (java, php: `allowedHosts`; csharp, go: `AllowedHosts`). Setting `allow_mcp_servers` (java: `allowMcpServers`; php: `allowMCPServers`; csharp: `AllowMcpServers`; go: `AllowMCPServers`) to `true` in the environment’s networking turns this check off.
Feedback