Documentation
¶
Overview ¶
SPDX-License-Identifier: MIT Package mcpserver exposes the commit-query capability as an MCP tool over a stdio transport, so an LLM agent can ask for an author's recent commits.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadOnlyTools ¶
func ReadOnlyTools() []string
ReadOnlyTools lists the names of tools whose ReadOnlyHint is true. It is the single source of truth for which tools an installer may safely auto-approve, so the install permissions snippet cannot drift from what the server marks read-only. Every tool sting exposes is read-only by design.
Types ¶
type GetCommitsInput ¶
type GetCommitsInput struct {
Provider string `json:"provider,omitempty" jsonschema:"source control provider: github (default) or gitlab"`
Author string `json:"author" jsonschema:"provider username or author string whose commits to retrieve"`
Since string `json:"since,omitempty" jsonschema:"start of window, RFC3339 or YYYY-MM-DD; if omitted, window is used"`
Until string `json:"until,omitempty" jsonschema:"end of window, RFC3339 or YYYY-MM-DD; defaults to now"`
Window string `json:"window,omitempty" jsonschema:"look-back window when since is omitted, e.g. 7d, 2w, 48h; defaults to the server default"`
Scope string `` /* 220-byte string literal not displayed */
Repos []string `` /* 164-byte string literal not displayed */
Org string `` /* 177-byte string literal not displayed */
IncludeStats bool `` /* 145-byte string literal not displayed */
IncludeFiles bool `json:"include_files,omitempty" jsonschema:"fetch per-file change summaries; uses extra commit-detail API calls"`
IncludeDiffs bool `` /* 132-byte string literal not displayed */
MaxDiffBytes int `json:"max_diff_bytes,omitempty" jsonschema:"per-commit patch byte cap when include_diffs is true; defaults to server config"`
}
GetCommitsInput is the argument schema for the get_commits tool. The jsonschema descriptions are surfaced to the calling agent.
Click to show internal directories.
Click to hide internal directories.