🐞 Bug Summary
Description
Currently, the database enforces a unique constraint on name fields for servers, tools, resources, and prompts.
This means that if one user creates an item named example-server, no other user can use that name, even though these objects should logically be user-scoped.
This behavior blocks multiple users from independently creating items with the same name.
🧩 Affected Component
Select the area of the project impacted:
🔁 Steps to Reproduce
- Log in as User A
- Create a new server with the name test-server
- Log in as User B
- Attempt to create a server with the same name test-server
🤔 Expected Behavior
Each user should be able to create items (servers/tools/resources/prompts) with names that may already exist for other users.
The uniqueness should only be enforced per user, at team level, not globally.
The system throws a Unique Constraint Violation error, preventing creation.
Impact
Prevents multiple users from using common or descriptive names.
Reduces usability in multi-tenant scenarios.