Most MCP servers just wrap CRUD JSON APIs into tools — I did it too with scim-mcp and garmin-mcp-app. It works, until you realize a tool call dumps 50KB+ into context.
MCP isn't dead — but we need to design MCP tools with the context window in mind.
Most MCP servers just wrap CRUD JSON APIs into tools — I did it too with scim-mcp and garmin-mcp-app. It works, until you realize a tool call dumps 50KB+ into context.
MCP isn't dead — but we need to design MCP tools with the context window in mind.
| #!/usr/bin/env python3 | |
| """ | |
| TinyAdder-1: 1-parameter hand-coded transformer for 10-digit addition. | |
| AdderBoard submission — hand-coded weights (constructive proof). | |
| Architecture: 2L decoder, d=5→16, 5h+1h, ALiBi slope=log(BASE). | |
| The single parameter is BASE (=10), the number base. | |
| All weights are deterministically derived from BASE: | |
| K_WEIGHT = BASE × (BASE² − 4) = 960 |
pthreads allows to use multiple threads when running a php script with php cli.
| Important: it only works for php cli, not in a web browser |
| The reasons for that can be found in the article recommended in Acknowledgments and resources section. |
| We are following 3 steps. |
This will take filePath as a function parameter and reads the file via fs module and get the file and converts it's size into more humanly readable format.
const fs = require('fs');
function getFileSize(filename) {
const stats = fs.statSync(filename);
//console.log('stats', stats);
const {size} = stats;
| alias babel-node='babel-node --presets stage-0' | |
| ------ RECV ------ | |
| // babel-node recv2.js "#" | |
| // babel-node recv2.js "kern.*" | |
| const amqp = require('amqplib'); | |
| const args = process.argv.slice(2); | |
| if (args.length == 0) { |
| var Promise = require('bluebird'); | |
| var funcs = Promise.resolve([500, 100, 400, 200].map((n) => makeWait(n))); | |
| funcs | |
| .each(iterator) // logs: 500, 100, 400, 200 | |
| .then(console.log) // logs: [ [Function], [Function], [Function], [Function] ] | |
| funcs | |
| .mapSeries(iterator) // logs: 500, 100, 400, 200 |
| # visit https://accounts.google.com/DisplayUnlockCaptcha and click to allow access | |
| # edit /etc/monit/monitrc to include the following | |
| set mailserver smtp.gmail.com port 587 | |
| username "whoever@gmail.com" password "whatever" | |
| using tlsv1 | |
| with timeout 30 seconds | |
| # run the following to validate access |
| /** | |
| * Module dependencies | |
| */ | |
| var express = require('express'); | |
| var fs = require('fs'); | |
| var mongoose = require('mongoose'); | |
| var Schema = mongoose.Schema; | |
| // img path |