org.machanism.machai:machai-mcp-server

A server implementation for the Model Context Protocol (MCP) using the Machai AI framework. Provides integration with GenAI tools and supports both HTTP and STDIO interfaces for AI-powered tool execution and orchestration. Does not include its own tools for publication and requires the use of additional libraries implementing functional tools and prompts.


Keywords
ai-agents, scaffolding
License
Apache-2.0

Documentation

Machai Project

Maven Central

Machai is a multi-module toolkit for GenAI-enabled developer automation. It provides Java libraries and Maven tooling that unify access to multiple GenAI providers, generate and consume Bindex metadata for library discovery and reuse, and automate repository-scale documentation updates from embedded guidance using Ghostwriter.

Modules

Module Description
Project Layout Utility library for describing and working with conventional project directory layouts in a consistent way across tools and plugins.
GenAI Client Java library for provider-agnostic integration with Generative AI services, including prompts, tools, file inputs, and embeddings.
Bindex Core Core library for Bindex metadata generation, registration, semantic library selection, and project assembly workflows.
Ghostwriter Guidance-driven documentation and repository automation engine for scanning files, applying embedded guidance, and writing AI-assisted updates.
GW Maven Plugin Maven plugin that integrates Ghostwriter workflows into Maven builds for guided and act-based automation.

Installation

Prerequisites

  • Git
  • Java 17 recommended for building the full project
  • Maven 3.8.1 or later

Clone and build

git clone https://github.com/machanism-org/machai.git
cd machai
mvn -U clean install

To build and stage the Maven Site:

mvn clean install site site:stage

Usage

Build a specific module

mvn -pl genai-client clean install

Run Ghostwriter CLI

cd ghostwriter
mvn -Ppack package
java -jar target\gw.jar src\site\markdown

Run Maven plugin goals

Guided processing:

mvn org.machanism.machai:gw-maven-plugin:1.1.0-SNAPSHOT:gw -Dgw.scanDir=src\site

Act mode:

mvn org.machanism.machai:gw-maven-plugin:1.1.0-SNAPSHOT:act -Dgw.act="Rewrite headings for clarity" -Dgw.scanDir=src\site

Use the libraries in Java projects

Add the required module as a Maven dependency and use it for project layout handling, GenAI integration, Bindex workflows, or guided repository automation.

Contributing

  • Follow the existing code style and conventions used in the repository.
  • Keep changes focused and include tests where applicable.
  • Use GitHub Issues for bug reports and feature requests: https://github.com/machanism-org/machai/issues
  • Submit pull requests with a clear description, rationale, and reproduction details when fixing bugs.
  • Review generated documentation and site changes before submitting a pull request.

License

Licensed under the Apache License, Version 2.0. See LICENSE.txt.

Contact and Support