Skip to main content
Glama

swift_package_run

Run executable targets from Swift packages using swift run. Specify package path, executable name, arguments, and build configuration to execute Swift code.

Instructions

Runs an executable target from a Swift Package with swift run

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packagePathYesPath to the Swift package root (Required)
executableNameNoName of executable to run (defaults to package name)
argumentsNoArguments to pass to the executable
configurationNoBuild configuration: 'debug' (default) or 'release'
timeoutNoTimeout in seconds (default: 30, max: 300)
backgroundNoRun in background and return immediately (default: false)
parseAsLibraryNoAdd -parse-as-library flag for @main support (default: false)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SampsonKY/XcodeBuildMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server