@kadoa/mcp 0.3.3-rc.0 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +194 -139
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -54149,188 +54149,206 @@ function renderLoginPage(state, error48) {
54149
54149
  * { margin: 0; padding: 0; box-sizing: border-box; }
54150
54150
 
54151
54151
  body {
54152
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
54153
- background: oklch(1 0 0);
54154
- color: oklch(0.17 0.02 228);
54155
- min-height: 100vh;
54152
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
54153
+ background: hsl(0 0% 98%);
54154
+ color: #18181b;
54155
+ min-height: 100dvh;
54156
54156
  display: flex;
54157
54157
  align-items: center;
54158
54158
  justify-content: center;
54159
+ background-image: radial-gradient(circle, #d4d4d8 1px, transparent 1px);
54160
+ background-size: 24px 24px;
54161
+ background-position: center top;
54159
54162
  }
54160
54163
 
54161
- .container {
54164
+ .card {
54162
54165
  width: 100%;
54163
- max-width: 420px;
54164
- padding: 2rem;
54166
+ max-width: 460px;
54167
+ background: #fff;
54168
+ padding: 1rem;
54169
+ display: flex;
54170
+ flex-direction: column;
54171
+ gap: 1rem;
54172
+ min-height: 100dvh;
54165
54173
  }
54166
54174
 
54167
- .logo {
54168
- text-align: center;
54169
- margin-bottom: 2rem;
54175
+ @media (min-width: 768px) {
54176
+ .card { padding: 3rem; min-height: auto; border-left: 1px solid #e0e1e5; border-right: 1px solid #e0e1e5; }
54170
54177
  }
54171
54178
 
54179
+ .logo { display: grid; place-content: center; }
54180
+
54172
54181
  h1 {
54173
- font-size: 1.25rem;
54182
+ font-size: 20px;
54174
54183
  font-weight: 600;
54175
54184
  text-align: center;
54176
- margin-bottom: 0.5rem;
54177
- color: oklch(0.17 0.02 228);
54185
+ color: #18181b;
54178
54186
  }
54179
54187
 
54180
- .subtitle {
54181
- text-align: center;
54182
- color: oklch(0.56 0.02 228);
54183
- font-size: 0.875rem;
54184
- margin-bottom: 1.5rem;
54185
- }
54188
+ .spacer { height: 0; }
54189
+ @media (min-width: 768px) { .spacer { height: 3rem; } }
54186
54190
 
54187
54191
  .error {
54188
- background: oklch(0.95 0.05 25);
54189
- color: oklch(0.4 0.15 25);
54190
- border: 1px solid oklch(0.8 0.1 25);
54191
- border-radius: 0.3rem;
54192
- padding: 0.75rem 1rem;
54193
- font-size: 0.875rem;
54194
- margin-bottom: 1rem;
54192
+ background: #fef2f2;
54193
+ color: #991b1b;
54194
+ border: 1px solid #fecaca;
54195
+ border-radius: 4px;
54196
+ padding: 0.6rem 0.875rem;
54197
+ font-size: 15px;
54195
54198
  }
54196
54199
 
54197
- .divider {
54200
+ /* Buttons — matching KUI default + primary looks */
54201
+ .btn {
54202
+ width: 100%;
54203
+ padding: 0.6em 1em;
54204
+ border-radius: 4px;
54205
+ font-size: 16px;
54206
+ font-weight: 500;
54207
+ cursor: pointer;
54198
54208
  display: flex;
54199
54209
  align-items: center;
54200
- margin: 1.25rem 0;
54201
- color: oklch(0.56 0.02 228);
54202
- font-size: 0.8rem;
54210
+ justify-content: center;
54211
+ gap: 0.5rem;
54212
+ transition: background 0.15s, border-color 0.15s;
54213
+ text-decoration: none;
54203
54214
  }
54204
54215
 
54205
- .divider::before, .divider::after {
54206
- content: "";
54207
- flex: 1;
54208
- border-top: 1px solid oklch(0.5 0.02 228 / 0.3);
54216
+ .btn-default {
54217
+ background: #fff;
54218
+ color: #18181b;
54219
+ border: 1px solid #d4d4d8;
54220
+ box-shadow: inset 0 -3px 0 0 rgba(0,0,0,0.03), 0 1px 0px 1px rgba(255,255,255,0.5), 0 -1px 0px 1px rgba(0,0,0,0.02);
54221
+ }
54222
+
54223
+ .btn-default:hover {
54224
+ background: rgba(113,113,122,0.1);
54225
+ }
54226
+
54227
+ .btn-primary {
54228
+ background: hsl(212 70% 27%);
54229
+ color: #fff;
54230
+ border: 1px solid hsl(214 70% 23%);
54231
+ box-shadow: inset 0 2px 0 0 rgba(56,189,248,0.2), 0 -1px 0px 1px rgba(0,0,0,0.02);
54209
54232
  }
54210
54233
 
54211
- .divider span { padding: 0 0.75rem; }
54234
+ .btn-primary:hover {
54235
+ background: hsl(212 70% 33%);
54236
+ }
54237
+
54238
+ /* OR divider */
54239
+ .line-or {
54240
+ display: flex;
54241
+ align-items: center;
54242
+ gap: 0.5rem;
54243
+ font-weight: 500;
54244
+ color: rgba(24,24,27,0.6);
54245
+ font-size: 14px;
54246
+ margin: 0.5rem 0;
54247
+ }
54212
54248
 
54249
+ .line-or hr {
54250
+ flex: 1;
54251
+ border: none;
54252
+ border-top: 1px solid rgba(113,113,122,0.15);
54253
+ }
54254
+
54255
+ /* Form inputs — matching KUI input style */
54213
54256
  label {
54214
54257
  display: block;
54215
- font-size: 0.875rem;
54258
+ font-size: 16px;
54216
54259
  font-weight: 500;
54217
- margin-bottom: 0.35rem;
54218
- color: oklch(0.3 0.02 228);
54260
+ margin-bottom: 0.25rem;
54261
+ color: #18181b;
54219
54262
  }
54220
54263
 
54221
54264
  input[type="email"], input[type="password"] {
54222
54265
  width: 100%;
54223
- padding: 0.65rem 0.75rem;
54224
- border: 1px solid oklch(0.5 0.02 228 / 0.4);
54225
- border-radius: 0.3rem;
54226
- font-size: 15px;
54227
- margin-bottom: 0.75rem;
54228
- color: oklch(0.17 0.02 228);
54229
- background: oklch(1 0 0);
54266
+ padding: 0.35em 0.5em;
54267
+ border: 1px solid #d4d4d8;
54268
+ border-radius: 4px;
54269
+ font-size: 18px;
54270
+ font-family: inherit;
54271
+ color: #18181b;
54272
+ background: #fff;
54230
54273
  outline: none;
54274
+ box-shadow: inset 0 3px 0 0 rgba(0,0,0,0.025);
54231
54275
  transition: border-color 0.15s;
54276
+ caret-color: hsl(25 98% 53%);
54232
54277
  }
54233
54278
 
54234
- input[type="email"]:focus, input[type="password"]:focus {
54235
- border-color: oklch(0.7 0.18 42);
54279
+ input[type="email"]:hover, input[type="password"]:hover {
54280
+ border-color: hsl(31 99% 72%);
54236
54281
  }
54237
54282
 
54238
- .btn {
54239
- width: 100%;
54240
- padding: 0.7rem 1rem;
54241
- border: 1px solid oklch(0.5 0.02 228 / 0.4);
54242
- border-radius: 0.3rem;
54243
- font-size: 15px;
54244
- font-weight: 500;
54245
- cursor: pointer;
54246
- transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
54247
- box-shadow: 0px 1px 1px 0px oklch(0.68 0.01 60.13 / 0.11);
54248
- display: flex;
54249
- align-items: center;
54250
- justify-content: center;
54251
- gap: 0.5rem;
54252
- }
54253
-
54254
- .btn-primary {
54255
- background: oklch(0.17 0.02 228);
54256
- color: oklch(1 0 0);
54257
- border-color: oklch(0.17 0.02 228);
54283
+ input[type="email"]:focus, input[type="password"]:focus {
54284
+ border-color: hsl(25 98% 53%);
54285
+ box-shadow: inset 0 3px 0 0 rgba(0,0,0,0.025), 0 0 0 2px rgba(249,115,22,0.2);
54258
54286
  }
54259
54287
 
54260
- .btn-primary:hover { background: oklch(0.25 0.02 228); }
54288
+ .field { margin-bottom: 0.75rem; }
54261
54289
 
54262
- .btn-outline {
54263
- background: oklch(1 0 0);
54264
- color: oklch(0.17 0.02 228);
54290
+ hr.separator {
54291
+ border: none;
54292
+ border-top: 1px solid rgba(113,113,122,0.15);
54293
+ margin: 0.5rem 0;
54265
54294
  }
54266
54295
 
54267
- .btn-outline:hover {
54268
- background: oklch(0.96 0 286);
54269
- border-color: oklch(0.7 0.18 42);
54270
- }
54296
+ .google-icon { width: 18px; height: 18px; }
54297
+ .key-icon { width: 16px; height: 16px; }
54271
54298
 
54299
+ /* Tabs for email/SSO — keep simple, same visual weight */
54272
54300
  .tabs {
54273
- display: flex;
54274
- margin-bottom: 1.25rem;
54275
- border-bottom: 1px solid oklch(0.5 0.02 228 / 0.3);
54301
+ display: none;
54276
54302
  }
54277
54303
 
54278
- .tab {
54279
- flex: 1;
54280
- padding: 0.6rem;
54304
+ .tab-content { display: none; }
54305
+ .tab-content.active { display: block; }
54306
+
54307
+ .tab-switch {
54281
54308
  text-align: center;
54282
- font-size: 0.875rem;
54283
- font-weight: 500;
54284
- color: oklch(0.56 0.02 228);
54285
- cursor: pointer;
54286
- border-bottom: 2px solid transparent;
54287
- background: none;
54288
- border-top: none;
54289
- border-left: none;
54290
- border-right: none;
54291
- transition: color 0.15s, border-color 0.15s;
54309
+ margin-top: 0.25rem;
54292
54310
  }
54293
54311
 
54294
- .tab.active {
54295
- color: oklch(0.17 0.02 228);
54296
- border-bottom-color: oklch(0.7 0.18 42);
54312
+ .tab-switch a {
54313
+ font-size: 15px;
54314
+ color: #18181b;
54315
+ text-decoration: underline;
54316
+ text-decoration-color: rgba(251,146,60,0.5);
54317
+ text-underline-offset: 2px;
54318
+ cursor: pointer;
54297
54319
  }
54298
54320
 
54299
- .tab:hover { color: oklch(0.17 0.02 228); }
54300
-
54301
- .tab-content { display: none; }
54302
- .tab-content.active { display: block; }
54303
-
54304
- .google-icon {
54305
- width: 18px;
54306
- height: 18px;
54321
+ .tab-switch a:hover {
54322
+ background: rgba(251,146,60,0.1);
54323
+ border-radius: 2px;
54307
54324
  }
54308
54325
  </style>
54309
54326
  </head>
54310
54327
  <body>
54311
- <div class="container">
54328
+ <div class="card">
54329
+ <!-- Logo {k} -->
54312
54330
  <div class="logo">
54313
- <svg width="108" height="32" viewBox="0 0 108 32" fill="none" xmlns="http://www.w3.org/2000/svg">
54314
- <g clip-path="url(#clip0)">
54315
- <path d="M4.5 27V20.0059C4.49955 18.6288 3.38499 17.5105 2.00781 17.5059L-0.00585938 17.5V14.5L2.00781 14.4941C3.38499 14.4895 4.49955 13.3712 4.5 11.9941V5C4.5 2.51472 6.51472 0.5 9 0.5H12V3.5H9C8.17157 3.5 7.5 4.17157 7.5 5V11.9941C7.49977 13.5757 6.82719 14.9966 5.75781 16C6.82719 17.0034 7.49977 18.4243 7.5 20.0059V27C7.5 27.8284 8.17157 28.5 9 28.5H12V31.5H9C6.51472 31.5 4.5 29.4853 4.5 27Z" fill="#FD7412"/>
54316
- <path d="M103.5 27V20.0059C103.5 18.6288 104.615 17.5105 105.992 17.5059L108.006 17.5V14.5L105.992 14.4941C104.615 14.4895 103.5 13.3712 103.5 11.9941V5C103.5 2.51472 101.485 0.5 99 0.5H96V3.5H99C99.8284 3.5 100.5 4.17157 100.5 5V11.9941C100.5 13.5757 101.173 14.9966 102.242 16C101.173 17.0034 100.5 18.4243 100.5 20.0059V27C100.5 27.8284 99.8284 28.5 99 28.5H96V31.5H99C101.485 31.5 103.5 29.4853 103.5 27Z" fill="#FD7412"/>
54317
- <path d="M85.2346 26.308C84.0026 26.308 82.92 26.0093 81.9866 25.412C81.0533 24.8147 80.3253 23.9653 79.8026 22.864C79.28 21.7627 79.0186 20.4373 79.0186 18.888C79.0186 17.3573 79.28 16.0413 79.8026 14.94C80.3253 13.8387 81.0533 12.9987 81.9866 12.42C82.92 11.8227 84.0026 11.524 85.2346 11.524C86.3733 11.524 87.3906 11.804 88.2866 12.364C89.2013 12.9053 89.7986 13.6427 90.0786 14.576H89.7706L90.1066 11.804H94.1666C94.1106 12.42 94.0546 13.0453 93.9986 13.68C93.9613 14.296 93.9426 14.9027 93.9426 15.5V26H89.7426L89.7146 23.34H90.0506C89.752 24.236 89.1546 24.9547 88.2586 25.496C87.3626 26.0373 86.3546 26.308 85.2346 26.308ZM86.5226 23.116C87.4933 23.116 88.2773 22.7707 88.8746 22.08C89.472 21.3893 89.7706 20.3253 89.7706 18.888C89.7706 17.4507 89.472 16.396 88.8746 15.724C88.2773 15.052 87.4933 14.716 86.5226 14.716C85.552 14.716 84.768 15.052 84.1706 15.724C83.5733 16.396 83.2746 17.4507 83.2746 18.888C83.2746 20.3253 83.564 21.3893 84.1426 22.08C84.74 22.7707 85.5333 23.116 86.5226 23.116Z" fill="#18181B"/>
54318
- <path d="M70.1002 26.308C68.5882 26.308 67.2722 26.0093 66.1522 25.412C65.0509 24.796 64.1922 23.9373 63.5762 22.836C62.9789 21.7347 62.6802 20.4187 62.6802 18.888C62.6802 17.376 62.9789 16.0693 63.5762 14.968C64.1922 13.8667 65.0509 13.0173 66.1522 12.42C67.2722 11.8227 68.5882 11.524 70.1002 11.524C71.6122 11.524 72.9282 11.8227 74.0482 12.42C75.1682 13.0173 76.0269 13.8667 76.6242 14.968C77.2402 16.0693 77.5482 17.376 77.5482 18.888C77.5482 20.4187 77.2402 21.7347 76.6242 22.836C76.0269 23.9373 75.1682 24.796 74.0482 25.412C72.9282 26.0093 71.6122 26.308 70.1002 26.308ZM70.1002 23.116C71.0709 23.116 71.8362 22.7707 72.3962 22.08C72.9749 21.3893 73.2642 20.3253 73.2642 18.888C73.2642 17.4507 72.9749 16.396 72.3962 15.724C71.8362 15.052 71.0709 14.716 70.1002 14.716C69.1295 14.716 68.3549 15.052 67.7762 15.724C67.2162 16.396 66.9362 17.4507 66.9362 18.888C66.9362 20.3253 67.2162 21.3893 67.7762 22.08C68.3549 22.7707 69.1295 23.116 70.1002 23.116Z" fill="#18181B"/>
54319
- <path d="M51.8208 26.308C50.5888 26.308 49.4968 26.0093 48.5448 25.412C47.6115 24.8147 46.8741 23.9653 46.3328 22.864C45.8101 21.7627 45.5488 20.4373 45.5488 18.888C45.5488 17.3573 45.8101 16.0413 46.3328 14.94C46.8555 13.8387 47.5928 12.9987 48.5448 12.42C49.4968 11.8227 50.5888 11.524 51.8208 11.524C52.9408 11.524 53.9395 11.7947 54.8168 12.336C55.7128 12.8587 56.3101 13.568 56.6088 14.464H56.2448V5.392H60.4728V26H56.3008V23.228H56.6648C56.3661 24.1613 55.7688 24.908 54.8728 25.468C53.9768 26.028 52.9595 26.308 51.8208 26.308ZM53.0808 23.116C54.0515 23.116 54.8355 22.7707 55.4328 22.08C56.0301 21.3893 56.3288 20.3253 56.3288 18.888C56.3288 17.4507 56.0301 16.396 55.4328 15.724C54.8355 15.052 54.0515 14.716 53.0808 14.716C52.1101 14.716 51.3168 15.052 50.7008 15.724C50.1035 16.396 49.8048 17.4507 49.8048 18.888C49.8048 20.3253 50.1035 21.3893 50.7008 22.08C51.3168 22.7707 52.1101 23.116 53.0808 23.116Z" fill="#18181B"/>
54320
- <path d="M34.6334 26.308C33.4014 26.308 32.3187 26.0093 31.3854 25.412C30.4521 24.8147 29.7241 23.9653 29.2014 22.864C28.6787 21.7627 28.4174 20.4373 28.4174 18.888C28.4174 17.3573 28.6787 16.0413 29.2014 14.94C29.7241 13.8387 30.4521 12.9987 31.3854 12.42C32.3187 11.8227 33.4014 11.524 34.6334 11.524C35.7721 11.524 36.7894 11.804 37.6854 12.364C38.6001 12.9053 39.1974 13.6427 39.4774 14.576H39.1694L39.5054 11.804H43.5654C43.5094 12.42 43.4534 13.0453 43.3974 13.68C43.3601 14.296 43.3414 14.9027 43.3414 15.5V26H39.1414L39.1134 23.34H39.4494C39.1507 24.236 38.5534 24.9547 37.6574 25.496C36.7614 26.0373 35.7534 26.308 34.6334 26.308ZM35.9214 23.116C36.8921 23.116 37.6761 22.7707 38.2734 22.08C38.8707 21.3893 39.1694 20.3253 39.1694 18.888C39.1694 17.4507 38.8707 16.396 38.2734 15.724C37.6761 15.052 36.8921 14.716 35.9214 14.716C34.9507 14.716 34.1667 15.052 33.5694 15.724C32.9721 16.396 32.6734 17.4507 32.6734 18.888C32.6734 20.3253 32.9627 21.3893 33.5414 22.08C34.1387 22.7707 34.9321 23.116 35.9214 23.116Z" fill="#18181B"/>
54321
- <path d="M13.736 26V5.392H17.964V17.712H18.02L23.284 11.804H28.324L21.52 19.364V17.824L28.688 26H23.508L18.02 19.84H17.964V26H13.736Z" fill="#18181B"/>
54322
- </g>
54323
- <defs><clipPath id="clip0"><rect width="108" height="32" fill="white"/></clipPath></defs>
54331
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
54332
+ <path opacity="0.15" d="M25.3196 6.25H14.6804C14.6804 7.49264 13.6596 8.5 12.4005 8.5C11.3808 8.5 10.8312 8.67478 10.5466 8.82497C10.3001 8.95506 10.147 9.11941 10.0189 9.38005C9.85482 9.7141 9.74438 10.1712 9.68281 10.8152C9.62136 11.458 9.61405 12.2133 9.61405 13.125L9.61416 13.3731C9.61532 14.9118 9.61694 17.0733 8.75235 18.8332C8.55109 19.2428 8.30266 19.6357 8 20C8.30266 20.3643 8.55109 20.7572 8.75235 21.1668C9.61694 22.9267 9.61532 25.0882 9.61416 26.6269L9.61405 26.875C9.61405 27.7867 9.62136 28.542 9.68281 29.1848C9.74438 29.8288 9.85482 30.2859 10.0189 30.6199C10.147 30.8806 10.3001 31.0449 10.5466 31.175C10.8312 31.3252 11.3808 31.5 12.4005 31.5C13.6596 31.5 14.6804 32.5074 14.6804 33.75H25.3196C25.3196 32.5074 26.3404 31.5 27.5995 31.5C28.6192 31.5 29.1688 31.3252 29.4534 31.175C29.6999 31.0449 29.853 30.8806 29.9811 30.6199C30.1452 30.2859 30.2556 29.8288 30.3172 29.1848C30.3786 28.542 30.386 27.7867 30.386 26.875L30.3858 26.6269C30.3847 25.0882 30.3831 22.9267 31.2477 21.1668C31.4489 20.7572 31.6973 20.3643 32 20C31.6973 19.6357 31.4489 19.2428 31.2477 18.8332C30.3831 17.0733 30.3847 14.9118 30.3858 13.3731L30.386 13.125C30.386 12.2133 30.3786 11.458 30.3172 10.8152C30.2556 10.1712 30.1452 9.7141 29.9811 9.38005C29.853 9.11941 29.6999 8.95506 29.4534 8.82497C29.1688 8.67478 28.6192 8.5 27.5995 8.5C26.3404 8.5 25.3196 7.49264 25.3196 6.25Z" fill="#fd7412"/>
54333
+ <path d="M12.5 6.25C2.5 6.25 12.5 20 2.5 20C12.5 20 2.5 33.75 12.5 33.75" stroke="#fd7412" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"/>
54334
+ <path d="M16 10V29" stroke="#18181B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"/>
54335
+ <path d="M27.5 6.25C37.5 6.25 27.5 20 37.5 20C27.5 20 37.5 33.75 27.5 33.75" stroke="#fd7412" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"/>
54336
+ <path d="M16 23L25 18" stroke="#18181B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"/>
54337
+ <path d="M25 29L16 23" stroke="#18181B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8"/>
54324
54338
  </svg>
54325
54339
  </div>
54340
+
54341
+ <!-- Heading -->
54326
54342
  <h1>Sign in to Kadoa</h1>
54327
- <p class="subtitle">Connect your Kadoa account to this MCP client</p>
54343
+
54344
+ <div class="spacer"></div>
54345
+
54328
54346
  ${errorHtml}
54329
54347
 
54330
- <!-- Google -->
54348
+ <!-- Continue with Google -->
54331
54349
  <form method="POST" action="/auth/google">
54332
54350
  <input type="hidden" name="state" value="${escapeHtml(state)}" />
54333
- <button type="submit" class="btn btn-outline">
54351
+ <button type="submit" class="btn btn-default">
54334
54352
  <svg class="google-icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
54335
54353
  <path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" fill="#4285F4"/>
54336
54354
  <path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"/>
@@ -54341,44 +54359,81 @@ function renderLoginPage(state, error48) {
54341
54359
  </button>
54342
54360
  </form>
54343
54361
 
54344
- <div class="divider"><span>or</span></div>
54362
+ <!-- Continue with SSO -->
54363
+ <div id="sso-button-wrapper">
54364
+ <form method="POST" action="/auth/sso" id="sso-direct-form" style="display:none">
54365
+ <input type="hidden" name="state" value="${escapeHtml(state)}" />
54366
+ <input type="hidden" name="email" id="sso-email-hidden" />
54367
+ </form>
54368
+ <button type="button" class="btn btn-default" id="sso-toggle-btn">
54369
+ <svg class="key-icon" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
54370
+ <path d="M10 1a5 5 0 0 0-4.546 7.066l-4.161 4.16a.5.5 0 0 0-.146.354V14.5a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5V14h1a.5.5 0 0 0 .5-.5v-1h1a.5.5 0 0 0 .354-.146l.94-.94A5 5 0 1 0 10 1zm1.5 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" fill="currentColor"/>
54371
+ </svg>
54372
+ Continue with SSO
54373
+ </button>
54374
+ </div>
54345
54375
 
54346
- <!-- Tabs: Email / SSO -->
54347
- <div class="tabs">
54348
- <button class="tab active" data-tab="email" type="button">Email &amp; Password</button>
54349
- <button class="tab" data-tab="sso" type="button">Enterprise SSO</button>
54376
+ <!-- OR divider -->
54377
+ <div class="line-or">
54378
+ <hr />
54379
+ OR
54380
+ <hr />
54350
54381
  </div>
54351
54382
 
54352
- <!-- Email + Password tab -->
54383
+ <!-- Email + Password form -->
54353
54384
  <div class="tab-content active" id="tab-email">
54354
54385
  <form method="POST" action="/auth/login">
54355
54386
  <input type="hidden" name="state" value="${escapeHtml(state)}" />
54356
- <label for="email">Email</label>
54357
- <input type="email" id="email" name="email" required placeholder="you@example.com" />
54358
- <label for="password">Password</label>
54359
- <input type="password" id="password" name="password" required placeholder="Your password" />
54360
- <button type="submit" class="btn btn-primary">Sign in</button>
54387
+ <div class="field">
54388
+ <label for="email">Sign in with email:</label>
54389
+ <input type="email" id="email" name="email" required autocomplete="email" />
54390
+ </div>
54391
+ <div class="field">
54392
+ <label for="password">Your password:</label>
54393
+ <input type="password" id="password" name="password" required autocomplete="current-password" />
54394
+ </div>
54395
+ <button type="submit" class="btn btn-primary">Continue</button>
54361
54396
  </form>
54362
54397
  </div>
54363
54398
 
54364
- <!-- SSO tab -->
54399
+ <!-- SSO form (shown when "Continue with SSO" is clicked) -->
54365
54400
  <div class="tab-content" id="tab-sso">
54366
54401
  <form method="POST" action="/auth/sso">
54367
54402
  <input type="hidden" name="state" value="${escapeHtml(state)}" />
54368
- <label for="sso-email">Work email</label>
54369
- <input type="email" id="sso-email" name="email" required placeholder="you@company.com" />
54370
- <button type="submit" class="btn btn-primary" style="margin-top: 0.25rem;">Continue with SSO</button>
54403
+ <div class="field">
54404
+ <label for="sso-email">Work email:</label>
54405
+ <input type="email" id="sso-email" name="email" required autocomplete="email" />
54406
+ </div>
54407
+ <button type="submit" class="btn btn-primary">Continue with SSO</button>
54371
54408
  </form>
54409
+ <div class="tab-switch">
54410
+ <a id="back-to-email">Sign in with email instead</a>
54411
+ </div>
54372
54412
  </div>
54373
54413
 
54414
+ <div style="flex:1"></div>
54415
+
54374
54416
  <script>
54375
- document.querySelectorAll('.tab').forEach(function(tab) {
54376
- tab.addEventListener('click', function() {
54377
- document.querySelectorAll('.tab').forEach(function(t) { t.classList.remove('active'); });
54378
- document.querySelectorAll('.tab-content').forEach(function(c) { c.classList.remove('active'); });
54379
- tab.classList.add('active');
54380
- document.getElementById('tab-' + tab.dataset.tab).classList.add('active');
54381
- });
54417
+ var ssoBtn = document.getElementById('sso-toggle-btn');
54418
+ var tabEmail = document.getElementById('tab-email');
54419
+ var tabSso = document.getElementById('tab-sso');
54420
+ var ssoWrapper = document.getElementById('sso-button-wrapper');
54421
+ var lineOr = document.querySelector('.line-or');
54422
+ var backLink = document.getElementById('back-to-email');
54423
+
54424
+ ssoBtn.addEventListener('click', function() {
54425
+ tabEmail.classList.remove('active');
54426
+ tabSso.classList.add('active');
54427
+ ssoWrapper.style.display = 'none';
54428
+ lineOr.style.display = 'none';
54429
+ document.getElementById('sso-email').focus();
54430
+ });
54431
+
54432
+ backLink.addEventListener('click', function() {
54433
+ tabSso.classList.remove('active');
54434
+ tabEmail.classList.add('active');
54435
+ ssoWrapper.style.display = '';
54436
+ lineOr.style.display = '';
54382
54437
  });
54383
54438
  </script>
54384
54439
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kadoa/mcp",
3
- "version": "0.3.3-rc.0",
3
+ "version": "0.3.3",
4
4
  "description": "Kadoa MCP Server — manage workflows from Claude Desktop, Cursor, and other MCP clients",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",