Skip to content

feat: add MCP server registration to init command#12

Closed
baeyc0510 wants to merge 2 commits intomainfrom
feat/mcp-registration
Closed

feat: add MCP server registration to init command#12
baeyc0510 wants to merge 2 commits intomainfrom
feat/mcp-registration

Conversation

@baeyc0510
Copy link
Copy Markdown
Contributor

Add interactive MCP server registration during project initialization with support for multiple platforms and configuration types.

Features:

  • Interactive prompt with arrow key navigation (promptui)
  • Support for 4 platforms:
    • Claude Desktop (global config)
    • Claude Code (project .mcp.json)
    • Cursor (project .cursor/mcp.json)
    • VS Code/Cline (project .vscode/mcp.json)
  • Platform-specific JSON formats (VS Code uses different structure)
  • New flags: --register-mcp (registration only), --skip-mcp (skip prompt)
  • Automatic backup creation before modification
  • Project-specific configs enable team collaboration via version control

Changes:

  • Add promptui dependency for interactive selection
  • Create internal/cmd/mcp_register.go with registration logic
  • Update internal/cmd/init.go with MCP registration flow
  • Support both global and project-specific MCP configurations

🤖 Generated with Claude Code

baeyc0510 and others added 2 commits November 12, 2025 15:47
Add interactive MCP server registration during project initialization
with support for multiple platforms and configuration types.

Features:
- Interactive prompt with arrow key navigation (promptui)
- Support for 4 platforms:
  * Claude Desktop (global config)
  * Claude Code (project .mcp.json)
  * Cursor (project .cursor/mcp.json)
  * VS Code/Cline (project .vscode/mcp.json)
- Platform-specific JSON formats (VS Code uses different structure)
- New flags: --register-mcp (registration only), --skip-mcp (skip prompt)
- Automatic backup creation before modification
- Project-specific configs enable team collaboration via version control

Changes:
- Add promptui dependency for interactive selection
- Create internal/cmd/mcp_register.go with registration logic
- Update internal/cmd/init.go with MCP registration flow
- Support both global and project-specific MCP configurations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add interactive API key configuration during project initialization
with support for both environment variables and .sym/.env file.

Features:
- Interactive prompt only when API key not found
- Priority: system env var > .sym/.env file
- Masked input for API key entry
- Basic validation (sk- prefix, length check)
- Automatic .gitignore update for .sym/.env
- File permissions set to 0600 for security

New flags:
- --setup-api-key: Setup API key only (skip roles/policy init)
- --skip-api-key: Skip API key configuration prompt

Changes:
- Create internal/cmd/api_key.go with key management logic
- Add promptAPIKeyIfNeeded() to init.go workflow
- Update convert, validate, mcp commands to use getAPIKey()
- Support loading API key from .sym/.env file

Benefits:
- No need to set environment variables manually
- Project-specific API keys (team collaboration)
- Secure file storage with restrictive permissions
- Backward compatible with existing env var setup
- Can be configured later with 'sym init --setup-api-key'
@baeyc0510 baeyc0510 closed this Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant