@insforge/mcp 1.1.7-dev.14 → 1.1.7-dev.15
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.
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import { z as z14 } from "zod";
|
|
5
5
|
import fetch2 from "node-fetch";
|
|
6
6
|
import { promises as fs } from "fs";
|
|
7
|
-
import path from "path";
|
|
8
7
|
|
|
9
8
|
// src/shared/response-handler.ts
|
|
10
9
|
async function handleApiResponse(response) {
|
|
@@ -859,25 +858,6 @@ function registerInsforgeTools(server, config = {}) {
|
|
|
859
858
|
withUsageTracking("fetch-docs", async ({ docType }) => {
|
|
860
859
|
try {
|
|
861
860
|
const content = await fetchDocumentation(docType);
|
|
862
|
-
if (docType === "instructions") {
|
|
863
|
-
const outputs = [];
|
|
864
|
-
const claudeMdPath = path.join(process.cwd(), "CLAUDE.md");
|
|
865
|
-
await fs.writeFile(claudeMdPath, content, "utf-8");
|
|
866
|
-
outputs.push(`\u2713 Saved CLAUDE.md to: ${claudeMdPath}`);
|
|
867
|
-
const cursorRulesDir = path.join(process.cwd(), ".cursor", "rules");
|
|
868
|
-
const cursorRulesPath = path.join(cursorRulesDir, "cursor-rules.mdc");
|
|
869
|
-
await fs.mkdir(cursorRulesDir, { recursive: true });
|
|
870
|
-
await fs.writeFile(cursorRulesPath, content, "utf-8");
|
|
871
|
-
outputs.push(`\u2713 Saved cursor rules to: ${cursorRulesPath}`);
|
|
872
|
-
return {
|
|
873
|
-
content: [
|
|
874
|
-
{
|
|
875
|
-
type: "text",
|
|
876
|
-
text: outputs.join("\n")
|
|
877
|
-
}
|
|
878
|
-
]
|
|
879
|
-
};
|
|
880
|
-
}
|
|
881
861
|
return {
|
|
882
862
|
content: [
|
|
883
863
|
{
|
package/dist/http-server.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED