You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 29, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: cmd/openapi-mcp/flags.go
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ type cliFlags struct {
35
35
mountsmountFlags// slice of mountFlag
36
36
functionListFilestring// Path to file listing functions to include (for filter command)
37
37
logFilestring// Path to file for logging MCP requests and responses
38
+
noLogTruncationbool// Disable truncation in human-readable MCP logs
38
39
}
39
40
40
41
typemountFlagstruct {
@@ -90,6 +91,7 @@ func parseFlags() *cliFlags {
90
91
flag.Var(&flags.mounts, "mount", "Mount an OpenAPI spec at a base path: /base:path/to/spec.yaml (repeatable, can be used multiple times)")
91
92
flag.StringVar(&flags.functionListFile, "function-list-file", "", "File with list of function (operationId) names to include (one per line, for filter command)")
92
93
flag.StringVar(&flags.logFile, "log-file", "", "File path to log all MCP requests and responses for debugging")
94
+
flag.BoolVar(&flags.noLogTruncation, "no-log-truncation", false, "Disable truncation of long values in human-readable MCP logs")
93
95
flag.Parse()
94
96
flags.args=flag.Args()
95
97
ifflags.extended {
@@ -197,6 +199,7 @@ Flags:
197
199
--mount /base:path/to/spec.yaml Mount an OpenAPI spec at a base path (repeatable, can be used multiple times)
198
200
--function-list-file File with list of function (operationId) names to include (one per line, for filter command)
199
201
--log-file File path to log all MCP requests and responses for debugging
202
+
--no-log-truncation Disable truncation of long values in human-readable MCP logs
200
203
--help, -h Show help
201
204
202
205
By default, output is minimal and agent-friendly. Use --extended for banners, help, and human-readable output.
0 commit comments