Skip to main content
Glama
FradSer

mcp-server-osascript

by FradSer

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
execute_osascriptA
    Execute or analyze scripts using osascript with comprehensive functionality and automatic permission handling.

    This unified tool handles both AppleScript/JavaScript execution and security analysis with full osascript
    capabilities including shell script execution and intelligent TCC permission management.

    Security Profiles:
    - "strict": Maximum security, blocks potentially dangerous operations
    - "balanced": Recommended default, warns about risks but allows execution
    - "permissive": Minimal restrictions, full functionality with audit logging

    Features:
    - Complete osascript support for AppleScript and JavaScript
    - Shell script execution via "do shell script"
    - Automatic TCC permission dialog handling
    - Intelligent error recovery and user guidance
    - Security risk assessment and warnings
    - Comprehensive execution logging
    - Dry-run mode for analysis without execution

    Args:
        script: The script code to execute or analyze (AppleScript or JavaScript for osascript)
        execution_timeout: Maximum execution time in seconds (default: 30, ignored in dry_run)
        security_profile: Security mode ("strict", "balanced", "permissive")
        enable_auto_permissions: Automatically handle macOS permission dialogs (default: True)
        dry_run: If True, only analyze security without executing (default: False)

    Returns:
        Standardized response with execution results, security analysis, and guidance
    
get_security_profilesA
    Get information about all available security profiles.

    Returns detailed information about each security profile including their
    patterns, risk levels, and usage recommendations.

    Returns:
        Dictionary with security profile information and current configuration
    
set_security_profileA
    Set the default security profile for script execution.

    This sets the default security profile that will be used when no explicit
    profile is specified in execute_applescript calls.

    Args:
        security_profile: Security profile to set as default ("strict", "balanced", "permissive")

    Returns:
        Confirmation of the configuration change
    

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/FradSer/mcp-server-osascript'

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