Server data from the Official MCP Registry
Build a branch name from an issue title and number, in the repo's naming convention.
About
Build a branch name from an issue title and number, in the repo's naming convention.
Security Report
branchname is a pure local computation tool that slugifies issue titles and composes branch names with no network access, no filesystem reads beyond the CLI input file, no credentials, and no shell execution. Code is clean, validation is strict, and the MCP server exposes only a single tool with a fixed schema. No security concerns were identified, and the permissions requested are minimal and match the stated purpose. Supply chain analysis found 3 known vulnerabilities in dependencies (0 critical, 2 high severity). Package verification found 1 issue.
8 files analyzed · 6 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-cloudcorprecords-branchname": {
"args": [
"-y",
"@reneturcios/branchname"
],
"command": "npx"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
branchname
Naming a branch sounds trivial until every contributor does
it differently: fix-login, 123-login-bug, johns-branch,
and a dozen variants of the same issue, none of them greppable
in the same way. branchname takes the other approach — you
hand it the issue, and it hands back one name, built the
repo's way every time.
The title is slugified by a fixed, pinned recipe: lowercase
it, replace every maximal run of characters outside
[a-z0-9] with a single -, and strip leading and trailing
-. Punctuation clusters collapse instead of multiplying,
digits survive, and characters outside ASCII — accents,
dashes, emoji — count as separators like any other
punctuation. A title with nothing slugifiable in it at all
is an error ("title produces an empty slug"), not a branch
named -.
When the slug runs long, it is truncated: cut to exactly
max_slug_length characters (40 by default, never below 8),
then strip any trailing - the cut left behind, so a branch
never ends mid-word on a dangling hyphen.
The slug is then composed in one of four conventions:
type-issue-slug(the default) —<type>/<issue_number>-<slug>, for examplefix/123-login-redirect-loop. Requires bothtypeandissue_number.type-slug—<type>/<slug>, for exampledocs/update-install-guide. Requirestype.issue-slug—<issue_number>-<slug>, for example42-login-redirect-loop. Requiresissue_number.slug— just<slug>, for examplelogin-redirect-loop. Requires neither.
type is one of feat, fix, chore, docs, refactor,
or test. Asking a convention for a component you did not
supply is an error naming that component, and malformed
input — a missing, empty, or non-string title, an
issue_number that is not an integer of at least 1, a
type or convention outside its enum, or a
max_slug_length that is not an integer of at least 8 — is
a validation error naming the offending path, with no
partial result. The computation is pure and local: no
network, no configuration, and no repository is read or
touched — branchname only builds the name.
CLI
npx @reneturcios/branchname make --input args.json
npx @reneturcios/branchname --version
args.json contains the full arguments object:
{
"title": "Fix login redirect loop",
"issue_number": 123,
"type": "fix"
}
convention defaults to "type-issue-slug" and
max_slug_length defaults to 40. The result is printed
as JSON:
{
"branch": "fix/123-fix-login-redirect-loop",
"slug": "fix-login-redirect-loop",
"convention": "type-issue-slug"
}
Exit codes: 0 on success, 1 on a runtime error (including
an unreadable or invalid input file, or invalid input), 2
on a usage error.
MCP server
npx -y @reneturcios/branchname mcp
MCP client config:
{
"mcpServers": {
"branchname": {
"command": "npx",
"args": ["-y", "@reneturcios/branchname", "mcp"]
}
}
}
Tools
-
make_branch_name— Build a branch name from an issue title.title(string, required, non-empty) — the issue title to slugifyissue_number(integer, optional, at least 1) — the issue numbertype(string, optional) — change type prefix, one offeat,fix,chore,docs,refactor,testconvention(string, optional, default"type-issue-slug") — one oftype-issue-slug,type-slug,issue-slug,slugmax_slug_length(integer, optional, default 40, at least 8) — maximum slug length before truncation
Returns
{branch, slug, convention}, whereslugis the final (possibly truncated) slug andconventionechoes the resolved convention.
Docker
docker run -i ghcr.io/cloudcorprecords/branchname
docker run --rm -v "$PWD:/w" ghcr.io/cloudcorprecords/branchname make --input /w/args.json
Development
npm install
npm run build # tsc -> dist/
npm test # tsx --test test/*.test.ts (pure local, no network)
npm run dev # run the CLI from source
License
MIT — Copyright (c) 2026 Rene Turcios
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Fetch
Freeby Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
Git
Freeby Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
