Skip to content

feat: quick button to make mcp server public#2042

Open
aditya-mitra wants to merge 1 commit intospeakeasy-api:mainfrom
aditya-mitra:quick-public
Open

feat: quick button to make mcp server public#2042
aditya-mitra wants to merge 1 commit intospeakeasy-api:mainfrom
aditya-mitra:quick-public

Conversation

@aditya-mitra
Copy link
Copy Markdown
Contributor

Adds a quick button beside the warning to make the server public

image

@aditya-mitra aditya-mitra requested a review from a team as a code owner March 31, 2026 15:10
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 31, 2026

⚠️ No Changeset found

Latest commit: b992a4f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

@aditya-mitra is attempting to deploy a commit to the Speakeasy Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Open in Devin Review

Comment on lines +410 to +424
const handleMakePublic = () =>
updateToolsetMutation.mutate(
{
request: {
slug: toolset.slug,
updateToolsetRequestBody: { mcpIsPublic: true },
},
},
{
onSuccess: () => {
invalidateAllToolset(queryClient);
toast.success("Server is now public.");
},
},
);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚩 Missing specific error handling for plan-limited public server quota

The new handleMakePublic in MCPOverviewTab (line 410-424) relies solely on the global mutation onError handler (client/dashboard/src/contexts/Sdk.tsx:42-44) which shows a generic "Request failed" toast. In contrast, MCPSettingsTab (lines 1048-1056) specifically checks for "maximum number of public MCP servers for your account type" and opens a FeatureRequestModal prompting an upgrade. Users hitting the plan limit via the new Overview tab button will see a less informative generic error instead of the upgrade flow. This isn't a correctness bug (the error is still surfaced), but it's a UX gap that may confuse users on the base plan.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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.

1 participant