[codex] Add MCP project management tool#108
Open
IlyaasK wants to merge 1 commit 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
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.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 MCP-driven project update and delete against org resources; behavior is gated on existing MCP auth but mistaken agent use could archive or remove projects.
Overview
This PR exposes organization project lifecycle to MCP clients via a new
manage_projectstool, wired throughregisterProjectCapabilitiesin the MCP capability registration path.The tool supports create, list (with optional name filter and pagination), get, update (name and/or active/archived status), and delete, using the caller’s auth token and the existing Kernel client. Required fields are validated in-tool before API calls; failures return text errors rather than throwing to the host.
Project logic lives in
src/lib/mcp/tools/projects.ts, consistent with other capability modules, so routing stays thin.Reviewed by Cursor Bugbot for commit d92b043. Bugbot is set up for automated code reviews on this repo. Configure here.