Skip to content

Instantly share code, notes, and snippets.

View davideuler's full-sized avatar

david l euler davideuler

  • dianping.com
  • the Earth
View GitHub Profile
@AndrewAltimit
AndrewAltimit / !README.md
Last active January 8, 2026 01:47
ComfyUI MCP Server (local image/video generation)

ComfyUI MCP Server (local image/video generation)

Warning: Requires a powerful GPU!

A containerized ComfyUI setup with MCP (Model Context Protocol) integration for AI-driven image generation workflows. Includes both standard MCP (stdio) access and HTTP API access.

Usage

See the template repository for a complete example. Also includes the model training mcp used for creating checkpoints / loras.

mcp-demo

@AndrewAltimit
AndrewAltimit / !README.md
Last active January 17, 2026 16:25
Manim MCP Integration

MCP Server Manim Integration

A complete implementation guide for integrating Manim (Mathematical Animation Engine) with MCP (Model Context Protocol) servers, enabling AI assistants to create programmatic animations and visualizations.

Example Output

Nanite System
@AndrewAltimit
AndrewAltimit / !README.md
Last active January 16, 2026 12:51
Claude Code and Gemini CLI Integration

Gemini AI Integration MCP Server

A Model Context Protocol (MCP) server that integrates Google's Gemini AI for code review, technical consultation, and AI-assisted development workflows. This server provides seamless integration with Claude Code and other MCP-compatible clients.

Usage

@lemassykoi
lemassykoi / mcp_server_agents.py
Created March 27, 2025 14:41
Provide Agents as a tool, with MCP
import os
import json
import aiohttp
import datetime
from contextlib import asynccontextmanager
from typing import AsyncIterator
from mcp.server.fastmcp import FastMCP, Context
from mcp.server import Server
from swarm import Swarm, Agent
from duckduckgo_search import DDGS
@jlia0
jlia0 / agent loop
Last active January 19, 2026 03:52
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet

Code Bash command prefix detection

This defines risk levels for actions that the ${K4} agent may take. This classification system is part of a broader safety framework and is used to determine when additional user confirmation or oversight may be needed.

Command prefix extraction examples

Examples:

  • cat foo.txt => cat
  • cd src => cd
@willccbb
willccbb / grpo_demo.py
Last active January 18, 2026 09:52
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
"""
citation:
@misc{brown2025grpodemo,
title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models},
author={Brown, William},
@sayakpaul
sayakpaul / run_flux_under_24gbs.py
Last active June 28, 2025 22:53
This gist shows how to run Flux on a 24GB 4090 card with Diffusers.
from diffusers import FluxPipeline, AutoencoderKL
from diffusers.image_processor import VaeImageProcessor
from transformers import T5EncoderModel, T5TokenizerFast, CLIPTokenizer, CLIPTextModel
import torch
import gc
def flush():
gc.collect()
torch.cuda.empty_cache()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Artefact2
Artefact2 / README.md
Last active January 16, 2026 04:26
GGUF quantizations overview