feat: add get space tool#435
Open
Tom8810 wants to merge 1 commit into
Open
Conversation
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 dedicated way to read space metadata and portal settings via the Space REST API (
GET /k/v1/space.json). This makes it harder to inspect space name, default thread, visibility, HTML body, cover image, widget visibility, member count, attached apps, and who may create apps (EVERYONEvsADMIN) without mutating anything.For the same reasons as other Space-related operations, this tool is disabled when using API token authentication (consistent with
kintone-get-appsandkintone-add-app).What
kintone-get-space: input is the space ID (numeric string). CallsKintoneRestAPIClient.space.getSpaceand returns both structured content and pretty-printed JSON text.spaceSchema(Zod) so inputs/outputs and field descriptions are explicit.manifest.json,README.md, andREADME_en.md, and extendtool-filtersso the tool is excluded under API token auth.createMockClientwith aspace.getSpacemock 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-get-spaceis not enabled (or does not appear in the tool list), matching other excluded tools.kintone-get-spacewith a valid spaceid.name,defaultThread,isPrivate,body,attachedApps, andpermissions.createApp.Checklist
pnpm lintandpnpm teston the root directory.