netintel-mcp 1.1.6 → 1.1.8
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/dist/index.js +30 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -700,6 +700,36 @@ function registerTools(server, api) {
|
|
|
700
700
|
return err(e);
|
|
701
701
|
}
|
|
702
702
|
});
|
|
703
|
+
// 67. Calendar (POST)
|
|
704
|
+
server.tool("netintel_calendar", "Turn event fields into a valid RFC 5545 .ics calendar file — handles timed and all-day events, escaping, line folding, and a deterministic UID for idempotent re-import — so agents can publish events that import cleanly into Google, Apple…", { title: z.string(), starts_at: z.string(), ends_at: z.string().optional(), all_day: z.boolean().optional(), timezone: z.string().optional(), location: z.string().optional(), description: z.string().optional(), url: z.string().optional(), organizer: z.string().optional() }, async ({ title, starts_at, ends_at, all_day, timezone, location, description, url, organizer }) => {
|
|
705
|
+
try {
|
|
706
|
+
const res = await api.post("/calendar/ics", { title, starts_at, ends_at, all_day, timezone, location, description, url, organizer });
|
|
707
|
+
return ok(res.data);
|
|
708
|
+
}
|
|
709
|
+
catch (e) {
|
|
710
|
+
return err(e);
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
// 68. Event Classify (POST)
|
|
714
|
+
server.tool("netintel_event_classify", "Cheap, fast \"is this a dateable event?\" filter for social and web text — one tiny Haiku call returns is_event, confidence, and a one-line reason, so agents can screen every post for free-ish and only pay for full extraction on the ones…", { text: z.string(), posted_at: z.string().optional(), timezone: z.string().optional() }, async ({ text, posted_at, timezone }) => {
|
|
715
|
+
try {
|
|
716
|
+
const res = await api.post("/event-classify", { text, posted_at, timezone });
|
|
717
|
+
return ok(res.data);
|
|
718
|
+
}
|
|
719
|
+
catch (e) {
|
|
720
|
+
return err(e);
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
// 69. Event Extract (POST)
|
|
724
|
+
server.tool("netintel_event_extract", "Extract a normalized calendar event from any caption, announcement, or page text using Claude Haiku — resolves relative dates (\"this Saturday 7pm\") against the post time and timezone, handles all-day and multi-day events, and returns…", { text: z.string(), posted_at: z.string().optional(), timezone: z.string().optional(), city: z.string().optional() }, async ({ text, posted_at, timezone, city }) => {
|
|
725
|
+
try {
|
|
726
|
+
const res = await api.post("/event-extract", { text, posted_at, timezone, city });
|
|
727
|
+
return ok(res.data);
|
|
728
|
+
}
|
|
729
|
+
catch (e) {
|
|
730
|
+
return err(e);
|
|
731
|
+
}
|
|
732
|
+
});
|
|
703
733
|
}
|
|
704
734
|
async function main() {
|
|
705
735
|
const api = await createClient();
|