Repository navigation
Add MCP tools to create a shared library entry and rename a git token - #8856
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8856 +/- ##
==========================================
+ Coverage 79.01% 79.03% +0.01%
==========================================
Files 475 476 +1
Lines 25820 25838 +18
Branches 6867 6870 +3
==========================================
+ Hits 20402 20420 +18
Misses 5418 5418
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
cstns
approved these changes
Oct 12, 2026
added 3 commits
October 12, 2026 15:40
andypalmi
enabled auto-merge (squash)
October 12, 2026 13:48
This branch was successfully deployed
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.
Closes #7709
Adds
platform_create_library_entry, which saves an entry in a team's shared library, andplatform_update_git_token, which renames a team git token. The third tool of the issue,platform_create_database_table, was #8633.platform_update_git_tokenreturns only{ id, name, type }. The route's view never includes the stored token, and the route only readsnamefrom the body, so the tool needs no redaction and cannot change the credential.The library tool takes
teamId(the shared library id is the team hashid) and lives in a newlibrary.js. The git tool sits inteams.jsnext toplatform_list_team_git_tokens.Things I checked against the real routes:
idempotentHint: trueand the description says it overwrites. The same path with a different type creates a second entry.{ entry: { path, type } }.bodymay be a string or an object, which the route stringifies. The route rejects aflowsbody that is not valid JSON with 400..and..segments. The tool still checks them itself, because the URL resolves.and..segments, even encoded ones, before the route sees the name, soa/../bwould be saved asb. It also encodes each segment.Issues found while testing, now fixed: