loaditout-mcp-server 0.2.1 → 0.2.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 +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -628,12 +628,12 @@ async function handleSearchSkills(args) {
|
|
|
628
628
|
return JSON.stringify(parsed, null, 2);
|
|
629
629
|
}
|
|
630
630
|
async function handleGetSkill(args) {
|
|
631
|
-
const result = await fetchJSON(`${API_BASE}/skill/${
|
|
631
|
+
const result = await fetchJSON(`${API_BASE}/skill/${args.slug.split("/").map(encodeURIComponent).join("/")}`);
|
|
632
632
|
return JSON.stringify(result, null, 2);
|
|
633
633
|
}
|
|
634
634
|
async function handleInstallSkill(args) {
|
|
635
635
|
const params = new URLSearchParams({ agent: args.agent });
|
|
636
|
-
const result = await fetchJSON(`${API_BASE}/install/${
|
|
636
|
+
const result = await fetchJSON(`${API_BASE}/install/${args.slug.split("/").map(encodeURIComponent).join("/")}?${params.toString()}`, { "X-Agent-Key": AGENT_KEY });
|
|
637
637
|
// Fire-and-forget: save this slug to installed_skills memory
|
|
638
638
|
const memories = await loadAgentMemory().catch(() => []);
|
|
639
639
|
const existing = extractInstalledSlugs(memories);
|
|
@@ -831,7 +831,7 @@ async function handleSetProfile(args) {
|
|
|
831
831
|
}
|
|
832
832
|
async function handleInstallPack(args) {
|
|
833
833
|
const params = new URLSearchParams({ agent: args.agent });
|
|
834
|
-
const result = (await fetchJSON(`${API_BASE}/pack/${
|
|
834
|
+
const result = (await fetchJSON(`${API_BASE}/pack/${args.slug.split("/").map(encodeURIComponent).join("/")}?${params.toString()}`));
|
|
835
835
|
if (result.error) {
|
|
836
836
|
return `Pack not found: ${result.error}`;
|
|
837
837
|
}
|
|
@@ -893,7 +893,7 @@ async function handleFlagSkill(args) {
|
|
|
893
893
|
if (args.details) {
|
|
894
894
|
body.details = args.details;
|
|
895
895
|
}
|
|
896
|
-
const url = `https://loaditout.ai/api/skills/${
|
|
896
|
+
const url = `https://www.loaditout.ai/api/skills/${args.slug.split("/").map(encodeURIComponent).join("/")}/flag`;
|
|
897
897
|
const result = (await postJSON(url, body, { "X-Agent-Key": AGENT_KEY }));
|
|
898
898
|
if (result.error) {
|
|
899
899
|
return `Flag failed: ${result.error}`;
|