fj-mcp
MCP server for Forgejo that exposes tools for pull requests, repositories, and issues, leveraging the local fj CLI.
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_requestsview_pull_requestcreate_pull_requestclose_pull_requestmerge_pull_requestapprove_pull_requestdiscover_repositoriesview_repositorydiscover_issuesview_issuecreate_issuecomment_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 binariofj.FJ_MCP_NEUTRAL_CWD: directorio neutro desde el que se ejecutafjpara 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,baseyhead. - Local, usando
use_current_repo: trueoworkdir, útil cuandofj pr createnecesita contexto del checkout.
Notas
- El servidor ejecuta la mayoría de comandos desde un directorio neutro porque
fjfalla en repos con branch inicial no creada. - Las respuestas de herramientas devuelven un JSON serializado con el comando ejecutado,
stdout,stderryexit_code, para que el agente pueda razonar sin depender de parseos frágiles. - El paquete usa layout
src/y expone el comandofj-mcp, por lo queuv run fj-mcpyuvx --from /ruta/a/fj-mcp fj-mcpfuncionan directamente.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.