Skip to content

Add CONTRIBUTING.md - #18

Merged
ToxicOrca merged 1 commit into
mainfrom
docs/add-contributing-guide
Aug 4, 2026
Merged

Add CONTRIBUTING.md#18
ToxicOrca merged 1 commit into
mainfrom
docs/add-contributing-guide

Conversation

@ToxicOrca

Copy link
Copy Markdown
Collaborator

Summary

This repo has never had a CONTRIBUTING.md. This one was written directly from the process of documenting the initial local setup, so it reflects what was actually encountered rather than an idealized version of the workflow.

It covers six areas:

  • What this server does — what bookstack-mcp exposes to an MCP client and why it exists.
  • Local setup — a disposable docker-compose BookStack instance, the Node 22 requirement, API token setup, and SSH port-forwarding notes.
  • Running the tests — how to run them and an honest note on current coverage (concurrency limiter only).
  • Making a change — the branch/commit/PR workflow and commit message conventions.
  • How it ships — merge triggers a tag, but the release workflow pauses for maintainer approval before anything publishes.
  • Gotchas — a list of sharp edges found during setup.

Note on a real bug found during setup

One of the Gotchas documents that npm run dev (tsx src/index.ts) does not load .env at all — there's no dotenv import or --env-file flag anywhere in the repo, so following the documented setup steps silently fails to configure the server. The workaround is node --env-file=.env --import tsx src/index.ts. This is a real bug, already reported separately from this PR; it's called out here for anyone doing local setup in the meantime, not being fixed as part of this change.

Test plan

  • Read through as a new contributor and confirm the steps are followable

This repo has never had contributor documentation. Written while
documenting the initial local setup so the steps and pitfalls
encountered along the way (docker-compose for a throwaway BookStack
instance, Node version requirement, token setup, and the env-file
gotcha) are captured before they're forgotten.
@ttpears
ttpears self-requested a review August 4, 2026 01:39
@ttpears

ttpears commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Nice, we'll need to cleanup the .env/dotenv setup so it's more intuitive.

@ToxicOrca
ToxicOrca merged commit ebbc377 into main Aug 4, 2026
3 checks passed
@ToxicOrca
ToxicOrca deleted the docs/add-contributing-guide branch August 4, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants