postwoman

mcp
Security Audit
Fail
Health Pass
  • License รขโ‚ฌโ€ License: MIT
  • Description รขโ‚ฌโ€ Repository has a description
  • Active repo รขโ‚ฌโ€ Last push 0 days ago
  • Community trust รขโ‚ฌโ€ 34 GitHub stars
Code Fail
  • rm -rf รขโ‚ฌโ€ Recursive force deletion command in .github/workflows/release.yml
  • rm -rf รขโ‚ฌโ€ Recursive force deletion command in scripts/generate-app-icon.sh
  • rm -rf รขโ‚ฌโ€ Recursive force deletion command in scripts/make-dmg.sh
  • rm -rf รขโ‚ฌโ€ Recursive force deletion command in scripts/package-release.sh
  • rm -rf รขโ‚ฌโ€ Recursive force deletion command in scripts/package-thin-release.sh
Permissions Pass
  • Permissions รขโ‚ฌโ€ No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

PostWoman ๐Ÿ’… is a native macOS REST API client built with SwiftUI: collections, environments with {{variables}}, streamed responses, code generation (cURL, Swift, Python), plus an MCP server and CLI for agents.

README.md

PostWoman

A native macOS REST API client built with SwiftUI and SwiftData. A lightweight Postman alternative designed specifically for macOS.

macOS
Swift
SwiftUI
License

Features

Core Functionality

  • REST API Testing - Support for GET, POST, PUT, DELETE methods
  • Folder Organization - Organize requests into nested collections
  • Request Editor - Configure URL, headers, query parameters, body, and authentication
  • Response Viewer - View response status, headers, and formatted JSON body

Authentication

  • Bearer Token - JWT and OAuth token support
  • Basic Auth - Username/password with Base64 encoding
  • OAuth 2.0 - Configuration structure (implementation in progress)

Code Generation

Export requests as code in multiple languages:

  • cURL - Command-line ready
  • Swift - URLSession implementation
  • Python - requests library

Request History

  • Automatic logging of all requests
  • View past requests grouped by date
  • Restore requests from history

Remote Agent (MCP)

  • An optional Model Context Protocol server, so agents such as Claude Code can create, update and delete collections, requests and history, and send requests
  • Off by default. Turn it on in Settings โ†’ Remote Agent, press Apply, then use Copy Client Setup and the access token on the same page:
claude mcp add --transport http postwoman http://127.0.0.1:7778/mcp \
  --header "Authorization: Bearer pwm_โ€ฆ"

Command line

  • postwoman drives the running app through the same MCP server, from your shell or scripts. It ships inside the app; link it onto your PATH once (or use Copy Client Setup โ†’ Command-line tool in Settings):
