MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / fileStore

Struct fileStore

examples/server/memory/kb.go:69–71  ·  view source on GitHub ↗

fileStore implements file-based storage for persistent knowledge base.

Source from the content-addressed store, hash-verified

67
68// fileStore implements file-based storage for persistent knowledge base.
69type fileStore struct {
70 path string
71}
72
73// Read loads data from file, returning empty slice if file doesn't exist.
74func (fs *fileStore) Read() ([]byte, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected