VibeHub

v0.3.1
io.github.aw3-technology/vibehub Checked 11 hours ago Published 8 days ago

Save AI coding sessions to VibeHub and attach the conversation to the git commit it produced.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

vibehub_start_session

Start a new VibeHub conversation session and remember it as the current session. Call this when a new chat begins.

ParameterTypeDescription
source *stringWhere the chat originated. Known values: "claude-code", "cursor", "windsurf", "claude-desktop", "aider", "codex", "sdk", "manual".
externalIdstringIdempotency key — replays return the same session.
kindstringDefault "commit": the session closes when attached to a commit. "live": stays open across many commits (long-running terminals, agent mirrors).
modelstringModel identifier, e.g. claude-opus-4.
projectIdstringOptional VibeHub project id to scope this session.
summarystringShort human description of the chat.

vibehub_append_message

Append a single message to the current (or specified) session. Call this after every user or assistant turn.

ParameterTypeDescription
content *string
role *string
sessionIdstringDefaults to the current session id.
timestampstringISO timestamp; defaults to now.
toolNamestring

vibehub_append_messages

Append a batch of messages to the current (or specified) session. Use for backfilling history.

ParameterTypeDescription
messages *array
sessionIdstring

vibehub_attach_to_commit

Attach the current (or specified) session to a git commit by SHA. Call this right after the user commits. A normal session is closed by this; a live session stays open and keeps accepting messages for later commits.

ParameterTypeDescription
sha *string
authorEmailstring
authorNamestring
branchstring
committedAtstring
deletionsnumber
diffstring
diffStatstringOutput of `git show --stat`.
filesChangednumber
insertionsnumber
messagestringCommit message — required if the commit isn't already registered in VibeHub.
parentShastring
projectIdstringRequired if session has no project.
sessionIdstring

vibehub_current_session

Return the id of the currently active session (the last one started by this server).

vibehub_list_sessions

List the user's recent conversation sessions (newest first). Filter by status (open, attached, orphaned) or project.

ParameterTypeDescription
limitnumberDefault 50, max 200.
projectIdstring
statusstring

vibehub_whoami

Check the connection: confirms the API token works and returns the signed-in user plus when the token expires. Call this first if other tools fail with 401.

vibehub_list_projects

List the authenticated user's VibeHub projects (repos).

vibehub_create_project

Create (or reuse) a VibeHub project by name.

ParameterTypeDescription
name *string
descriptionstring
visibilitystring

vibehub_capture_commit

One-shot commit + conversation capture. Use when you have the commit metadata + transcript already in hand and don't want to maintain a live session. Mirrors `vb commit`.

ParameterTypeDescription
committedAt *stringISO timestamp.
message *string
projectId *string
sha *string
authorEmailstring
authorNamestring
branchstring
conversationobject
deletionsnumber
diffstring
diffStatstring
filesChangednumber
insertionsnumber
parentShastring
replacebooleanRefresh the commit row + re-link the conversation. Use after git amend/rebase.

vibehub_list_commits

List recent commits for a project (newest first). Each entry includes filesChanged/insertions/deletions and the number of conversation messages linked to it.

ParameterTypeDescription
projectId *string
limitnumberDefault 20, max 100.

vibehub_get_commit

Fetch a single commit and its linked conversation. Accepts short sha prefixes (≥4 hex chars).

ParameterTypeDescription
projectId *string
sha *string

vibehub_get_commit_diff

Diff for a commit. Omit `path` to receive the list of files changed; pass `path` to receive the per-file unified diff. Reads from the server-stored diff — no local git objects required.

ParameterTypeDescription
projectId *string
sha *string
pathstring

vibehub_blame

Approximate blame for a file. Replays every stored diff that touched the path and attributes each surviving line to the commit that last inserted (or touched) it. Filter by branch with `branch`.

ParameterTypeDescription
path *string
projectId *string
branchstring

vibehub_list_branches

List the branches VibeHub knows about for a project, with their head shas.

ParameterTypeDescription
projectId *string

vibehub_upsert_branch

Create or update a tracked branch row. Pass `headSha` to advance the head, or `isDefault: true` to swap the project's default branch.

ParameterTypeDescription
name *string
projectId *string
headShastring
isDefaultboolean

vibehub_get_mirror

Read the git mirror config for a project. Returns the provider (github, gitlab or bitbucket), owner/repo, default branch, last push/receive timestamps, and the most recent push error (if any).

ParameterTypeDescription
projectId *string

vibehub_set_mirror

Configure (or update) the git mirror on GitHub, GitLab or Bitbucket. Token is stored AES-256-GCM encrypted server-side. Omit token to keep the existing one (switching provider or host drops it).

ParameterTypeDescription
owner *stringGitHub owner, GitLab namespace (group/subgroup), or Bitbucket workspace.
projectId *string
repo *string
defaultBranchstring
hoststringSelf-managed GitLab host, e.g. gitlab.example.com.
providerstring
tokenstringAccess token with repo write access (GitHub PAT, GitLab write_repository, Bitbucket repository:write).
usernamestringgit-over-HTTPS username, only for Bitbucket app passwords or similar.

vibehub_rotate_mirror_webhook

Generate (or rotate) the inbound webhook secret for a project's mirror. Returns the plaintext secret exactly once — register it in the provider's webhook settings (settingsUrl) with the payload URL. Pass register: true to have VibeHub create the webhook through the provider's API (needs a token with webhook scope).

ParameterTypeDescription
projectId *string
registerboolean

vibehub_verify_mirror

Check that the stored mirror token can reach the repo on its provider (GitHub, GitLab or Bitbucket) and, where the provider reports it, push to it.

ParameterTypeDescription
projectId *string