fj-mcp

fj-mcp

MCP server for Forgejo that exposes tools for pull requests, repositories, and issues, leveraging the local fj CLI.

Category
Visit Server

README

fj-mcp

Servidor MCP por stdio para Forgejo, pensado para agentes que colaboran en desarrollo de software y reutilizan el CLI local fj.

Herramientas expuestas

  • discover_pull_requests
  • view_pull_request
  • create_pull_request
  • close_pull_request
  • merge_pull_request
  • approve_pull_request
  • discover_repositories
  • view_repository
  • discover_issues
  • view_issue
  • create_issue
  • comment_on_issue

Cómo ejecutarlo

uv run fj-mcp --default-host git.my-forgejo.com

También puedes usarlo con uvx sin instalación global:

uvx --from git+https://github.com/jairov4/fj-mcp.git fj-mcp --default-host git.my-forgejo.com

Ejemplo de configuración en mcp.json:

{
  "mcpServers": {
    "fj": {
      "command": "uvx",
      "args": [
        "--from",
        "/ruta/a/fj-mcp",
        "fj-mcp",
        "--default-host",
        "git.my-forgejo.com"
      ],
      "env": {
        "FORGEJO_TOKEN": "tu_token_opcional_para_aprobar_prs"
      }
    }
  }
}

Variables opcionales:

  • FJ_MCP_DEFAULT_HOST: host por defecto si no quieres pasarlo por argumento.
  • FJ_BIN: ruta al binario fj.
  • FJ_MCP_NEUTRAL_CWD: directorio neutro desde el que se ejecuta fj para evitar depender del repo actual.
  • FJ_MCP_APPROVAL_TOKEN_ENV: nombre de la variable que contiene el token para aprobar PRs.

Si prefieres no usar uvx, el ejemplo anterior también funciona con:

{
  "mcpServers": {
    "fj": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/jairov4/fj-mcp.git",
        "fj-mcp",
        "--default-host",
        "git.my-forgejo.co"
      ]
    }
  }
}

Configuración de aprobación de PRs

fj no expone un subcomando para aprobar PRs, así que approve_pull_request usa la API HTTP de Forgejo.

Por defecto busca el token en FORGEJO_TOKEN:

export FORGEJO_TOKEN=tu_token
uv run fj-mcp --default-host git.my-forgejo.com

Formatos importantes

Los issues y PRs se identifican como owner/repo#123.

create_pull_request soporta dos modos:

  • Remoto, usando repo, base y head.
  • Local, usando use_current_repo: true o workdir, útil cuando fj pr create necesita contexto del checkout.

Notas

  • El servidor ejecuta la mayoría de comandos desde un directorio neutro porque fj falla en repos con branch inicial no creada.
  • Las respuestas de herramientas devuelven un JSON serializado con el comando ejecutado, stdout, stderr y exit_code, para que el agente pueda razonar sin depender de parseos frágiles.
  • El paquete usa layout src/ y expone el comando fj-mcp, por lo que uv run fj-mcp y uvx --from /ruta/a/fj-mcp fj-mcp funcionan directamente.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured