Repository navigation
feat: expand MCP tool export (valibot output, env meta, shell exclusion, tool name collisions) - #63
Merged
Merged
Conversation
…on, tool name collisions) - export outputSchema for valibot-written output.tsx, not just Type.* - add _meta decopin-cli/env listing env.tsx requirements per tool - exclude shell.tsx commands from tools/list and refuse calling them by name - keep choose()-using commands listed since their failure is structured - guard against tool name collisions after route normalization, at build and runtime - document all of the above in README, docs/decisions.md, and the MCP guide
Contributor
Startup benchmark
Difference: -0.2 ms (-1.0%) against Own share is the mean minus the runtime floor — the part this project is Bundle sizeMinimal CLI (
Difference: +3.8 KB (+4.9%) against |
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
output.tsxからもoutputSchemaを出す (これまではType.*のみ)env.tsxの宣言を_meta["decopin-cli/env"]に載せ、呼ぶ前に必要な環境変数を読めるようにするshell.tsxを持つコマンドはtools/listから除外し、名前指定での呼び出しも拒否する(親シェルを変える手段のため、MCP ホスト下では無意味かつ半端に成功して見える)choose()を使うコマンドは一覧に残す(失敗が構造化されて返るため)Test plan
bun test test/runtime/mcp.test.tsx(28 pass)