fj-mcp
Allows interaction with Forgejo repositories, pull requests, and issues, providing tools for discovering, viewing, creating, closing, merging, and approving pull requests, as well as managing repositories and issues.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fj-mcplist pull requests in repository jairov4/example"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: poly-git-mcp
Cómo ejecutarlo
uv run fj-mcp --default-host git.my-forgejo.comTambié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.comEjemplo 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.comFormatos 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jairov4/fj-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server