Skip to main content
Glama

Knowledge MCP Server

by sven-borkert

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:

  1. Check if project exists first with get_project_main

  2. Preserve important sections when doing full updates

  3. Use update_project_section for partial changes instead

  4. Include all necessary sections in the new content

  5. Validate markdown formatting before submission

  6. Consider the impact of complete replacement

  7. 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

NameRequiredDescriptionDefault
contentYesThe new markdown content for main.md
project_idYesThe project identifier

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "content": { "description": "The new markdown content for main.md", "maxLength": 10485760, "type": "string" }, "project_id": { "description": "The project identifier", "maxLength": 100, "minLength": 1, "type": "string" } }, "required": [ "project_id", "content" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sven-borkert/knowledge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server