TinaMCP

TinaMCP

0

The TinaCMS MCP Server is a C# implementation of a Model Context Protocol server, allowing interaction with TinaCMS project content files for AI models and other clients. It offers operations like listing and managing documents within the project using standard MCP protocols.

TinaCMS MCP Server Overview

This project is a standalone Model Context Protocol (MCP) server implemented using the C# SDK. It is designed to interact with content files in a TinaCMS project repository, enabling AI models and other MCP clients to perform operations like listing, reading, creating, updating, and deleting content. The server supports basic content management operations, leveraging the standard MCP Stdio transport for communication.

Features

  • Connects to TinaCMS project directories.
  • Supports standard MCP operations such as listing collections and documents, reading content and frontmatter, creating, updating, and deleting documents.
  • Provides path validation and security checks.

Prerequisites

  • .NET 8 SDK
  • Node.js and npm/npx
  • TinaCMS Project

Setup

  1. Clone the project.
  2. Configure the RootPath in appsettings.json with the full path of your TinaCMS project's root directory.
  3. Restore dependencies using dotnet restore.

Development

  • Build the project using dotnet build.
  • Run the server locally using dotnet run or by running the compiled DLL. Connect via MCP clients for testing.

Testing with MCP Inspector

  • Use the MCP Inspector for testing the server tools.