Commit 99e718c
committed
feat: add MCP handshake test mode to Test Connection
UI half of the MCP handshake test, split out of
IBM/mcp-context-forge#5934 now that the client lives in this repo.
Test Connection gains a mode toggle. HTTP request keeps the existing
raw-request behavior; MCP handshake calls the new
POST /v1/mcp-servers/test-handshake and reports whether the target
actually speaks MCP:
- Detail rows for server name/version, protocol version, negotiation
path (server/discover or initialize) and credential source
- Count badges for first-page tools/resources/prompts, rendered as
"3+ tools" when countsPartial marks the listing truncated
- A failure-class badge (transport / protocol negotiation /
authentication / invalid response) with the backend's actionable copy
- A collapsible raw-response preview
- Method, content type and body inputs are hidden in handshake mode;
the in-flight request is aborted on unmount, cancel, and mode switch
New user-facing copy goes through react-intl, with keys added to the
en-US, es-ES and pt-BR mcpServer namespaces. The en-US messages are
byte-identical to the strings they replace. Component counts use ICU
plural forms.
openapi.json gains only the new /v1/mcp-servers/test-handshake path
plus the GatewayHandshakeRequest/GatewayHandshakeResponse schemas,
extracted from the gateway's app.openapi(). The snapshot stays pinned
at API v1.0.7 otherwise, so the generated types pick up the handshake
endpoint without dragging in unrelated spec drift.
Relates to IBM/mcp-context-forge#5649
Signed-off-by: Ahmad Al Tamimi <altamimi.dev@gmail.com>1 parent 2bdbc30 commit 99e718c
7 files changed
Lines changed: 845 additions & 71 deletions
File tree
- src
- api
- components/servers
- i18n/locales
- en-US
- es-ES
- pt-BR
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36803 | 36803 | | |
36804 | 36804 | | |
36805 | 36805 | | |
| 36806 | + | |
| 36807 | + | |
| 36808 | + | |
| 36809 | + | |
| 36810 | + | |
| 36811 | + | |
| 36812 | + | |
| 36813 | + | |
| 36814 | + | |
| 36815 | + | |
| 36816 | + | |
| 36817 | + | |
| 36818 | + | |
| 36819 | + | |
| 36820 | + | |
| 36821 | + | |
| 36822 | + | |
| 36823 | + | |
| 36824 | + | |
| 36825 | + | |
| 36826 | + | |
| 36827 | + | |
| 36828 | + | |
| 36829 | + | |
| 36830 | + | |
| 36831 | + | |
| 36832 | + | |
| 36833 | + | |
| 36834 | + | |
| 36835 | + | |
| 36836 | + | |
| 36837 | + | |
| 36838 | + | |
| 36839 | + | |
| 36840 | + | |
| 36841 | + | |
| 36842 | + | |
| 36843 | + | |
| 36844 | + | |
| 36845 | + | |
| 36846 | + | |
| 36847 | + | |
| 36848 | + | |
| 36849 | + | |
| 36850 | + | |
| 36851 | + | |
| 36852 | + | |
| 36853 | + | |
| 36854 | + | |
| 36855 | + | |
| 36856 | + | |
| 36857 | + | |
| 36858 | + | |
| 36859 | + | |
| 36860 | + | |
| 36861 | + | |
| 36862 | + | |
| 36863 | + | |
| 36864 | + | |
| 36865 | + | |
| 36866 | + | |
| 36867 | + | |
| 36868 | + | |
| 36869 | + | |
| 36870 | + | |
| 36871 | + | |
| 36872 | + | |
| 36873 | + | |
| 36874 | + | |
| 36875 | + | |
| 36876 | + | |
| 36877 | + | |
| 36878 | + | |
| 36879 | + | |
| 36880 | + | |
| 36881 | + | |
| 36882 | + | |
| 36883 | + | |
| 36884 | + | |
| 36885 | + | |
| 36886 | + | |
| 36887 | + | |
| 36888 | + | |
36806 | 36889 | | |
36807 | 36890 | | |
36808 | 36891 | | |
| |||
52526 | 52609 | | |
52527 | 52610 | | |
52528 | 52611 | | |
| 52612 | + | |
| 52613 | + | |
| 52614 | + | |
| 52615 | + | |
| 52616 | + | |
| 52617 | + | |
| 52618 | + | |
| 52619 | + | |
| 52620 | + | |
| 52621 | + | |
| 52622 | + | |
| 52623 | + | |
| 52624 | + | |
| 52625 | + | |
| 52626 | + | |
| 52627 | + | |
| 52628 | + | |
| 52629 | + | |
| 52630 | + | |
| 52631 | + | |
| 52632 | + | |
| 52633 | + | |
| 52634 | + | |
| 52635 | + | |
| 52636 | + | |
| 52637 | + | |
| 52638 | + | |
| 52639 | + | |
| 52640 | + | |
| 52641 | + | |
| 52642 | + | |
| 52643 | + | |
| 52644 | + | |
| 52645 | + | |
| 52646 | + | |
| 52647 | + | |
| 52648 | + | |
| 52649 | + | |
| 52650 | + | |
| 52651 | + | |
| 52652 | + | |
| 52653 | + | |
| 52654 | + | |
| 52655 | + | |
| 52656 | + | |
| 52657 | + | |
| 52658 | + | |
| 52659 | + | |
| 52660 | + | |
| 52661 | + | |
| 52662 | + | |
| 52663 | + | |
| 52664 | + | |
| 52665 | + | |
| 52666 | + | |
| 52667 | + | |
| 52668 | + | |
| 52669 | + | |
| 52670 | + | |
| 52671 | + | |
| 52672 | + | |
| 52673 | + | |
| 52674 | + | |
| 52675 | + | |
| 52676 | + | |
| 52677 | + | |
| 52678 | + | |
| 52679 | + | |
| 52680 | + | |
| 52681 | + | |
| 52682 | + | |
| 52683 | + | |
| 52684 | + | |
| 52685 | + | |
| 52686 | + | |
| 52687 | + | |
| 52688 | + | |
| 52689 | + | |
| 52690 | + | |
| 52691 | + | |
| 52692 | + | |
| 52693 | + | |
| 52694 | + | |
| 52695 | + | |
| 52696 | + | |
| 52697 | + | |
| 52698 | + | |
| 52699 | + | |
| 52700 | + | |
| 52701 | + | |
| 52702 | + | |
| 52703 | + | |
| 52704 | + | |
| 52705 | + | |
| 52706 | + | |
| 52707 | + | |
| 52708 | + | |
| 52709 | + | |
| 52710 | + | |
| 52711 | + | |
| 52712 | + | |
| 52713 | + | |
| 52714 | + | |
| 52715 | + | |
| 52716 | + | |
| 52717 | + | |
| 52718 | + | |
| 52719 | + | |
| 52720 | + | |
| 52721 | + | |
| 52722 | + | |
| 52723 | + | |
| 52724 | + | |
| 52725 | + | |
| 52726 | + | |
| 52727 | + | |
| 52728 | + | |
| 52729 | + | |
| 52730 | + | |
| 52731 | + | |
| 52732 | + | |
| 52733 | + | |
| 52734 | + | |
| 52735 | + | |
| 52736 | + | |
| 52737 | + | |
| 52738 | + | |
| 52739 | + | |
| 52740 | + | |
| 52741 | + | |
| 52742 | + | |
| 52743 | + | |
| 52744 | + | |
| 52745 | + | |
| 52746 | + | |
| 52747 | + | |
| 52748 | + | |
| 52749 | + | |
| 52750 | + | |
| 52751 | + | |
| 52752 | + | |
| 52753 | + | |
| 52754 | + | |
| 52755 | + | |
| 52756 | + | |
| 52757 | + | |
| 52758 | + | |
| 52759 | + | |
| 52760 | + | |
| 52761 | + | |
| 52762 | + | |
| 52763 | + | |
| 52764 | + | |
| 52765 | + | |
| 52766 | + | |
| 52767 | + | |
| 52768 | + | |
| 52769 | + | |
| 52770 | + | |
| 52771 | + | |
| 52772 | + | |
| 52773 | + | |
| 52774 | + | |
| 52775 | + | |
| 52776 | + | |
| 52777 | + | |
| 52778 | + | |
| 52779 | + | |
| 52780 | + | |
| 52781 | + | |
| 52782 | + | |
| 52783 | + | |
| 52784 | + | |
| 52785 | + | |
| 52786 | + | |
| 52787 | + | |
| 52788 | + | |
| 52789 | + | |
| 52790 | + | |
| 52791 | + | |
| 52792 | + | |
| 52793 | + | |
| 52794 | + | |
| 52795 | + | |
| 52796 | + | |
| 52797 | + | |
| 52798 | + | |
| 52799 | + | |
| 52800 | + | |
| 52801 | + | |
| 52802 | + | |
| 52803 | + | |
| 52804 | + | |
| 52805 | + | |
| 52806 | + | |
| 52807 | + | |
| 52808 | + | |
52529 | 52809 | | |
52530 | 52810 | | |
52531 | 52811 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
130 | 135 | | |
131 | 136 | | |
132 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
133 | 151 | | |
134 | 152 | | |
135 | 153 | | |
| |||
0 commit comments