//#region src/utils/work-app-mcp.ts
const TRUSTED_WORK_APP_MCP_PATHS = {
	slack: "/work-apps/slack/mcp",
	github: "/work-apps/github/mcp"
};
const isTrustedWorkAppMcpUrl = (url, path, baseUrl) => {
	if (!baseUrl) return false;
	try {
		const toolUrl = new URL(String(url));
		const base = new URL(baseUrl);
		return toolUrl.origin === base.origin && toolUrl.pathname === path;
	} catch {
		return false;
	}
};

//#endregion
export { TRUSTED_WORK_APP_MCP_PATHS, isTrustedWorkAppMcpUrl };