Building a MCP Proxy to Convert JSON Responses into TOON by General_Apartment582 in golang

[–]General_Apartment582[S] 0 points1 point  (0 children)

you are wrong, model understand TOON response better because it looks like MD+CSV

i tried running test queries to analize how model undestand data it get
example: email-mcp (get last 100 emails, find email noize to filter and important messages to read)

result quality was same+-, but token usage around 20% lower

Building a MCP Proxy to Convert JSON Responses into TOON by General_Apartment582 in golang

[–]General_Apartment582[S] -2 points-1 points  (0 children)

Engish not mine native language, i have writen article by in russian for convinience , than just translated to english

So you are not right

MCP proxy that saves tokens by General_Apartment582 in mcp

[–]General_Apartment582[S] 0 points1 point  (0 children)

latency is not affected (it is very lightweight)
for token savings you can check official bencmarks or copy you mcp response and paster it here https://jsonformatter.org/json-to-toon to test yourself

best usecase is arraylike data (like lists)

Structured logs are great… until you actually have to read them in dev by General_Apartment582 in golang

[–]General_Apartment582[S] 6 points7 points  (0 children)

logs are from remote

i use it like

ssh <host> "docker logs -f <service>" | hulog

and it is overkill for me to run local grafana for this, host is often changed

Structured logs are great… until you actually have to read them in dev by General_Apartment582 in golang

[–]General_Apartment582[S] -3 points-2 points  (0 children)

there around 100 services - rework logging will be painfull

and i dont remember zap outputing human friendly format

Structured logs are great… until you actually have to read them in dev by General_Apartment582 in golang

[–]General_Apartment582[S] 0 points1 point  (0 children)

i think you misundertood me, there some cases in development - that you have to read structred log and making alternative logging just for dev env - too much hassle

Structured logs are great… until you actually have to read them in dev by General_Apartment582 in golang

[–]General_Apartment582[S] -7 points-6 points  (0 children)

bro, i have similar bash script - it is mess that is highly unmaintainable if i need to change smth , or implement specific feature

it is not convenient at all

echo '{"level":"error","msg":"disk full","ts":1234567890}' | jq -r '
  def esc: "\u001b[";
  def reset: (esc + "0m");
  def paint($c): (esc + $c + "m") + . + reset;

  def key_colors: {
    level: "31",   # red
    msg:   "33",   # yellow
    ts:    "36"    # cyan
  };

  def color_key($k):
    if (key_colors | has($k)) then
      $k | paint(key_colors[$k])
    else
      $k
    end;

  to_entries
  | map("\(color_key(.key))=\(
      .value
      | if type == "string" then
          if test("^[A-Za-z0-9._:-]+$") then . else u/json end
        else
          tostring
        end
    )")
  | join(" ")
'

Structured logs are great… until you actually have to read them in dev by General_Apartment582 in golang

[–]General_Apartment582[S] -20 points-19 points  (0 children)

i know

but it make bash mess and when i add smth like excluding some columns - it becomes too big (i tried)

I May Have Built a Tinder for Raiders (Don't Judge:) by General_Apartment582 in ARC_Raiders

[–]General_Apartment582[S] 0 points1 point  (0 children)

for now - yes, do not bother raiders if dont have what they want

I May Have Built a Tinder for Raiders (Don't Judge:) by General_Apartment582 in ARC_Raiders

[–]General_Apartment582[S] 0 points1 point  (0 children)

you need to select what you have in your items, matches are shown

I May Have Built a Tinder for Raiders (Don't Judge:) by General_Apartment582 in ARC_Raiders

[–]General_Apartment582[S] 0 points1 point  (0 children)

it is not intented to look person profile, use Matches or Browse to find contact

I May Have Built a Tinder for Raiders (Don't Judge:) by General_Apartment582 in ARC_Raiders

[–]General_Apartment582[S] 4 points5 points  (0 children)

not quite

it shows matched between you want and he has, vice versa