Skip to content

Instantly share code, notes, and snippets.

View wayanjimmy's full-sized avatar
🏠
Working from home

Wayan jimmy wayanjimmy

🏠
Working from home
View GitHub Profile
@wayanjimmy
wayanjimmy / mcp-inspector-setup.md
Created July 30, 2026 13:56
Debugging an MCP Server with MCP Inspector — setup guide for HTTP transport, modern protocol era, and Linux keyring workaround

Debugging an MCP Server with MCP Inspector

Learned while setting up the MCP Inspector to debug a Go-based MCP server using the 2026-07-28 Streamable HTTP transport (stateless mode).

Context

  • MCP server: Go service using github.com/modelcontextprotocol/go-sdk/mcp, mounted at POST /mcp
  • Transport: Streamable HTTP (stateless, JSONResponse: true)
  • Protocol era: Modern (2026-07-28) — requires _meta.io.modelcontextprotocol/protocolVersion in every request body and Mcp-Method HTTP headers
  • Inspector version: @modelcontextprotocol/inspector@2.0.0
@wayanjimmy
wayanjimmy / AGENTS.md
Created June 22, 2026 08:14
AGENTS.md for Laras - AI agent platform project conventions

Code Quality

  • Read files in full before making wide-ranging changes, before editing files you have not already fully inspected, and when the user asks you to investigate or audit something. Do not rely only on search snippets for broad changes.
  • No any types unless absolutely necessary
  • Check node_modules for external API type definitions instead of guessing
  • NEVER use inline imports - no await import("./foo.js"), no import("pkg").Type in type positions, no dynamic imports for types. Always use standard top-level imports.
  • NEVER remove or downgrade code to fix type errors from outdated dependencies; upgrade the dependency instead
  • Always ask before removing functionality or code that appears to be intentional
  • Do not preserve backward compatibility unless the user explicitly asks for it
@wayanjimmy
wayanjimmy / pi-agent-tokenrouter-models.json
Created June 11, 2026 09:50
Pi coding agent models.json example – TokenRouter provider with Claude Fable 5, Opus 4.8, and Sonnet 4.6
{
"providers": {
"tokenrouter": {
"baseUrl": "https://api.tokenrouter.com/v1",
"apiKey": "$TOKENROUTER_API_KEY",
"api": "openai-completions",
"compat": {
"supportsDeveloperRole": false
},
"models": [
@wayanjimmy
wayanjimmy / models.json
Last active April 22, 2026 01:37
pi coding agent configuration - models, themes, packages
{
"providers": {
"cpa-ant": {
"baseUrl": "http://127.0.0.1:8317",
"apiKey": "CLI_PROXY_API_KEY",
"api": "anthropic-messages",
"models": [
{
"id": "claude-haiku-4.5",
"name": "Claude Haiku 4.5",
@wayanjimmy
wayanjimmy / config.kdl.tmpl
Created April 11, 2026 10:24
My Zellij configuration
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
keybinds {
normal {
// uncomment this and adjust key if using copy_on_select=false
// bind "Alt c" { Copy; }
}
locked {
bind "Ctrl g" { SwitchToMode "Normal"; }
}
resize {
{
"providers": {
"cpa": {
"baseUrl": "http://127.0.0.1:8317/v1",
"apiKey": "CLI_PROXY_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "step-3.5-flash",
"name": "StepFun Step 3.5 Flash (Free)",
@wayanjimmy
wayanjimmy / memos-api-documentation.md
Created February 18, 2026 01:16
Comprehensive Memos REST API Documentation - How to interact with the usememos/memos API
@wayanjimmy
wayanjimmy / dozzle.container
Created November 14, 2024 01:05
Running Dozzle with Podman Quadlet
[Container]
Image=docker.io/amir20/dozzle:v8.4.3
PublishPort=18080:8080
Volume=/run/user/1000/podman/podman.sock:/var/run/docker.sock
Environment=DOZZLE_REMOTE_AGENT=
[Service]
Restart=always
[Install]
@wayanjimmy
wayanjimmy / mutagen.yml
Created May 30, 2024 13:13
mutagen project example
forward:
tilt:
source: "tcp:localhost:10350"
destination: "ser4:tcp:localhost:10350"
pathfinder:
source: "tcp:localhost:3000"
destination: "ser4:tcp:localhost:3000"
elastic:
source: "tcp:localhost:9200"
destination: "ser4:tcp:localhost:9200"
@wayanjimmy
wayanjimmy / settings.json
Last active January 21, 2024 04:54
Vscode Settings
{
"workbench.colorTheme": "Default Light Modern",
"remote.SSH.remotePlatform": {
"ser4": "linux"
},
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"<C-p>"
],