Skip to content

Conversation

@TS0713
Copy link
Collaborator

@TS0713 TS0713 commented Nov 17, 2025

PR handles below items:

  • removed redundant lines and updated read_resource (resource_services.py)
  • Updated read_resource to use either resource_id or resource_uri
  • renamed the template field to uri_template
  • Created alembic script: change of field name for resource table field > 'template' to 'uri_template'
  • Includes Resource of type URI template from mcp server when added to mcp gateway (via mcpgateway UI from register resource)
  • Fixed test cases related to resource uri template and other test cases

@TS0713 TS0713 force-pushed the resource_template_uri_fix branch 3 times, most recently from 1de20a2 to 74ab7b7 Compare November 22, 2025 11:45
@TS0713 TS0713 marked this pull request as ready for review November 24, 2025 14:36
Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
… for resource table

Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
…scenarious

modified few tests related to read_resource

updated viewResource inside admin.js resourceURI to resourceID (just a name change)

Signed-off-by: Satya <tsp.0713@gmail.com>
Signed-off-by: Satya <tsp.0713@gmail.com>
@TS0713 TS0713 force-pushed the resource_template_uri_fix branch from 0f8c4f1 to ac73126 Compare November 25, 2025 11:27
crivetimihai added a commit that referenced this pull request Nov 25, 2025
- Rename 'template' column to 'uri_template' in Resource model for clarity
- Add Alembic migration (191a2def08d7) to rename the column
- Update schemas (ResourceCreate, ResourceUpdate, ResourceRead) to use uri_template
- Add uri_template field to ResourceRead for API responses
- Fetch and store resource templates when registering MCP gateways
- Update URI validation pattern to allow curly braces {} for templates
- Fix read_resource to accept either resource_id or resource_uri
- Update ResourceTemplate model to use proper JSON alias (uriTemplate)
- Update all related tests to use new field name

Closes #1455

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
crivetimihai added a commit that referenced this pull request Nov 25, 2025
- Rename resource table field 'template' to 'uri_template' for clarity
- Add Alembic migration script for column rename
- Update resource_service.py read_resource to use either resource_id or resource_uri
- Fix resource template URI handling in gateway_service.py
- Include Resource of type URI template from MCP server when registering
- Update VALIDATION_SAFE_URI_PATTERN to allow {} characters for templates
- Fix related test cases for resource URI templates

Closes #1455

Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
@crivetimihai crivetimihai merged commit 77d2ef0 into IBM:main Nov 25, 2025
44 checks passed
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.

2 participants