refactor(codegen): add config/helpers docs and remove all MCP functionality#803
Merged
pyramation merged 1 commit intomainfrom Mar 13, 2026
Merged
Conversation
…rators - Update MultiTargetDocsInput to include config in builtinNames - Add config get/set/list/delete to generateReadme and generateMultiTargetReadme - Add config TOOL + helpers SDK TOOL to generateAgentsDocs and generateMultiTargetAgentsDocs - Add 4 config MCP tools to getCliMcpTools and getMultiTargetCliMcpTools - Add config skill reference to generateSkills and generateMultiTargetSkills - Document helpers.ts typed client factories and 3-tier credential resolution - Update test fixtures to include config in builtinNames - Update snapshots
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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.
refactor(codegen): add config/helpers docs and remove all MCP functionality
Summary
This PR has two parts:
1. Document config command and helpers.ts in CLI docs generators
The Phase 2 codegen update (PR #802) added
configcommand generation andhelpers.tstyped client factories, but the CLI documentation generators were not updated to document these new features. This fills that gap across all doc generator functions.Multi-target generators (use
builtinNames.configfor collision-safe naming):generateMultiTargetReadme— config subcommands table + SDK Helpers section with typed factory examples and 3-tier credential resolutiongenerateMultiTargetAgentsDocs— config TOOL block + helpers (SDK) TOOL block with factories, usage, and credential resolutiongenerateMultiTargetSkills— config reference file + updated cli-common SKILL.mdSingle-target generators (hardcoded
"config", consistent with existing"auth"/"context"pattern):generateReadme— config in commands table + config infrastructure sectiongenerateAgentsDocs— config TOOL blockgenerateSkills— config reference file + updated SKILL.mdAlso updates
MultiTargetDocsInput.builtinNamesto requireconfig: string.2. Remove all MCP (Model Context Protocol) tool generation
MCP tool generation has been completely removed. It was never an actual MCP server — just static JSON metadata files (
mcp.json) with tool definitions. Removed:McpToolinterface andgqlTypeToJsonSchemaTypehelper fromdocs-utils.tsgetCliMcpTools/getMultiTargetCliMcpToolsfromcli/docs-generator.tsgetOrmMcpToolsfromorm/docs-generator.tsgetHooksMcpToolsfromhooks-docs-generator.tsgenerateCombinedMcpConfigfromtarget-docs-generator.tsmcp?: booleanfromDocsConfiginterface intypes/config.tsgenerate.ts(both single-target and multi-target paths)cli/index.tscli-generator.test.tsNet result: ~2,300 lines deleted across 10 files.
Review & Testing Checklist for Human
McpTooltype export,getCliMcpTools,getOrmMcpTools,getHooksMcpTools,getMultiTargetCliMcpTools, andgenerateCombinedMcpConfigare all removed from the public API. Any downstream code importing these will break. Verify no external consumers depend on them before publishing.DocsConfig.mcpremoved: Existing codegen configs withdocs: { mcp: true }will produce a TypeScript error. Confirm no active projects pass this option.helpers.tsis only generated for multi-target CLIs.mcp.jsonfile is generatedcli-common/references/config.mdNotes
Link to Devin Session: https://app.devin.ai/sessions/6f16c8a57231488085f04a68be7d599b
Requested by: @pyramation