Documentation
¶
Index ¶
- func New(a *app.App) *mcp.Server
- type ConfigGetInput
- type ConfigGetOutput
- type ConfigValidateInput
- type ConfigValidateOutput
- type ConfigWriteOutput
- type DeadReportOutput
- type HealthInput
- type HealthOutput
- type KeysDiffInput
- type KeysDiffOutput
- type LocalesListInput
- type LocalesListOutput
- type ProjectDetectInput
- type ProjectDetectOutput
- type PrunePlan
- type StateRebuildInput
- type StateRebuildOutput
- type TranslationGenerateInput
- type TranslationGenerateOutput
- type TranslationPlanOutput
- type UsageScanOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigGetInput ¶
type ConfigGetInput struct{}
ConfigGetInput is the input for the config.get tool.
type ConfigGetOutput ¶
type ConfigGetOutput struct {
Config config.Resolved `json:"config" jsonschema:"resolved i18n MCP configuration"`
}
ConfigGetOutput is the output for the config.get tool.
type ConfigValidateInput ¶
type ConfigValidateInput struct{}
ConfigValidateInput is the input for the config.validate tool.
type ConfigValidateOutput ¶
type ConfigValidateOutput struct {
Config config.Resolved `json:"config" jsonschema:"resolved configuration that was validated"`
Validation config.ValidationResult `json:"validation" jsonschema:"validation result with errors and warnings"`
}
ConfigValidateOutput is the output for the config.validate tool.
type ConfigWriteOutput ¶
type ConfigWriteOutput struct {
Result config.WriteOutput `json:"result" jsonschema:"config write preview or apply result"`
}
ConfigWriteOutput is the output for the config.write tool.
type DeadReportOutput ¶
type DeadReportOutput struct {
Report deadkey.Report `json:"report" jsonschema:"dead-key classification report with evidence and confidence"`
}
DeadReportOutput is the output for the dead-key report tool.
type HealthOutput ¶
type HealthOutput struct {
Name string `json:"name" jsonschema:"server name"`
Version version.Info `json:"version" jsonschema:"build version information"`
ProjectRoot string `json:"projectRoot" jsonschema:"configured project root"`
Status string `json:"status" jsonschema:"health status"`
}
HealthOutput is the output for the health tool.
type KeysDiffOutput ¶
type KeysDiffOutput struct {
Report diff.Report `json:"report" jsonschema:"locale key diff report with status records and summary counts"`
}
KeysDiffOutput is the output for the keys.diff tool.
type LocalesListInput ¶
type LocalesListInput struct {
IncludeUnits bool `json:"includeUnits,omitzero" jsonschema:"include flattened translation units in the response; false returns summary only"`
}
LocalesListInput is the input for the locales.list tool.
type LocalesListOutput ¶
type LocalesListOutput struct {
Inventory locale.Inventory `json:"inventory" jsonschema:"locale inventory summary and optional flattened units"`
}
LocalesListOutput is the output for the locales.list tool.
type ProjectDetectInput ¶
type ProjectDetectInput struct {
ProjectRoot string `` /* 130-byte string literal not displayed */
MaxDepth int `json:"maxDepth,omitzero" jsonschema:"reserved for deeper scans; zero uses default detection depth"`
}
ProjectDetectInput is the input for the project.detect tool.
type ProjectDetectOutput ¶
type ProjectDetectOutput struct {
ProjectRoot string `json:"projectRoot" jsonschema:"resolved project root"`
NextJS project.NextJSHints `json:"nextjs" jsonschema:"Next.js detection hints from detect4nextjs when applicable"`
DetectedLibrary string `json:"detectedLibrary,omitzero" jsonschema:"primary detected i18n library"`
Libraries []project.LibraryHint `json:"libraries,omitzero" jsonschema:"all detected i18n libraries"`
Layouts []project.LocaleLayout `json:"layouts,omitzero" jsonschema:"detected locale layouts"`
LocaleFiles []project.LocaleFileCandidate `json:"localeFiles,omitzero" jsonschema:"detected locale JSON files"`
SourceCandidates []string `json:"sourceLocaleCandidates,omitzero" jsonschema:"candidate source locales ordered by confidence"`
TargetLocales []string `json:"targetLocales,omitzero" jsonschema:"detected target locales"`
ProposedConfig config.File `json:"proposedConfig" jsonschema:"proposed .i18n-mcp.json config; not written to disk"`
Warnings []string `json:"warnings,omitzero" jsonschema:"non-fatal detection warnings"`
}
ProjectDetectOutput is the output for the project.detect tool.
type PrunePlan ¶
type PrunePlan struct {
KeyCount int
}
PrunePlan summarizes a pending prune confirmation.
type StateRebuildInput ¶
type StateRebuildInput struct {
Apply bool `json:"apply,omitzero" jsonschema:"write .i18n-mcp/state.json when true; false previews only"`
}
StateRebuildInput is the input for the state.rebuild tool.
type StateRebuildOutput ¶
type StateRebuildOutput struct {
Result state.RebuildResult `json:"result" jsonschema:"state rebuild preview result"`
}
StateRebuildOutput is the output for the state.rebuild tool.
type TranslationGenerateInput ¶
type TranslationGenerateInput struct {
Mode string `json:"mode,omitempty"`
Statuses []string `json:"statuses,omitzero"`
Locales []string `json:"locales,omitzero"`
Namespaces []string `json:"namespaces,omitzero"`
Keys []string `json:"keys,omitzero"`
IncludeContext bool `json:"includeContext,omitempty"`
MaxItems int `json:"maxItems,omitempty"`
}
TranslationGenerateInput is the input for the translation.generate tool.
type TranslationGenerateOutput ¶
type TranslationGenerateOutput struct {
Mode string `json:"mode"`
Provider string `json:"provider,omitempty"`
Plan translate.Batch `json:"plan"`
Proposals []translate.ProposedTranslation `json:"proposals"`
Rejected []translate.RejectedTranslation `json:"rejected,omitzero"`
Warnings []string `json:"warnings,omitzero"`
Usage translate.ProviderUsage `json:"usage,omitzero"`
}
TranslationGenerateOutput is the output for the translation.generate tool.
type TranslationPlanOutput ¶
type TranslationPlanOutput struct {
Batch translate.Batch `json:"batch" jsonschema:"translation batch for missing and stale keys"`
}
TranslationPlanOutput is the output for the translation.plan tool.
type UsageScanOutput ¶
type UsageScanOutput struct {
Report scanner.Report `json:"report" jsonschema:"static translation key usage scan report"`
}
UsageScanOutput is the output for the usage.scan tool.