Deluan bcc3643c81 chore: add debug logging to mcp-server
Added debug logging throughout the mcp-server components using the standard Go `log` package. All log messages are prefixed with `[MCP]` for easy identification.

This includes logging in: main function (startup, CLI execution, registration, serve loop), Tool handlers, Native and WASM fetcher implementations, Wikipedia, Wikidata, and DBpedia data fetching functions

Replaced previous `println` statements with `log.Println` or `log.Printf`.
2025-04-19 19:37:32 -04:00
..
2025-04-19 19:37:32 -04:00

MCP Server (Proof of Concept)

This directory contains the source code for the mcp-server, a simple server implementation used as a proof-of-concept (PoC) for the Navidrome Plugin/MCP agent system.

This server is designed to be compiled into a WebAssembly (WASM) module (.wasm) using the wasip1 target.

Compilation

To compile the server into a WASM module (mcp-server.wasm), navigate to this directory in your terminal and run the following command:

CGO_ENABLED=0 GOOS=wasip1 GOARCH=wasm go build -o mcp-server.wasm .

Note: This command compiles the WASM module without the netgo tag. Networking operations (like HTTP requests) are expected to be handled by host functions provided by the embedding application (Navidrome's MCPAgent) rather than directly within the WASM module itself.

Place the resulting mcp-server.wasm file where the Navidrome MCPAgent expects it (currently configured via the McpServerPath constant in core/agents/mcp/mcp_agent.go).