Skip to content

Instantly share code, notes, and snippets.

@ynonp
ynonp / agenda.md
Created November 9, 2025 07:45
ChatGPT Apps Webinar

Add GUI To Your MCP Server => ChatGPT Apps

  1. Create the GUI
server.registerResource(
  'joke-widget',
  templateURI,
  {},
 async () => ({
@ynonp
ynonp / agenda.md
Created October 30, 2025 09:41
mc-from-scratch

Writing MCP Server from scratch

  1. Why write our own MCP Server

    • connect AI to our own code
  2. Tech stack

    • TypeScript
    • Deno
    • Deno Deploy

Write and Deploy Public MCP Server

Hi ;) Ynon Perek We Start at 10:00

MCP Server REST API get_tools() run_tool(tool_name)

Async Agent

Ynon Perek

  1. Async Ecosystem
    • Cursor tabs
    • Claude Code (multiple working trees)
    • Jules (free)
    • Copilot (10$ => 39$)
  • Product Manager -> Issue -> Copilot -> PR
# ToCode MCP Webinar Agenda
1. What is MCP
https://modelcontextprotocol.io/docs/concepts/architecture
LLM
^
|
|
Copilot [Agent] <--> MCP
services:
server:
build:
context: .
volumes:
- db_data_sqlite:/var/lib/kutt
- custom:/kutt/custom
env_file:
- .env
environment:
@ynonp
ynonp / starter.py
Created July 27, 2023 14:02
generator-send-part1
import random
import sys
from typing import NewType
BPResult = tuple[int, int]
BPNumber = NewType('BPNumber', int)
ALL_OPTIONS = [n for n in range(1000, 99999) if len(str(n)) == len(set(str(n)))]
def guesses():
@ynonp
ynonp / 01-syntax-lab.md
Last active July 27, 2023 12:24
01-syntax

Python Syntax Exercises

  • Create a Python program that asks the user to tyep their age in years, and the program will convert and print their age in months.

  • Create a Python program that asks the user to type their age in months, and the program will convert and print their age in years.

  • Create a Python program to check the complexity of a password: It should ask the user for a word and verify the word contains a lowercase letter, an uppercase letter and a number.

  • Write a Python program that takes a number from the user and print the word "Boom" if that number divides by 7 or contains the digit 7

evenings_ok=(
"Pesach I"
"Pesach VII"
"Shavuot I"
"Tish'a B'Av"
"Rosh Hashana II"
"Yom Kippur"
"Sukkot I"
"Shmini Atzeret"
)
CREATE TABLE test (x integer, y integer);
INSERT INTO test(x, y) VALUES(10, 20);
INSERT INTO test(x, y) VALUES(10, 20);
INSERT INTO test(x, y) VALUES(10, 20);