Contributing to emby-mcp
Thanks for wanting to help. emby-mcp is a community project, and every kind of contribution is welcome: bug reports, notes on how Emby’s API behaves, documentation fixes, new tools and code review.
By taking part you agree to follow the code of conduct.
Ways to contribute
Section titled “Ways to contribute”- Report a bug. Use the bug report form. Include the emby-mcp version, the Emby Server version, the tool involved and the exact error, and strip out your API key, server address, user names, file paths and any other private details.
- Share what you’ve learned about Emby’s API. A note in an issue or discussion saying “Emby 4.9 answers this request differently”, or “the web app sends X to change Y”, is genuinely useful. Anonymise anything you paste.
- Suggest a feature. Open a feature request. If you know the API request for it (from your server’s
/emby/openapi.json, or what the Emby web app sends), include it. It’s often most of the work. - Improve the docs. Typos, unclear steps and missing examples are all fair game. Small docs fixes can go straight to a pull request.
- Write code. Look for issues labelled
good first issueorhelp wanted. For anything big, please open an issue first so we can agree on the approach before you invest time. - Report a vulnerability privately. See SECURITY.md. Please don’t open a public issue for it.
Development setup
Section titled “Development setup”You need Go 1.26+ and, to build the image, Docker.
git clone https://github.com/<you>/emby-mcp.git # your forkcd emby-mcpmake testmake test runs the whole suite against a built-in mock Emby in a few seconds. You don’t need an Emby server to contribute.
See docs/development.md for the architecture, gates and dry runs, the mock and a walkthrough of adding a tool.
Making a change
Section titled “Making a change”-
Fork the repository and create a branch from
main, for examplegit checkout -b feat/series-tags. -
Make your change with tests. Keep it focused: one feature or fix per pull request.
-
Run the checks that CI runs:
Terminal window make test # go test ./...make lint # gofmt and go vetmake docs-check # docs/tools.md and mcpb/manifest.json match the code, and server.json matches the manifestmake image # optional: the image builds and the tests pass inside it -
Update the docs. If you changed tools, run
make docs. UpdateREADME.mdordocs/if behaviour changed, and add a line under Unreleased in CHANGELOG.md for anything users will notice. -
Open a pull request against
mainwith a Conventional Commits title, and fill in the template.
Pull request guidelines
Section titled “Pull request guidelines”- CI must be green. It runs the tests, lint, the generated-docs check and govulncheck, builds the image for amd64 and arm64, and smoke-tests the container and the bundles.
- Match the existing style:
gofmt, small focused functions, errors that tell the user what to do, and comments that explain why rather than what. - No new dependencies without discussion. The project deliberately stays small. The only direct dependencies are the MCP Go SDK and
jsonschema-go. - Never include real API keys, server addresses, user names, file paths or other personal data in code, tests, fixtures or screenshots. Use obviously fake values like
emby.lan,192.0.2.10and<your-api-key>. - Maintainers may push small fixes to your branch or squash commits when merging.
- Label suggestions (
bug,enhancement,new-tool,compatibility,documentation,breaking, …) are welcome. Labels sort the auto-generated release notes.
Commit messages
Section titled “Commit messages”Commits and pull request titles follow Conventional Commits. Pull requests are squash-merged, so the PR title becomes the commit on main, and a check fails the pull request if its title doesn’t match.
- Format:
<type>(<optional scope>)<optional !>: <description>, for examplefeat: add series tagging,fix(metadata): keep locks when renaming a tag,docs: explain the TLS choiceorbuild(deps): bump golang from 1.27 to 1.28. - Types:
feat,fix,docs,refactor,perf,test,build(dependencies, Dockerfile and toolchain),ci(workflows),chore(anything else, such aschore(release): v1.2.0),revertandstyle. - Description: imperative mood, lower-case first word and no trailing full stop. Keep the whole subject to 72 characters or fewer.
- Breaking changes: add
!after the type or scope and aBREAKING CHANGE: …footer in the body or PR description, and label the pull requestbreaking. - Body: explain why when it isn’t obvious, and reference issues with
Fixes #123.
Adding or changing tools
Section titled “Adding or changing tools”The full guide is in docs/development.md. The short version:
- Put the tool in the right toolset file under
internal/tools/, usingadd[In]()with aDefand an input struct whosejsonandjsonschematags define the arguments. - Set its
Gatecorrectly:Writefor anything that changes the server, andDeletefor anything that deletes. This gating is the project’s main safety feature, so reviewers check it carefully. - Validate every value before it reaches Emby, check IDs before they go into a request path, and give ranges with
Rangesso they appear in the schema. - Use Emby’s documented endpoints, as in
/emby/openapi.json. When an endpoint replaces a whole object, read it in full first so nothing is wiped. - Return compact summaries, offer
raw: truewhere it helps, and never return API keys, tokens or passwords. - Write the description for an AI model: what the tool does, limits, and side effects.
- Add tests against the mock, including a dry run for tools that change things, then run
make docs.
Changing an existing tool’s name or arguments in an incompatible way, or moving it to a less restrictive gate, is a breaking change. Call it out in the PR and the changelog.
Releases
Section titled “Releases”Releases are made by maintainers by pushing a version tag on main. That triggers the workflow that builds and pushes the Docker image, attaches the Claude Desktop bundles and binaries to a draft release, publishes the release and, for stable releases, publishes to the MCP Registry. The changelog update for a release goes in a small pull request titled chore(release): vX.Y.Z. See docs/releasing.md.
Getting help
Section titled “Getting help”Ask in GitHub Discussions, or comment on the issue you’re working on. No question is too small.