Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: addressed lint

Sheen Capadngan404c8b7de28f
diff --git a/backend/src/ee/routes/ai/mcp-endpoint-metadata-router.ts b/backend/src/ee/routes/ai/mcp-endpoint-metadata-router.ts
index 69328167c3..429c8227bf 100644
--- a/backend/src/ee/routes/ai/mcp-endpoint-metadata-router.ts
+++ b/backend/src/ee/routes/ai/mcp-endpoint-metadata-router.ts
@@ -28,6 +28,10 @@ const getMcpUrls = (siteUrl: string, endpointId: string) => {
export const registerMcpEndpointMetadataRouter = async (server: FastifyZodProvider) => {
const appCfg = getConfig();
const siteUrl = removeTrailingSlash(appCfg.SITE_URL || "");
+ if (!siteUrl) {
+ return; // SITE_URL not configured, skip MCP endpoint metadata registration
+ }
+
const siteHost = new URL(siteUrl).host;
const scopeAccess = `https://${siteHost}/mcp:access`;
@@ -61,6 +65,9 @@ export const registerMcpEndpointMetadataRouter = async (server: FastifyZodProvid
export const registerMcpEndpointAuthServerMetadataRouter = async (server: FastifyZodProvider) => {
const appCfg = getConfig();
const siteUrl = removeTrailingSlash(appCfg.SITE_URL || "");
+ if (!siteUrl) {
+ return; // SITE_URL not configured, skip MCP auth server metadata registration
+ }
const siteHost = new URL(siteUrl).host;
const scopeAccess = `https://${siteHost}/mcp:access`;
diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/route-ai.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/route-ai.tsx
index 1067316de2..939641094c 100644
--- a/frontend/src/pages/project/GroupDetailsByIDPage/route-ai.tsx
+++ b/frontend/src/pages/project/GroupDetailsByIDPage/route-ai.tsx
@@ -15,7 +15,7 @@ export const Route = createFileRoute(
{
label: "Access Control",
link: linkOptions({
- to: "/organizations/$orgId/projects/cert-management/$projectId/access-management",
+ to: "/organizations/$orgId/projects/ai/$projectId/access-management",
params: {
orgId: params.orgId,
projectId: params.projectId
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/route-ai.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/route-ai.tsx
index a91b929429..8d4e1c5c2b 100644
--- a/frontend/src/pages/project/IdentityDetailsByIDPage/route-ai.tsx
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/route-ai.tsx
@@ -15,7 +15,7 @@ export const Route = createFileRoute(
{
label: "Access Control",
link: linkOptions({
- to: "/organizations/$orgId/projects/cert-management/$projectId/access-management",
+ to: "/organizations/$orgId/projects/ai/$projectId/access-management",
params: {
orgId: params.orgId,
projectId: params.projectId
diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/route-ai.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/route-ai.tsx
index 2ea704fcfb..c0201ff71e 100644
--- a/frontend/src/pages/project/MemberDetailsByIDPage/route-ai.tsx
+++ b/frontend/src/pages/project/MemberDetailsByIDPage/route-ai.tsx
@@ -15,7 +15,7 @@ export const Route = createFileRoute(
{
label: "Access Control",
link: linkOptions({
- to: "/organizations/$orgId/projects/cert-management/$projectId/access-management",
+ to: "/organizations/$orgId/projects/ai/$projectId/access-management",
params: {
orgId: params.orgId,
projectId: params.projectId
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/route-ai.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/route-ai.tsx
index 1fefbec080..c30ee6914c 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/route-ai.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/route-ai.tsx
@@ -15,7 +15,7 @@ export const Route = createFileRoute(
{
label: "Access Control",
link: linkOptions({
- to: "/organizations/$orgId/projects/cert-management/$projectId/access-management",
+ to: "/organizations/$orgId/projects/ai/$projectId/access-management",
params: {
orgId: params.orgId,
projectId: params.projectId