Skip to main content
Glama

Obsidian MCP Server - Enhanced

by BoweyLou
simple-test.js•1.17 kB
#!/usr/bin/env node // Simple test to check if tools are accessible import https from 'https'; const API_KEY = '9ff227bd9a3700574d08b33044d7ba1d426431fa457ded7d4594c63affc3b2b4'; const BASE_URL = 'https://yannicks-mac-mini.tail9cf43d.ts.net/mcp'; async function testMCP() { console.log('Testing MCP server basic functionality...\n'); // Test 1: Initialize console.log('1. Testing initialization...'); const response1 = await fetch(BASE_URL, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Accept': 'application/json, text/event-stream', 'Authorization': API_KEY }, body: JSON.stringify({ jsonrpc: '2.0', method: 'initialize', id: 1, params: { protocolVersion: '2024-11-05', capabilities: {}, clientInfo: { name: 'test', version: '1.0.0' } } }) }); const text1 = await response1.text(); console.log('Initialize response:', text1); // Try to extract session ID from response headers const sessionId = response1.headers.get('mcp-session-id'); console.log('Session ID from headers:', sessionId); } testMCP().catch(console.error);

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BoweyLou/obsidian-mcp-server-enhanced'

If you have feedback or need assistance with the MCP directory API, please join our Discord server