Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
google-drive-mcp
command
Command google-drive-mcp is a Model Context Protocol server for Google Drive.
|
Command google-drive-mcp is a Model Context Protocol server for Google Drive. |
|
internal
|
|
|
auth
Package auth implements Google's documented OAuth flow for desktop applications: a loopback redirect on 127.0.0.1 with a random port and PKCE, then a refresh-token-backed token source for API calls.
|
Package auth implements Google's documented OAuth flow for desktop applications: a loopback redirect on 127.0.0.1 with a random port and PKCE, then a refresh-token-backed token source for API calls. |
|
config
Package config loads and validates runtime configuration.
|
Package config loads and validates runtime configuration. |
|
credentials
Package credentials stores and resolves the OAuth refresh token.
|
Package credentials stores and resolves the OAuth refresh token. |
|
gapi
Package gapi is a raw REST client for the Google Drive API v3.
|
Package gapi is a raw REST client for the Google Drive API v3. |
|
gapi/drivetest
Package drivetest is an in-memory Google Drive behind httptest, so every layer above internal/gapi can be tested without a network, an account, or a fixture that came from someone's real Drive.
|
Package drivetest is an in-memory Google Drive behind httptest, so every layer above internal/gapi can be tested without a network, an account, or a fixture that came from someone's real Drive. |
|
gdrive
Package gdrive holds the Drive API v3 wire types this server reads and writes.
|
Package gdrive holds the Drive API v3 wire types this server reads and writes. |
|
mediatype
Package mediatype is the one place this server knows what a media type means: what to call it, which kind filter it answers to, what short name it goes by as an export format, and — for Google's own kinds — what a read exports it to and what a download writes by default.
|
Package mediatype is the one place this server knows what a media type means: what to call it, which kind filter it answers to, what short name it goes by as an export format, and — for Google's own kinds — what a read exports it to and what a download writes by default. |
|
model
Package model turns Drive's wire form into the view this server shows: the kind of thing in plain words, where it sits, who can see it, what the signed-in person may do with it, and sizes and times as people read them.
|
Package model turns Drive's wire form into the view this server shows: the kind of thing in plain words, where it sits, who can see it, what the signed-in person may do with it, and sizes and times as people read them. |
|
ref
Package ref parses the strings a tool accepts where it points at something in Drive: an id, any Google URL, the words for My Drive's root, or a path.
|
Package ref parses the strings a tool accepts where it points at something in Drive: an id, any Google URL, the words for My Drive's root, or a path. |
|
render
Package render turns the model into the text a tool returns.
|
Package render turns the model into the text a tool returns. |
|
server
Package server wires the MCP SDK to the tools and offers a schema dump through an in-memory client session.
|
Package server wires the MCP SDK to the tools and offers a schema dump through an in-memory client session. |
|
service
Package service orchestrates the work behind each tool: resolve a reference, decide what is allowed, call Drive, and hand internal/render a model to lay out.
|
Package service orchestrates the work behind each tool: resolve a reference, decide what is allowed, call Drive, and hand internal/render a model to lay out. |
|
tools
Package tools registers the MCP tools.
|
Package tools registers the MCP tools. |
|
userconfig
Package userconfig stores non-secret, per-profile settings that survive between runs: where the OAuth client JSON lives, which account was logged in, and where the refresh token was stored.
|
Package userconfig stores non-secret, per-profile settings that survive between runs: where the OAuth client JSON lives, which account was logged in, and where the refresh token was stored. |
|
version
Package version exposes the build-time version string.
|
Package version exposes the build-time version string. |
|
scripts
|
|
|
evals
command
Command evals runs an agent against this server and scores what it did, which is the check no unit test can make: whether the tool surface leads a model to the right call.
|
Command evals runs an agent against this server and scores what it did, which is the check no unit test can make: whether the tool surface leads a model to the right call. |
|
gates
command
Command gates runs the repository's own checks: the coverage floor, the tool-schema diff, the stdio smoke test and the staleness check.
|
Command gates runs the repository's own checks: the coverage floor, the tool-schema diff, the stdio smoke test and the staleness check. |
|
internal/livecover
Package livecover measures how much of the tool surface a live run actually drives.
|
Package livecover measures how much of the tool surface a live run actually drives. |
|
internal/mcpstdio
Package mcpstdio is a small MCP client over a child process's stdio, for the programs under scripts/ that drive the built server: the live driver and the evals.
|
Package mcpstdio is a small MCP client over a child process's stdio, for the programs under scripts/ that drive the built server: the live driver and the evals. |
|
internal/transcript
Package transcript is how a program that drives a real Google account prints: through one function, which redacts.
|
Package transcript is how a program that drives a real Google account prints: through one function, which redacts. |
|
livedrive
command
Command livedrive drives the built server over stdio against a real Google account, which is the check no fake can make: that the tools behave against Drive itself.
|
Command livedrive drives the built server over stdio against a real Google account, which is the check no fake can make: that the tools behave against Drive itself. |
Click to show internal directories.
Click to hide internal directories.