Skip to content

Commit b0825e0

Browse files
Copilotabernier
andcommitted
Remove redundant library validation check (zod already validates)
Co-authored-by: abernier <76580+abernier@users.noreply.github.com>
1 parent d16c53e commit b0825e0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/app/api/[transport]/route.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ const handler = createMcpHandler(
9898
},
9999
async ({ lib, path }) => {
100100
let url: string = libs[lib].docs_url
101-
if (!url) {
102-
throw new Error(`Unknown library: ${lib}`)
103-
}
104101

105102
if (url.startsWith('/')) {
106103
url = toAbsoluteUrl(url)

0 commit comments

Comments
 (0)