github-mcp 0.1.0

GitHub v3 REST API MCP server, generated by mcpify.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// GitHub v3 REST API MCP server — generated by mcpify. Do not hand-edit.

use std::io::IsTerminal;

/// Pretty-printed to an interactive TTY, structured JSON otherwise
/// (containers/CI) — mirrors `targets::typescript`'s `log-transport.ts`
/// TTY-detection logic. Checks stderr, not stdout: that's where logs are
/// actually written (see `logger::init_logging`), since stdout is reserved
/// for the MCP stdio transport's JSON-RPC frames.
pub fn use_pretty_output() -> bool {
    std::io::stderr().is_terminal()
}