Add admin/app/proxy cleanup parity tools
Summary
Adds the small MCP parity cleanup slice after browser pools:
manage_apps- adds
delete_deployment - passes
versionthrough to deployment listing as the SDK'sapp_versionfilter - exposes app
querysearch onlist_apps - validates that deployment version filtering includes
app_name, matching the SDK/API requirement
- adds
manage_proxies- adds
get - adds
checkwith optionalcheck_url - validates
check_urlas HTTP(S) at the MCP boundary
- adds
manage_profiles- adds
get - exposes profile
query,limit, andoffsetfor paginated listing instead of forcing agents to enumerate every profile - uses profile search during setup's existing-name check
- adds
manage_projects- adds
get_limitsandupdate_limitsfor per-project caps
- adds
manage_extensions- keeps list/delete behavior but moves responses onto the shared response helpers for consistent errors
- README now reflects the actual 15-tool surface on this stack.
Review Question
The main question for this PR is not whether the SDK calls work; it is whether we want this functionality exposed through MCP at all.
My current read:
- Yes for proxy
get/check, profileget/search pagination, and app deployment list/delete because they map to concrete agent workflows: prepare a browser with a working proxy, reuse the right profile, and clean up an app deployment after testing. manage_projectsget_limits/update_limitsis the most admin-passthrough-shaped part of this PR. Keep it if we want MCP to support lightweight project administration; split or drop it if we want this MCP to stay strictly browser/workflow-oriented.
If accepted, I would treat this as the last small parity/admin cleanup slice, not as precedent that every SDK endpoint automatically deserves MCP exposure.
Why
These are the remaining small SDK passthroughs that do not belong in the managed-auth PR. They close agent-facing gaps without adding another large workflow surface:
- agents can clean up deployments after testing an app version
- agents can filter deployments by app version instead of scanning all deployments
- agents can verify proxy connectivity against a specific target URL before launching browsers through that proxy
- agents can search and page through profiles safely in larger orgs
- admins can inspect and update project resource caps without leaving MCP
Agent Experience / Flow
Typical app cleanup flow:
- Agent calls
manage_apps { action: "list_apps", query: "..." }to find the app/version. - Agent calls
manage_apps { action: "list_deployments", app_name, version }to narrow to the deployment for that app version. - Agent calls
manage_apps { action: "get_deployment", deployment_id }before destructive action. - If the deployment is stale or explicitly requested for cleanup, agent calls
manage_apps { action: "delete_deployment", deployment_id }.
Typical proxy verification flow:
- Agent calls
manage_proxies { action: "list" }orgetto identify the proxy. - Agent calls
manage_proxies { action: "check", proxy_id, check_url: "https://target.example" }when site-specific reachability matters. - Agent only passes that proxy into browser/session creation after the check result looks healthy.
Typical profile discovery flow:
- Agent calls
manage_profiles { action: "list", query, limit }instead of pulling every profile. - Agent calls
manage_profiles { action: "get", profile_name }before reuse or deletion. - Agent uses
setuponly when the desired profile does not already exist, or withupdate_existing: truewhen intentionally refreshing it.
Typical admin limit flow:
- Agent calls
manage_projects { action: "get", project_id }to confirm the target project. - Agent calls
manage_projects { action: "get_limits", project_id }to inspect current caps. - Agent calls
update_limitsonly with the specific cap fields requested by the user; omitted fields are left unchanged.
Implementation Notes
- This PR deliberately does not touch Mason's managed-auth tools from #104.
- Binary extension upload/download is not added here because that would be a separate agent workflow with different safety and payload-size concerns.
- Shared
textResponse,jsonResponse, anderrorMessagehelpers are used in touched handlers to keep tool output consistent.
Verification
bunx prettier --check README.md src/lib/mcp/tools/apps.ts src/lib/mcp/tools/proxies.ts src/lib/mcp/tools/profiles.ts src/lib/mcp/tools/projects.ts src/lib/mcp/tools/extensions.tsgit diff --checkbun run buildwith dummy auth env. Build passes; network access was needed because Next/Turbopack fetches Google Fonts during build.- Local MCP smoke against
http://localhost:3002/mcpwith dummy bearer token:tools/listreturned 15 tools- verified registration for
manage_apps,manage_proxies,manage_profiles,manage_projects, andmanage_extensions - verified validation responses for deployment version filtering without
app_name, deployment delete withoutdeployment_id, proxy check withoutproxy_id, profile get without profile identifier, projectget_limitswithoutproject_id, and non-HTTP(S)check_urlschema rejection.
[!NOTE] Medium Risk New destructive (
delete_deployment) and admin (update_limits) actions are exposed through MCP with the same auth as other tools; validation is present but agents could misuse caps or delete deployments if prompted incorrectly.Overview Extends several
manage_*MCP tools with SDK parity actions and aligns README with the documented tool surface.
manage_appsaddsdelete_deployment,queryonlist_apps, andversionfiltering onlist_deployments(mapped toapp_version), with validation when version is set withoutapp_name.
manage_proxiesaddsgetandcheck(optional HTTP(S)check_urlvalidated at the schema boundary).manage_profilesaddsgetand uses name search duringsetup’s duplicate check.manage_projectsaddsget_limitsandupdate_limitsfor concurrent invocations, sessions, and pooled session caps.
manage_extensions,manage_proxies, and related handlers adopt sharederrorResponse/jsonResponse/itemsJsonResponsehelpers for consistent tool output.Reviewed by Cursor Bugbot for commit 27afef78cb1b6015ccfa6e9333464eaea09fccf0. Bugbot is set up for automated code reviews on this repo. Configure here.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| mcp | Preview, Comment | Jun 24, 2026 7:20pm |
Firetiger deploy monitoring skipped
This PR didn't match the auto-monitor filter configured on your GitHub connection:
PRs in the
kernel,infra,hypeman, andhypeshiprepos.kernelis a ~mono repo with many logical services underneath, ensure to focus on the implicated service for the PR
Reason: PR is from the browser-pools-parity-mcp-tool branch (not a standard repo) and lacks clear repository context; please confirm this targets one of the monitored repos (kernel, infra, hypeman, hypeship) and opt in manually if needed.
To monitor this PR anyway, reply with @firetiger monitor this.