MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / capabilities

Method capabilities

apps/server/internal/httpserver/server.go:295–307  ·  view source on GitHub ↗
(w http.ResponseWriter, _ *http.Request)

Source from the content-addressed store, hash-verified

293}
294
295func (s *Server) capabilities(w http.ResponseWriter, _ *http.Request) {
296 cfg := s.currentConfig()
297 writeJSON(w, http.StatusOK, map[string]any{
298 "version": "0.1.0-web",
299 "platform": platformName(),
300 "authRequired": strings.TrimSpace(cfg.AuthToken) != "",
301 "supportsSessionLogin": true,
302 "browseRootsEnforced": !cfg.AllowUnscopedBrowse,
303 "supportsVaultSelection": true,
304 "supportsDirectoryBrowsing": true,
305 "supportsWatch": true,
306 })
307}
308
309func (s *Server) platform(w http.ResponseWriter, _ *http.Request) {
310 writeJSON(w, http.StatusOK, map[string]string{"platform": platformName()})

Callers

nothing calls this directly

Calls 3

currentConfigMethod · 0.95
writeJSONFunction · 0.85
platformNameFunction · 0.85

Tested by

no test coverage detected