Strategy Hub

v1.0.1
io.github.danbakke1/strategy-hub Checked 1 day ago Published 7 days ago

Versioned memory for agents: markdown docs with history, safe concurrent commits, human claim links.

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

list_workspaces

List workspaces you belong to, with your role in each.

ParameterTypeDescription
qstringWorkspace name substring (workspace picker search)

set_active_workspace

Switch your active workspace — the default scope for list/create/search when no workspace_id is passed.

ParameterTypeDescription
workspace_id *string

list_documents

List documents in a workspace (defaults to your active workspace). Uses the same ?q=, folder, type, access, sort, and view params as the documents browse UI.

ParameterTypeDescription
accessstring
folderstringFirst path segment; (root) for titles without /
group_bystringAlias for view: time→date, folder→folders
include_archivedbooleanDeprecated — use library. When true, lists archived documents only.
librarystringLibrary bucket; default active
list_kindstringAlias for library (includes active)
namestringExact document title
qstringDocument name substring (?q= in the UI)
sortstringname-asc | name-desc | updated-desc | updated-asc
typestring
viewstringdate (default) or folders grouping
workspace_idstring

create_document

Create a document in a workspace. Use content_type markdown for prose; html only for full-page strategy decks per docs/HTML-SUBSET.md. Optionally seed initial content as the first commit.

ParameterTypeDescription
name *stringDocument title (no file extension)
contentstringOptional initial body — committed immediately
content_typestring
if_existsstringWhen set to return, reuse an existing document with the same name in the workspace instead of creating a duplicate
workspace_idstring

read_document

Read a document at primary or a named version line. Returns document.baseHash on the active line and a windowed snippet.

ParameterTypeDescription
document_id *string
aroundstringCenter the snippet on the first line containing this text
line_endinteger
line_startinteger
max_linesinteger
versionstringNamed version line (e.g. draft/pricing); omit for primary

read_at_commit

Read a document body as of a specific commit hash.

ParameterTypeDescription
commit_hash *string
document_id *string
max_linesinteger

commit_document

Save to primary or a version line. Protected documents block saves to primary — use submit_proposal instead, or save to a version line for intermediate work. Provide base_hash from your last read.

