@biznetgio/neo-app 0.4.67 → 0.4.68
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.
- package/package.json +1 -1
- package/src/mcp/tools.js +9 -0
package/package.json
CHANGED
package/src/mcp/tools.js
CHANGED
|
@@ -510,6 +510,15 @@ export const TOOLS = [
|
|
|
510
510
|
return result(status, data);
|
|
511
511
|
},
|
|
512
512
|
},
|
|
513
|
+
{
|
|
514
|
+
name: 'neo_get_webhook',
|
|
515
|
+
description: 'Push-to-deploy (auto-deploy) integration status for a service (JNG #142). "Auto-deploy enabled" is NOT the same as "webhook active": this returns `status` = active (a delivery has been received) or **pending_setup** (NEO has never heard from the git provider — the webhook was likely never installed), plus `lastDeliveryAt` and the `setupUrl` to add to the repo. If pending_setup, add `setupUrl` as a push webhook (content-type application/json) in the repo\'s Settings → Webhooks; manual neo_deploy always works meanwhile.',
|
|
516
|
+
mutating: false,
|
|
517
|
+
schema: { type: 'object', properties: { appId: str('Service/app id') }, required: ['appId'] },
|
|
518
|
+
async call(api, args) {
|
|
519
|
+
return (await api.get(`/api/v1/apps/${args.appId}/webhook`)).data;
|
|
520
|
+
},
|
|
521
|
+
},
|
|
513
522
|
{
|
|
514
523
|
name: 'neo_get_domain_status',
|
|
515
524
|
description: 'Check a custom domain\'s readiness to a TERMINAL state (JNG #112 §8.6): whether it is attached, whether DNS resolves to the expected CNAME target (with an expected-vs-observed diagnostic), whether managed TLS has been issued, and whether HTTPS actually serves a valid certificate for the host. Poll this after neo_add_service_domain + redeploy until ready:true — do NOT assume "attach accepted" means live. Returns {attached, expectedTarget, dns:{pointed,observed,diagnostic}, tls:{issued}, https:{ok,statusCode,certHostnameValid}, ready}.',
|