/Applications/PostWoman.app/Contents/Helpers/postwoman cli install-link   # โ†’ ~/.local/bin/postwoman
postwoman collection list
postwoman request create --collection ID --name "Get user" --url https://api.example.com/users/1
postwoman request execute --id ID --include          # body on stdout, status and timing on stderr
postwoman request execute -X POST --url https://httpbin.org/post -H "Accept: application/json" -d '{"a":1}'
postwoman history list --limit 10
postwoman help                                       # every command; add --json for machine-readable output
  • It finds the agent token and endpoint from the app itself; override with --server / --agent-token or POSTWOMAN_URL / POSTWOMAN_TOKEN. Exit statuses are stable (for example 3 for a refused token, 4 for not found, 7 when the app isn't reachable, 22 for --fail on a 4xx/5xx response).

Installation

Download (Recommended)

Download the latest DMG installer from the Releases page:

  1. Download PostWoman-X.Y.Z.dmg (Universal), or the -apple-silicon / -intel variant
  2. Open the DMG file
  3. Drag PostWoman to your Applications folder
  4. Eject the DMG and launch PostWoman from Applications

Build from Source

Requirements

  • macOS 14.0 (Sonoma) or later
  • Xcode 26 / Swift 6.2 toolchain (the app builds with Swift Package Manager)

Steps

  1. Clone the repository:

    git clone https://github.com/bearstouch/postwoman.git
    cd postwoman
    
  2. Build and run:

    swift run PostWoman            # unbundled, uses its own dev store
    scripts/run-app.sh             # sandboxed .build/PostWoman.app (com.bearstouch.postwoman.dev)
    

    Or open Package.swift in Xcode (or the folder in VS Code with the Swift extension) and run the PostWoman scheme.

  3. Test and lint:

    swift test
    swift format lint --strict -r Sources Tests
    

Build DMG Installers

scripts/package-release.sh       # Universal 2 DMG in dist/ (+ dist/release-evidence.json)
scripts/package-thin-release.sh  # Apple silicon and Intel DMGs from the Universal app

Builds are ad-hoc signed unless POSTWOMAN_SIGN_IDENTITY (Developer ID) is set; set
POSTWOMAN_NOTARY_PROFILE (a notarytool keychain profile) to notarize and staple.
The version comes from release/manifest.json.

Usage

Creating a Request

  1. Click the + button in the sidebar
  2. Select "New Request" or "New Folder"
  3. Enter the URL and select HTTP method
  4. Configure headers, parameters, body as needed
  5. Press Cmd+Return or click "Send"

Keyboard Shortcuts

Action Shortcut
New Request Cmd+N
New Folder Shift+Cmd+N
Send Request Cmd+Return
Save Request Cmd+S
Duplicate Request Cmd+D
Generate Code Shift+Cmd+G

Project Structure

Package.swift               # SwiftPM manifest (executable + tests)
Sources/PostWoman/
โ”œโ”€โ”€ App/                    # App entry point and main views
โ”œโ”€โ”€ Models/                 # SwiftData models
โ”œโ”€โ”€ Views/
โ”‚   โ”œโ”€โ”€ Sidebar/           # Collection tree and history
โ”‚   โ”œโ”€โ”€ RequestEditor/     # URL bar and request tabs
โ”‚   โ”œโ”€โ”€ ResponseViewer/    # Response display
โ”‚   โ”œโ”€โ”€ CodeGeneration/    # Code export
โ”‚   โ””โ”€โ”€ Settings/          # General, Appearance, Remote Agent
โ”œโ”€โ”€ RemoteAgent/           # MCP server: HTTP listener, endpoint, tools
Sources/PostWomanCLI/       # the postwoman command (MCP client); PostWomanCLIMain is its entry point
โ”œโ”€โ”€ Services/
โ”‚   โ”œโ”€โ”€ HTTPClient.swift   # Networking
โ”‚   โ”œโ”€โ”€ AuthenticationHandler.swift
โ”‚   โ””โ”€โ”€ CodeGenerator/     # cURL, Swift, Python generators
โ””โ”€โ”€ Utilities/             # JSON formatting, helpers
Tests/PostWomanTests/       # XCTest suite
release/                    # manifest.json (version, bundle id) and entitlements
scripts/                    # app bundle, DMG and release packaging
Design/                     # app icon and DMG background sources

Tech Stack

  • UI Framework: SwiftUI
  • Data Persistence: SwiftData
  • Networking: URLSession with async/await
  • Build: Swift Package Manager, Swift 6 language mode
  • Target Platform: macOS 14+

Contributing

We welcome contributions! Please see our Contributing Guide for details on:

  • Setting up your development environment
  • Our coding standards and conventions
  • The pull request process

Quick Start for Contributors

# Fork and clone
git clone https://github.com/YOUR_USERNAME/postwoman.git
cd postwoman

# Create a feature branch
git checkout -b feature/your-feature

# Make changes, then submit a PR

Good First Issues

Check out issues labeled good first issue for beginner-friendly tasks.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Inspired by Postman
  • Built with SwiftUI and SwiftData

Reviews (0)

No results found