Skip to content

fix: skip deprecated/deleted servers in URL uniqueness check (#1193)#1343

Open
friendlygeorge wants to merge 2 commits into
modelcontextprotocol:mainfrom
friendlygeorge:fix/deprecated-url-validation
Open

fix: skip deprecated/deleted servers in URL uniqueness check (#1193)#1343
friendlygeorge wants to merge 2 commits into
modelcontextprotocol:mainfrom
friendlygeorge:fix/deprecated-url-validation

Conversation

@friendlygeorge

Copy link
Copy Markdown

Summary

was blocking URL reuse when the existing server was deprecated or deleted. This fix adds a filter to and updates the validation logic to only check active servers.

Changes

  • Add field to struct
  • Update postgres query builder to handle filter
  • Filter by active status in
  • Add test case for deprecated server URL reuse

Issue

Fixes #1193 — deprecated servers should not block URL reuse by new active servers.

Testing

Added test case that creates a deprecated server, then verifies a new server can reuse its URL.

Nova added 2 commits June 8, 2026 09:43
…ntextprotocol#1193)

validateNoDuplicateRemoteURLs was blocking URL reuse when the existing
server was deprecated or deleted. Added a Status filter to ServerFilter
to allow callers to specify which statuses to match, and updated the
validation logic to only check active servers.

Changes:
- Add Status field to ServerFilter struct
- Update postgres query builder to handle Status filter
- Filter by active status in validateNoDuplicateRemoteURLs
- Add test case for deprecated server URL reuse
… UpdateAllVersionsStatus with StatusChangeRequest)
@friendlygeorge

Copy link
Copy Markdown
Author

CI is now passing after updating the test to use the renamed function with the new signature. Both Build/Lint and Tests pass. Ready for review.

@friendlygeorge

Copy link
Copy Markdown
Author

Hi — just checking in on this. Happy to iterate on the approach, split the PR, or adjust the implementation based on any feedback. Let me know if there's anything I can clarify or improve.

@alialobidm alialobidm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

``

@alialobidm

Copy link
Copy Markdown

@friendlygeorge

Copy link
Copy Markdown
Author

Hi, just checking in on this. Happy to iterate on the approach or split the PR if it'd be easier to review. Let me know if there's anything I can clarify.

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.

Exclude deleted and deprecated servers while validating remote urls.

2 participants