@docrouter/mcp 0.1.1 → 0.1.2
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 +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1757,9 +1757,9 @@ This server provides access to DocRouter resources and tools.
|
|
|
1757
1757
|
}
|
|
1758
1758
|
case "help_prompts": {
|
|
1759
1759
|
try {
|
|
1760
|
-
const
|
|
1761
|
-
const
|
|
1762
|
-
const promptsPath = join(
|
|
1760
|
+
const currentFile = fileURLToPath(import.meta.url);
|
|
1761
|
+
const currentDir = dirname(currentFile);
|
|
1762
|
+
const promptsPath = join(currentDir, "docs/knowledge_base/prompts.md");
|
|
1763
1763
|
const promptsContent = readFileSync(promptsPath, "utf-8");
|
|
1764
1764
|
return {
|
|
1765
1765
|
content: [
|
|
@@ -1783,9 +1783,9 @@ This server provides access to DocRouter resources and tools.
|
|
|
1783
1783
|
}
|
|
1784
1784
|
case "help_schemas": {
|
|
1785
1785
|
try {
|
|
1786
|
-
const
|
|
1787
|
-
const
|
|
1788
|
-
const schemasPath = join(
|
|
1786
|
+
const currentFile = fileURLToPath(import.meta.url);
|
|
1787
|
+
const currentDir = dirname(currentFile);
|
|
1788
|
+
const schemasPath = join(currentDir, "docs/knowledge_base/schemas.md");
|
|
1789
1789
|
const schemasContent = readFileSync(schemasPath, "utf-8");
|
|
1790
1790
|
return {
|
|
1791
1791
|
content: [
|
|
@@ -1809,9 +1809,9 @@ This server provides access to DocRouter resources and tools.
|
|
|
1809
1809
|
}
|
|
1810
1810
|
case "help_forms": {
|
|
1811
1811
|
try {
|
|
1812
|
-
const
|
|
1813
|
-
const
|
|
1814
|
-
const formsPath = join(
|
|
1812
|
+
const currentFile = fileURLToPath(import.meta.url);
|
|
1813
|
+
const currentDir = dirname(currentFile);
|
|
1814
|
+
const formsPath = join(currentDir, "docs/knowledge_base/forms.md");
|
|
1815
1815
|
const formsContent = readFileSync(formsPath, "utf-8");
|
|
1816
1816
|
return {
|
|
1817
1817
|
content: [
|