Skip to content

Commit 5d45de9

Browse files
committed
chore: append missing /services
1 parent 887c530 commit 5d45de9

File tree

1 file changed

+1
-1
lines changed
  • packages/use-agently/src/commands

1 file changed

+1
-1
lines changed

packages/use-agently/src/commands/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import pkg from "../../package.json" with { type: "json" };
99

1010
function resolveMcpUrl(input: string): string {
1111
const isDirectUrl = input.startsWith("http://") || input.startsWith("https://");
12-
const base = isDirectUrl ? input : `https://use-agently.com/${input}/`;
12+
const base = isDirectUrl ? input : `https://use-agently.com/${input}/services/mcp`;
1313
const url = new URL(base);
1414
if (!url.pathname.endsWith("/mcp") && !url.pathname.endsWith("/mcp/")) {
1515
url.pathname = url.pathname.replace(/\/?$/, "/mcp");

0 commit comments

Comments
 (0)