0.0.3 • Published 6 months ago

@inkr/codebase-mcp v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

@inkr/codebase-mcp

License: MIT

An MCP (Model Context Protocol) server designed to provide tools for interacting with codebases, leveraging generative AI capabilities. This server allows AI agents or other MCP clients to ask questions about a specified codebase path.

✨ Features

  • Codebase Interaction: Provides an MCP tool (ask_codebase) to query information about codebases.
  • Generative AI Integration: Utilizes @google/genai for processing and answering codebase-related questions.
  • Stdio Transport: Communicates using the standard MCP stdio transport mechanism.

📚 Table of Contents

🚀 Usage

This project runs as an MCP server. It's typically invoked by an MCP client or controller.

Connecting an MCP Client

Follow the configurations in these files, remember to update env inside with your preference:

Environment Variables

VariableDescriptionRequiredDefault
GEMINI_API_KEYYour Gemini API keyYes
MODELThe model to use for codebase analysisNogemini-2.0-flash
CODEBASE_PATHThe path to the codebaseNo(current working directory)

Tools

Once connected, the client can invoke the tools provided by this server.

ask_codebase

ArgumentDescriptionRequiredDefault
questionThe question to ask about the codebaseYes
pathThe path of the file or directory to query, relative to CODEBASE_PATHNo(Use CODEBASE_PATH)

⚙️ Development

Prerequisites

Steps

  1. Install dependencies:

    bun install
  2. Configuration (if necessary):

    • Check if any specific environment variables are required for @google/genai (e.g., API keys). Create a .env file if needed. (Further investigation might be needed to confirm required variables).
  3. Run:

    • In IDEs: Reload window and check if the MCP is connected
    • Manually: Run ./run in your terminal

💻 Technology Stack

📜 License

This project is licensed under the MIT License - see the LICENSE file for details. Copyright (c) 2025 INKR Global

📧 Contact

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

7 months ago