Repository navigation
app/: the rest of the public MCP server (sc-8900) - #91
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
laravel-org-tools
branch
from
December 2, 2026 22:27
514050a to
fa0f952
Compare
ndbroadbent
marked this pull request as ready for review
December 2, 2026 22:27
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…ric stats and blocked on each line; whoami's via.source in the words reviews record (personal_token, project_token, oauth, web); new MCP tests for invite_member (who may invite, the daily limit), download_build, list_organizations and create_organization's taken slug
…ngsChange, change_settings (a gallery turned off is purged first), create, valid_slug and repository_seen_in_ci, for the MCP tools and subdomains' web UI alike
… list_organizations, get_organization, create_project, get_project, update_project and download_build; list_builds as one short line per build (sc-8891, part 1); create_project_token, delete_project_token, invite_member and create_organization registered, waiting for #70; the comment anchor's schema text as today's; golden files can be rewritten on purpose (VISUALCI_GOLDEN_UPDATE)
…igration, the model, domain::projects' Settings and SettingsChange, get_project and update_project; its test and golden
…lete_project_token on #70's functions (create_org, invite_to, make_project_token, remove_project_token), with today's role checks and messages; the personal-token test's settings goldens gain comment_when_unchanged
…ric stats and blocked on each line; whoami's via.source in the words reviews record (personal_token, project_token, oauth, web); new MCP tests for invite_member (who may invite, the daily limit), download_build, list_organizations and create_organization's taken slug
ndbroadbent
force-pushed
the
laravel-org-tools
branch
from
December 2, 2026 22:52
e1f8a18 to
d57dd61
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The rest of the public MCP server on the Laravel Rust app (sc-8900), ported from
server/src/mcp.rswith today's descriptions, schemas and answers (tests/golden/mcp).Done
whoami, for a person or a project token:
auth::setup::state, blocked notice, waiting builds, open comment threads, the demo pointer fromdomain::demo);viafield:{source, token_name}for a token,{source, client_name}for an MCP client, withsourcein the words reviews record (personal_token,project_token,oauth,web).list_organizations, get_organization:
auth::invitations::members_json, pending invitations for admins frompending, and usage fromdomain::credits::usage;create_project, get_project, update_project:
domain::projects(Settings,SettingsChange,change_settings,create,valid_slug,repository_seen_in_ci), so subdomains' web UI can call the same functions;gallery::purge_projectfirst;create_organization, invite_member, create_project_token, delete_project_token, on app/: creating an organization (sc-8900) #70's functions (
auth::orgs::create_org,invitations::invite_to,tokens::make_project_token,tokens::remove_project_token):download_build, on
domain::downloads.comment_when_unchanged (c2da705, No pull request comment when nothing changed (comment_when_unchanged, off by default) #90): a migration adding
projects.comment_when_unchanged(default false), the model field,SettingsandSettingsChangewith today's doc comments, carried by get_project and update_project. Its testcomments_when_nothing_changed_are_off_until_turned_onis ported. For subdomains: the pull-request comment worker that reads it (server/src/workers/pr_comment.rsin c2da705: no comment when every suite's newest build is unchanged, unless it's on) is forge code, not ported here.list_builds returns one short line per build (sc-8891, part 1). Each line has:
default), branch, the whole commit (agents compare it with their HEAD), pr_number, mode (unlessci);changesin words ("2 changed, 1 added"; "unchanged" for a completed build with no changes; "not compared" for one still receiving or failed), andstatsas numbers (changed, added, removed, unchanged, failed);blocked(null unless it's out of credits), url and created_at.environment_info, reviews, groups, ci_mode, passed and warnings are left to get_build, and the description says so.Left (for subdomains)
repository_url,forge_token,move_linkin update_project) is refused until subdomains portsforge::link::link_repository. It refuses with today's messages: " isn't set up on this server" for a GitHub or GitLab URL, and "isn't a repository URL VisualCI knows…" for any other (theexample.comgolden). The spot is markedTODO(subdomains).Golden files changed on purpose
whoami.jsonina_personal_token_manages_organizations_projects_and_tokens,agents_comment_on_snapshots_and_resolve_threads, andwhoami.jsonandwhoami-2.jsonina_free_organization_over_its_allowance_gets_a_failed_build_that_says_why: the newviafield.tools-list-user-token.jsonandtools-list-project-token.json(lists_the_tools_each_kind_of_token_can_use):download_buildis new here (the goldens were recorded before it), and the whoami and list_builds descriptions changed.list_builds_answers_one_short_line_per_build/(the compact list_builds);comments_when_nothing_changed_are_off_until_turned_on/;invite_member_checks_who_may_invite_and_its_limits/(a project token and a member refused; the per-recipient daily limit);download_build_builds_an_archive_and_says_its_state/;list_organizations_lists_a_persons_organizations/;create_organization_refuses_a_taken_slug/.comment_when_unchangedadded to project settings (today's goldens predate c2da705; nothing else in these files changed):update_project.json,-2and-3ina_builds_visualci_yml_overrides_the_project_settings;update_project.jsonina_project_can_keep_approving_with_people;get_project-2.jsonandupdate_project.jsoninprojects_can_be_renamed;create_project.json,get_project.json,update_project.json,update_project-4.jsonandupdate_project-8.json(the argument help) ina_personal_token_manages_organizations_projects_and_tokens.Every other golden file is unchanged.
tests/golden/mod.rsgainsVISUALCI_GOLDEN_UPDATE=1, which writes the normalized answer instead of comparing, for deliberate changes reviewed in the diff.Port bugs found and fixed (not by changing goldens)
domain/comments.rs) had lost two sentences in app/: the public MCP server's build, review and comment tools (sc-8900) #75, so post_comment's schema text differed from today's. No test compared the tools list until this PR.created_atas Postgres text (+00), not RFC 3339 (+00:00) as today.Test infrastructure
<name>_1…_N) and rolls rows back, but Postgres sequences don't roll back. Any id in an answer drifts between runs: a token id came out 7 where today's is 1. The MCP fixture restarts the token sequences (and steps past 2, as today's fixture had a second project's token). Other tests with numeric ids in their answers need the same.VISUALCI_APP_TEST_DATABASE_URLmake the template rebuild, and with 8 test threads Postgres ran "out of shared memory" dropping tables. Use a database name per worktree, and fewer threads for the first run after a migration change.Tests: the full app suite passes with
--lockedon docspring-dev; clippy and fmt are clean.