netintel-mcp 1.1.3 → 1.1.4
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
|
@@ -650,6 +650,36 @@ function registerTools(server, api) {
|
|
|
650
650
|
return err(e);
|
|
651
651
|
}
|
|
652
652
|
});
|
|
653
|
+
// 62. Markdown (POST)
|
|
654
|
+
server.tool("netintel_markdown", "Convert messy HTML or text into clean, well-structured Markdown using Claude Haiku — strips boilerplate, fixes heading hierarchy, normalizes lists and links, and returns readable Markdown so agents can feed clean docs into downstream…", { text: z.string() }, async ({ text }) => {
|
|
655
|
+
try {
|
|
656
|
+
const res = await api.post("/markdown/clean", { text });
|
|
657
|
+
return ok(res.data);
|
|
658
|
+
}
|
|
659
|
+
catch (e) {
|
|
660
|
+
return err(e);
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
// 63. Normalize (POST)
|
|
664
|
+
server.tool("netintel_normalize", "Conform messy or inconsistent JSON to a target schema using Claude Haiku — renames keys, coerces types (string→number, \"true\"→boolean, etc.), and fills missing fields with null, returning JSON that matches the exact shape the caller…", { data: z.string(), schema: z.record(z.any()) }, async ({ data, schema }) => {
|
|
665
|
+
try {
|
|
666
|
+
const res = await api.post("/normalize/json", { data, schema });
|
|
667
|
+
return ok(res.data);
|
|
668
|
+
}
|
|
669
|
+
catch (e) {
|
|
670
|
+
return err(e);
|
|
671
|
+
}
|
|
672
|
+
});
|
|
673
|
+
// 64. Text To Json (POST)
|
|
674
|
+
server.tool("netintel_text_to_json", "Turn unstructured text into structured JSON matching a caller-supplied schema using Claude Haiku — the agent declares the fields and types it wants, and gets back populated JSON with values pulled from the text and coerced to the right…", { text: z.string(), schema: z.record(z.any()) }, async ({ text, schema }) => {
|
|
675
|
+
try {
|
|
676
|
+
const res = await api.post("/text-to-json", { text, schema });
|
|
677
|
+
return ok(res.data);
|
|
678
|
+
}
|
|
679
|
+
catch (e) {
|
|
680
|
+
return err(e);
|
|
681
|
+
}
|
|
682
|
+
});
|
|
653
683
|
}
|
|
654
684
|
async function main() {
|
|
655
685
|
const api = await createClient();
|