Skip to content

Instantly share code, notes, and snippets.

View gregelin's full-sized avatar

Greg Elin gregelin

  • Chicago, IL
  • 01:06 (UTC -06:00)
View GitHub Profile

Troubleshooting MCP Server Launch Failures on M1 Mac (Claude Desktop Integration)

Context and Symptoms

When attempting to integrate a local MCP (Model Context Protocol) server with Anthropic’s Claude Desktop app on an M1 MacBook, users have encountered launch failures. In this scenario, the MCP server (written in Python 3.10–3.13 and run in a virtual environment) fails to start when Claude Desktop tries to connect to it. The Claude app’s logs repeatedly show an error message like:

Error: spawn uv ENOENT
@gregelin
gregelin / register_your_nickname.md
Created July 25, 2013 03:16
IRC Tip - Registering your nickname

Registering your Nickname on IRC

Summary

Register and update your nickname and related profile information by exchanging /msg's with NickServ.

Use the /msg command to keep communications with NickServ private.

Use /msg NickServ help and /msg NickServ help <command> for command syntax.

@gregelin
gregelin / ssg-rhel6-stig-ks.cfg
Created June 12, 2016 22:25
SCAP Security Guide DoD STIG profile kickstart for Red Hat Enterprise Linux 6 Server
# SCAP Security Guide DoD STIG profile kickstart for Red Hat Enterprise Linux 6 Server
# Version: 0.0.1
# Date: 2015-04-08
# Url: http://people.redhat.com/swells/ssg-rhel6-stig-ks.cfg
#
# Based on:
# http://fedoraproject.org/wiki/Anaconda/Kickstart
# https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html
# http://usgcb.nist.gov/usgcb/content/configuration/workstation-ks.cfg
#
@gregelin
gregelin / FedRAMP-SSP-OSCAL-Template.xml
Created August 16, 2023 01:00 — forked from ohsh6o/FedRAMP-SSP-OSCAL-Template.xml
FedRAMP SSP Schematron Prototyping
<?xml version="1.0" encoding="UTF-8"?>
<system-security-plan xmlns="http://csrc.nist.gov/ns/oscal/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://raw.githubusercontent.com/usnistgov/OSCAL/master/xml/schema/oscal_ssp_schema.xsd"
uuid="2fa78e07-74ef-4cd6-8124-bc0050c0c4df">
<metadata>
<title>FedRAMP System Security Plan (SSP)</title>
<published>2020-07-01T00:00:00.00-04:00</published>
<last-modified>2020-07-01T00:00:00.00-04:00</last-modified>
<version>0.0</version>
@gregelin
gregelin / django_erd_steps.md
Created December 3, 2017 12:59
Generating ERD for django projects
# Install django-extensions
# http://django-extensions.readthedocs.io/en/latest/installation_instructions.html
pip3 install django-extensions

# Add django-extensions INSTALLED_APPS in siteapp > settings.py
# INSTALLED_APPS = (
#    ...
#    'django_extensions',
# )
@gregelin
gregelin / npm_audit.sh
Created July 25, 2022 15:36
Update npm lock files
# Following command runs `npm audit fix` in order to update `package-lock.json` and `yarn.lock` files in GovReady-Q
docker exec -it frontend npm audit fix
@gregelin
gregelin / time_command_tips.md
Last active July 1, 2022 15:42
Time command on OSX, Linux

The time command on OSX has less features than gnu-time gtime on Linux.

You can install gtime on OSX with Homebrew: brew install gnu-time

Example:

> time sleep 2

real	0m2.009s
@gregelin
gregelin / multiline_text_parser.js
Last active April 29, 2022 11:01
Very simple, fragile, multi-line text parsing in javascript
// Let's parse the lines in from our textarea
var textarea = $("#mytextarea").val();
// Different browsers represent end of lines differently, so make all end of lines \n */
lines = textarea.replace(/\r\n/g, "\n").split("\n");
// Set up state variables to help track parsing across multiple lines
var line_parser_state = "listitem";
var block_content = "";
@gregelin
gregelin / ufeff_remove_bom.md
Created June 25, 2019 11:05
Remove BOM characters using vim (e.g., \ufeff)

You can easily remove them using vim, here are the steps:

  1. In your terminal, open the file using vim:

vim file_name

  1. Remove all BOM characters:

:set nobomb

@gregelin
gregelin / SCAP-CentOS-NotApplicable.md
Last active February 22, 2022 21:50
Explanation of SCAP, CentOS and tests Not Applicable

This note explains the common issue of "notapplicable" results when running openSCAP and SCAP-Security-Guide on CentOS.

SCAP seems like it should be easy because it is "just XML". Then you dig into looking for a test and it gets confusing fast. So it is good to have some background.

SCAP (Security Content Automation Protocol) is actually a set of multiple standards and specifications that are used together to enable automatically testing hundreds of nerd settings. Let me emphasize that: SCAP is not a single XML specification -- SCAP is multiple standards and specs. Whenever you give "SCAP Content" to a scanner to check a system configurations you are giving the scanner multiple XML files representing multiple standards.