Skip to content

Feat.args#2

Draft
ben-tonic wants to merge 4 commits intomainfrom
feat.args
Draft

Feat.args#2
ben-tonic wants to merge 4 commits intomainfrom
feat.args

Conversation

@ben-tonic
Copy link
Copy Markdown
Collaborator

@ben-tonic ben-tonic commented Mar 11, 2026

Add stdio transport mode and config parsing with Zod. Aiming to preserve existing defaults.

textual-mcp --help

Tonic Textual MCP server — PII detection and de-identification for AI assistants

Configuration is provided via environment variables:

  TONIC_TEXTUAL_API_KEY                  (required) Tonic Textual API key
  TONIC_TEXTUAL_BASE_URL                 (optional) Tonic Textual base URL [default: https://textual.tonic.ai]
  TONIC_TEXTUAL_TRANSPORT                (optional) Transport mode: http or stdio [default: http]
  PORT                                   (optional) HTTP port to listen on, ignored in stdio mode [default: 3000]
  TONIC_TEXTUAL_MAX_CONCURRENT_REQUESTS  (optional) Maximum concurrent requests to the Textual API [default: 50]
  TONIC_TEXTUAL_POLL_TIMEOUT_SECONDS     (optional) Timeout in seconds when polling for file processing completion [default: 900]
  TONIC_TEXTUAL_LOG_DIR                  (optional) Directory to write log files to [default: ./logs]

@ben-tonic
Copy link
Copy Markdown
Collaborator Author

If you guys are not opposed, I think it would be worth making a breaking change to make the default transport stdio instead of http (if not in this PR, sometime before a 1.0 release). That's the lower friction option for local deployments, which would likely be the vast majority of use here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant