update_project_main
Creates or fully replaces main.md content for projects on the Knowledge MCP Server. Use to migrate, initialize, or rewrite project guidelines with automatic git commits and markdown validation. Ideal for complete updates, not minor changes.
Instructions
Create or completely replace main.md content for a project.
When to use this tool:
Migrating CLAUDE.md content to centralized MCP storage
Creating a new project's instruction set
Completely rewriting project guidelines
Setting up initial project configuration
Key features:
Creates project if it doesn't exist (auto-initialization)
Completely replaces existing content (destructive update)
Automatically commits changes to git
Validates markdown structure
You should:
Check if project exists first with get_project_main
Preserve important sections when doing full updates
Use update_project_section for partial changes instead
Include all necessary sections in the new content
Validate markdown formatting before submission
Consider the impact of complete replacement
Document why full replacement is necessary
DO NOT use when:
Making small updates (use update_project_section instead)
You haven't read the existing content first
Uncertain about losing existing content
Returns: {success: bool, message?: str, error?: str}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | The new markdown content for main.md | |
project_id | Yes | The project identifier |