chatgpt-web-jjonku-writer
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WRITER_CONFIG | No | Optional path to writer.config.json (defaults to writer.config.json next to server.mjs). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Edits one git repo through pull requests. Workflow: branch_start -> repo_write -> git_diff -> run_check -> commit_push -> pr_create -> pr_merge. All writes happen on chatgpt/* branches; main is never written directly and only changes through pr_merge. Paths are repo-relative.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| repo_read | Return the full UTF-8 text of one file in the configured repo, as it is in the working tree of the current branch. Read-only; works on any branch. Use repo_search first when you do not know the path. Fails if the file does not exist. |
| repo_search | Search tracked files of the repo with |
| repo_write | Create or overwrite one file with the given full content (no patching or appending); parent directories are created. Refused unless the current branch starts with 'chatgpt/', so call branch_start first; the base branch is never written. Changes stay local and uncommitted until commit_push. Review them with git_diff. |
| branch_start | Start a task: fetch origin/main and check out 'chatgpt/' from it (git checkout -B, so an existing local branch of that name is reset). Must be called before repo_write, commit_push, pr_create or pr_merge, which only work on chatgpt/* branches. Needs network access to origin; returns git's output. |
| git_diff | Return |
| run_check | Run one check command preconfigured by the repo owner (tests, lint, build) in the repo root and return 'exit=' plus stdout/stderr. Arbitrary commands are refused. Use before commit_push to verify changes. Available: (none). |
| commit_push | Stage every change (git add -A), commit with the message, and push the current chatgpt/* branch to origin (never --force). Refused on any other branch. Call after git_diff and run_check; then pr_create. Returns commit and push exit codes and output. |
| pr_create | Open a GitHub pull request (via gh) from the current chatgpt/* branch into main; if one already exists, return its URL instead. Call after commit_push has pushed the branch. Refused on other branches. Does not merge; use pr_merge for that. |
| pr_merge | Enable auto squash-merge (gh pr merge --squash --auto --delete-branch) for the current chatgpt/* branch's PR: GitHub merges it into main once required checks pass, then deletes the remote branch. This is the only path to main. Call last, after pr_create. Refused on other branches. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |