feat: add update-space tool#467
Open
Tom8810 wants to merge 2 commits into
Open
Conversation
shabaraba
previously approved these changes
Jun 25, 2026
shabaraba
reviewed
Jun 25, 2026
| ), | ||
| name: z | ||
| .string() | ||
| .max(100) |
Member
There was a problem hiding this comment.
nameのバリデーションは1文字以上128文字以下でお願いします 🙇
Sorry, I missed pointing this out earlier
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.
Why
The kintone MCP had no way to update space settings via the Space REST API (
PUT /k/v1/space.json). This made it impossible to adjust space configuration—such as name, privacy, member lock, multi-thread mode, portal widget visibility, and who may create apps (EVERYONEvsADMIN)—through the MCP server, even when an administrator wanted to do so programmatically.Because this is a privileged write operation that requires space administrator privileges and cannot work with API tokens, this tool is disabled when using API token authentication (consistent with
kintone-get-apps,kintone-add-app, andkintone-search).What
kintone-update-space: takes a spaceidplus optional fields (name,isPrivate,fixedMember,useMultiThread,showAnnouncement,showThreadList,showAppList,showMemberList,showRelatedLinkList,permissions). CallsKintoneRestAPIClient.space.updateSpaceand returns an empty result, matching the API's empty success response.useMultiThreadis applied only whentrue(single-thread → multi-thread switch); passingfalsehas no effect, per the kintone REST API.nameis limited to 100 characters via Zod.spaceSchema/permissionsSchema(Zod) undersrc/schema/space/so field shapes and descriptions are explicit and reusable.manifest.json,README.md, andREADME_en.md, and extendtool-filtersso the tool is excluded under API token auth.createMockClientwith aspace.updateSpacemock hook.How to test
KINTONE_BASE_URLand credentials that the Space API accepts (not API-token-only if you expect this tool to be available).kintone-update-spaceis not enabled (or does not appear in the tool list), matching other excluded tools.kintone-update-spacewith a valid spaceidand one or more fields to change (e.g.name,isPrivate,permissions.createApp).useMultiThread: trueswitches a single-thread space to multi-thread, and that passingfalseleaves the setting unchanged.Checklist
pnpm lintandpnpm teston the root directory.