[codex] Add MCP project management tool#108
Open
IlyaasK wants to merge 2 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
d15ef46 to
47cc584
Compare
Monitoring Plan: MCP Server Tool Registration Refactored into ModulesWhat this PR does: Reorganizes internal MCP server code — moves tool, resource, and prompt registration from a single large file into separate module files. No tools added or removed, no user-visible behavior change intended. Intended effect:
Risks:
Status updates will be posted automatically on this PR as monitoring progresses. |
25043a6 to
d92b043
Compare
rgarcia
previously approved these changes
Jun 1, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
manage_projectsfor Kernel project create/list/get/update/delete workflows.src/lib/mcp/tools/projects.tssoroute.tsstays HTTP/auth-only.Agent Experience / Flow
This PR gives agents a first-class way to discover and select the project boundary before doing resource-scoped work. Projects are the isolation primitive that later tools, especially API-key creation, depend on through
project_id.Typical flow:
manage_projects listto discover existing projects and avoid creating duplicates.queryon list orgetby knownproject_idto resolve the exact target.manage_projects create name=<name>and keeps the returnedproject_idfor downstream tool calls.project_idintomanage_api_keys createfrom the next PR.manage_projects update project_id=<id> name=<new>orstatus=archived.deletefor scratch or explicitly requested projects, because project deletion affects the resource boundary for other workflows.Agent ergonomics:
project_idhandoff to later tools.Validation
git diff --check codex/route-tools-breakdown...HEADKERNEL_CLI_PROD_CLIENT_ID=dummy-prod KERNEL_CLI_STAGING_CLIENT_ID=dummy-staging KERNEL_CLI_DEV_CLIENT_ID=dummy-dev NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_Y2xlcmsuZXhhbXBsZS5jb20k bun run buildpython3 /Users/ilyaas/.codex/skills/autoreview/scripts/autoreview --mode branch --base codex/route-tools-breakdownhttp://127.0.0.1:3002/mcpwithAPI_BASE_URL=http://127.0.0.1:3001: initialized MCP, verifiedmanage_projectswas listed, created a scratch project, got/updated/listed/deleted it, and confirmed post-delete get failed as expectedNote
Medium Risk
Introduces authenticated create/update/delete against org projects; mistakes or overly broad MCP access could change isolation boundaries, though behavior mirrors existing MCP tool patterns.
Overview
Exposes Kernel project lifecycle over MCP via a new
manage_projectstool (create, list, get, update, delete), including list pagination and archive-by-status on update.Wires it in through
registerProjectCapabilitiesinregister.ts, with implementation isolated inprojects.tsusing the authenticated Kernel client like other MCP tools.Reviewed by Cursor Bugbot for commit 608f5aa. Bugbot is set up for automated code reviews on this repo. Configure here.