Commit 310ffa8
Add support for custom MCP server URLs (#96)
* Initial plan
* Add support for custom MCP server URLs
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Add comprehensive tests for custom MCP server URL support
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Remove unnecessary hasattr check in exception handler
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Simplify custom URL checks by removing redundant strip calls
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Improve exception handling and clarify test comments
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Refactor to consistently store URLs in the url field
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Use 'url' field consistently in both manifest and gateway responses
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Refactor gateway parsing to match manifest logic and improve variable naming
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Fix formatting: remove extra blank line in test
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Rename custom_url to endpoint for better clarity
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Remove fallback logic and use config.url directly in all tool registration services
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Remove redundant null check for server_url in Agent Framework service
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Use 'or' operator for cleaner fallback logic in server_name assignment
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Add clarifying comment for server_name fallback logic
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Fix undefined variable reference in log statement
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Move server_name assignment outside try block to ensure it's always available in exception handler
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Clarify comment for server_name fallback logic
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Add server_name fallback logic in OpenAI MCP tool registration service
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Improve variable naming consistency and add server_name fallback in Semantic Kernel service
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Fix inconsistent server_name usage in Semantic Kernel service
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Add server_name fallback logic in configuration service URL construction
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Run ruff formatter to fix formatting issues
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
* Update tests/tooling/test_mcp_server_configuration.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update tests/tooling/test_mcp_server_configuration.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update tests/tooling/test_mcp_server_configuration.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pontemonti <7850950+pontemonti@users.noreply.github.com>
Co-authored-by: Johan Broberg <johan@pontemonti.net>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 25f7c6d commit 310ffa8
File tree
8 files changed
+322
-28
lines changed- libraries
- microsoft-agents-a365-tooling-extensions-agentframework/microsoft_agents_a365/tooling/extensions/agentframework/services
- microsoft-agents-a365-tooling-extensions-azureaifoundry/microsoft_agents_a365/tooling/extensions/azureaifoundry/services
- microsoft-agents-a365-tooling-extensions-openai/microsoft_agents_a365/tooling/extensions/openai
- microsoft-agents-a365-tooling-extensions-semantickernel/microsoft_agents_a365/tooling/extensions/semantickernel/services
- microsoft-agents-a365-tooling/microsoft_agents_a365/tooling
- models
- services
- tests/tooling
8 files changed
+322
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 100 | + | |
| 101 | + | |
107 | 102 | | |
| 103 | + | |
108 | 104 | | |
109 | 105 | | |
110 | 106 | | |
| |||
116 | 112 | | |
117 | 113 | | |
118 | 114 | | |
119 | | - | |
120 | | - | |
121 | 115 | | |
122 | 116 | | |
123 | 117 | | |
124 | | - | |
| 118 | + | |
125 | 119 | | |
126 | 120 | | |
127 | 121 | | |
128 | 122 | | |
129 | 123 | | |
130 | | - | |
| 124 | + | |
131 | 125 | | |
132 | 126 | | |
133 | 127 | | |
134 | 128 | | |
135 | 129 | | |
136 | 130 | | |
137 | 131 | | |
138 | | - | |
139 | 132 | | |
140 | 133 | | |
141 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
182 | 185 | | |
183 | | - | |
| 186 | + | |
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | | - | |
107 | | - | |
| 110 | + | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
129 | 135 | | |
130 | | - | |
131 | | - | |
| 136 | + | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
138 | 144 | | |
139 | | - | |
| 145 | + | |
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
Lines changed: 48 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | | - | |
| 415 | + | |
| 416 | + | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | | - | |
| 421 | + | |
| 422 | + | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
425 | 435 | | |
426 | 436 | | |
427 | 437 | | |
| |||
439 | 449 | | |
440 | 450 | | |
441 | 451 | | |
442 | | - | |
443 | | - | |
| 452 | + | |
| 453 | + | |
444 | 454 | | |
445 | | - | |
| 455 | + | |
446 | 456 | | |
447 | 457 | | |
448 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
449 | 472 | | |
450 | 473 | | |
451 | 474 | | |
| |||
500 | 523 | | |
501 | 524 | | |
502 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
503 | 541 | | |
504 | 542 | | |
505 | 543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
0 commit comments