We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/JaxsonWang/docs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
vector.ts•253 B
export function dotProduct(a: number[], b: number[]): number {
if (a.length !== b.length) {
throw new Error("vectors must have the same length");
}
let total = 0;
for (let i = 0; i < a.length; i += 1) {
total += a[i] * b[i];
}
return total;
}