We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 887c530 commit 5d45de9Copy full SHA for 5d45de9
packages/use-agently/src/commands/mcp.ts
@@ -9,7 +9,7 @@ import pkg from "../../package.json" with { type: "json" };
9
10
function resolveMcpUrl(input: string): string {
11
const isDirectUrl = input.startsWith("http://") || input.startsWith("https://");
12
- const base = isDirectUrl ? input : `https://use-agently.com/${input}/`;
+ const base = isDirectUrl ? input : `https://use-agently.com/${input}/services/mcp`;
13
const url = new URL(base);
14
if (!url.pathname.endsWith("/mcp") && !url.pathname.endsWith("/mcp/")) {
15
url.pathname = url.pathname.replace(/\/?$/, "/mcp");
0 commit comments