Labsco
Extiri logo

CodeMenu MCP

from Extiri

Gives agents access to the knowledge snippets library

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

codemenu-mcp

MCP server for CodeMenu snippet manager.

Overview

This is a Model Context Protocol (MCP) server that provides integration with the CodeMenu local HTTP API, allowing AI assistants to access and search through code snippets stored in CodeMenu.

Features

The server exposes the following tools for interacting with CodeMenu:

  • list_snippets - List snippets without full code content (to reduce token usage). Returns id, title, description, language, abbreviation, tags, and group info. Supports filtering by query, language, tag, or group.
  • get_snippet - Retrieve the full details of a specific snippet by ID, including complete code content
  • list_tags - List all available tags in CodeMenu
  • list_groups - List all available groups in CodeMenu

Development

Running the Server

npm start

The server communicates over stdio, which is the standard transport for MCP servers.

Testing

npm test

This validates that the server correctly implements the MCP protocol. To test actual API calls, make sure CodeMenu is running with the API enabled.

Project Structure

  • index.js - Main server implementation
  • package.json - Project metadata and dependencies
  • test.js - MCP protocol test suite
  • README.md - This file
  • LICENSE - MIT license
  • .gitignore - Files to exclude from git

API Reference

The server implements the Model Context Protocol and exposes tools that correspond to CodeMenu API endpoints:

  • GET /snippets - List snippets with optional filters (query, language, tag, group)
  • GET /tags - List all tags
  • GET /groups - List all groups

For detailed information about the CodeMenu API, refer to the CodeMenu API documentation.

Support

For issues related to: