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.
| (function ($) { | |
| 'use strict'; | |
| var requestHeaders = { | |
| 'X-RequestDigest': $("#__REQUESTDIGEST").val(), | |
| "accept": "application/json; odata=nometadata", | |
| "content-type": "application/json;odata=nometadata" | |
| }; | |
| var userData = { |
I'm not suggesting drastic action. I don't want to break backwards compatibility. I simply want to make the class feature more usable to a broader cross section of the community. I believe there is some low-hanging fruit that can be harvested to that end.
Imagine AutoMaker contained class Car, but the author wants to take advantage of prototypes to enable factory polymorphism in order to dynamically swap out implementation.
Stampit does something similar to this in order to supply information needed to inherit from composable factory functions, known as stamps.
This isn't the only way to achieve this, but it is a convenient way which is compatible with .call(), .apply(), and .bind().
| (function() { | |
| var nsName = "LS"; // root namespace name | |
| var ns = window[nsName]; // root namespace alias | |
| var utils = ns.Utils; // utils alias | |
| ns.SP = ns.SP || {}; | |
| ns.SP.JSOM = { | |
| Data: { | |
| Sites: {} // cache for Taxonomy terms JSON | |
| }, |
| <!doctype html> | |
| <html ng-app="Demo"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title> | |
| Using The $http Service In AngularJS To Make AJAX Requests | |
| </title> | |
| <style type="text/css"> |
| wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
| # --no-check-cerftificate was necessary for me to have wget not puke about https | |
| curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |
| // early experiments with node had mysterious double requests | |
| // turned out these were for the stoopid favicon | |
| // here's how to short-circuit those requests | |
| // and stop seeing 404 errors in your client console | |
| var http = require('http'); | |
| http.createServer(function (q, r) { | |
| // control for favicon |