ParameterTypeDescription
document_id *string
message *stringSave message — why this change
base_hashstringLine head you last saw (document.baseHash)
contentstringFull replacement body (fallback)
editTargeted edit intent — preferred over full-body content
versionstringNamed version line to save to (draft/*); omit for primary

submit_proposal

Submit a primary proposal on Protected documents (write_mode: reviewed). Requires write access. Pass proposal_id to amend an existing open proposal (like pushing commits to a PR branch). Omit proposal_id to open a new proposal. After submit: a workspace peer approves (or owner bypasses), then anyone with write access publishes.

ParameterTypeDescription
document_id *string
contentstringProposed full document body (fallback)
editTargeted edit intent — preferred over full-body content
messagestring
proposal_idstringAmend this pending/approved proposal instead of creating a new one

update_proposal

Amend a pending or approved proposal on a Protected document. Resets approval to pending. Like pushing additional commits to an open PR branch — use when iterating on the same proposal rather than opening a parallel one.

ParameterTypeDescription
proposal_id *string
contentstringFull proposed document body (fallback)
editPatch the current proposal body
messagestring

list_proposals

List proposals on a document (default: open — pending or approved). Like gh pr list for Protected documents.

ParameterTypeDescription
document_id *string
statusstringFilter by status; default open (actionable proposals)

read_proposal

Read a proposal's proposed body (bounded excerpt, like read_document). Use diff_proposal to see changes vs primary.

ParameterTypeDescription
proposal_id *string
aroundstring
document_idstringOptional guard — fails if proposal is on another document
line_endinteger
line_startinteger
max_linesinteger

diff_proposal

Diff a proposal against primary (what would change if published). Same preview shape as diff_commits.

ParameterTypeDescription
proposal_id *string
document_idstringOptional guard — fails if proposal is on another document

withdraw_proposal

Withdraw (close without publishing) an open proposal. Any reader may withdraw pending or approved proposals — like closing a PR without merge.

ParameterTypeDescription
proposal_id *string

list_versions

List version lines on a document: primary plus named versions (draft/*). Version lines support multi-step work without racing primary.

ParameterTypeDescription
document_id *string

publish_version

Publish a version line to primary on open documents. On protected documents, use submit_proposal with the version content instead — versions are a workbench for intermediate saves, not a direct path to primary.

ParameterTypeDescription
document_id *string
version *stringVersion line name to publish to primary

document_history

Paginated commit history for a document (newest first).

ParameterTypeDescription
document_id *string
limitinteger
offsetinteger

diff_commits

Compare two saves line-by-line (a diff). Same +/− preview as after saving.

ParameterTypeDescription
document_id *string
from_hash *string
to_hash *string

rename_document

Rename or move a document (needs edit access). Slashes are folders: "Research/Q3/plan" moves it into Research/Q3 (you need edit access there too). Moving changes who can see it — check list_access first. Title only — no file extension.

ParameterTypeDescription
document_id *string
name *string

archive_document

Archive a document (owner or admin). Hides it from the active list; full history is kept. Prefer this over delete for inactive work.

ParameterTypeDescription
document_id *string

unarchive_document

Restore an archived document to the active list (owner only).

ParameterTypeDescription
document_id *string

trash_document

Move a document to trash (owner only). Recoverable for 30 days before auto-purge. Prefer archive for inactive work you may revisit.

ParameterTypeDescription
document_id *string

restore_document

Restore a trashed document to the active list (owner only).

ParameterTypeDescription
document_id *string

purge_document

Permanently delete a trashed document and its history (owner only). Document must already be in trash.

ParameterTypeDescription
document_id *string

delete_document

Alias for trash_document — moves a document to trash (owner only). Use purge_document for permanent deletion.

ParameterTypeDescription
document_id *string

search_documents

Full-text search across a workspace's documents (title + body).

ParameterTypeDescription
query *string
limitinteger
workspace_idstring

add_document_comment

Add a comment on a document (Comments panel). Does not change document content.

ParameterTypeDescription
body *string
document_id *string

delete_document_comment

Delete a document comment (author or document owner).

ParameterTypeDescription
comment_id *string

resolve_document_comment

Mark a document comment resolved or reopen it (author or document owner).

ParameterTypeDescription
comment_id *string
resolved *boolean

read_workspace_context

Read workspace standing instructions plus applicable Standards: rules/ markdown docs whose body starts with YAML frontmatter kind: rule (see document templates). Path alone is not enough.

ParameterTypeDescription
workspace_idstring

step_up_probe

Diagnostic only: tests whether this client supports MCP scope step-up. Calling it should make your client ask you to re-authorize Strategy Hub with an extra scope. Safe; changes nothing.

list_folders

List folders you can see, with your role and whether you can share each one. Folders come from slashes in document titles; access granted on a folder covers everything inside it.

ParameterTypeDescription
workspace_idstring

list_access

Who can access a document or folder, and why (owner, direct grant, inherited folder grant, or workspace membership).

ParameterTypeDescription
document_idstringDocument to inspect or share
folderstringFolder path (e.g. Research/Q3) or folder id
workspace_idstringWorkspace for folder paths (default: active)

grant_access

Share a document or folder with a person by email (they must have a Strategy Hub account). Needs admin on that document/folder. Grants only add access; folder grants cover everything inside.

ParameterTypeDescription
email *string
role *string
document_idstringDocument to inspect or share
folderstringFolder path (e.g. Research/Q3) or folder id
workspace_idstringWorkspace for folder paths (default: active)

revoke_access

Remove a person's direct grant on a document or folder (see list_access for user ids). Access inherited from a parent folder or the workspace stays.

ParameterTypeDescription
user_id *string
document_idstringDocument to inspect or share
folderstringFolder path (e.g. Research/Q3) or folder id
workspace_idstringWorkspace for folder paths (default: active)

rename_folder

Rename a folder (needs edit access on everything inside). Document titles under it are updated; grants stay with the folder.

ParameterTypeDescription
folder *stringFolder path or id
name *stringNew folder name (no slashes)
workspace_idstring

move_folder

Move a folder under another folder (or to the workspace root). Moving changes who can see its contents: they stop inheriting grants from the old parent and start inheriting from the new one.

ParameterTypeDescription
folder *stringFolder path or id
new_parent *Destination folder path or id; null for the workspace root
workspace_idstring

create_access_key

Create a narrower access key to hand to a subagent or another tool. If you are using an access key, the new key is its child: it can never do more than your key (enforced by the database on every request) and revoking your key revokes it. If you are connected through OAuth (e.g. the Claude connector), the new key is independent: it is limited only by the scope you set, and it is NOT revoked with your connection — it expires on its own or via revoke_access_key. A subagent only stays inside the key if it is given this key INSTEAD of your connection (see docs/MCP.md). Capabilities: read < comme…

ParameterTypeDescription
capabilities *array
label *stringWho/what the key is for, e.g. 'research subagent'
deny_documentsarrayExclude these documents
deny_foldersarrayExclude these folders
documentsarrayAllow only these documents (titles or ids)
expires_in_minutesintegerDefault 1440 (one day)
foldersarrayAllow only these folders (paths or ids)
whole_workspacebooleanAllow the whole workspace
workspace_idstringWorkspace for paths (default: active)

list_access_keys

List the access key you are using and the keys created from it (scope and expiry; never the key itself).

revoke_access_key

Revoke an access key you created (and every key created from it). Takes effect on the next request.

ParameterTypeDescription
key_id *string