@houtini/lm
Advanced tools
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| /** | ||
| * The single source of truth for the server version. | ||
| * | ||
| * Read from package.json at runtime rather than hardcoded, so the MCP handshake | ||
| * can never drift from the published version. | ||
| */ | ||
| export declare const SERVER_VERSION: string; |
| import { readFileSync } from 'node:fs'; | ||
| /** | ||
| * The single source of truth for the server version. | ||
| * | ||
| * Read from package.json at runtime rather than hardcoded, so the MCP handshake | ||
| * can never drift from the published version. | ||
| */ | ||
| export const SERVER_VERSION = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version; | ||
| //# sourceMappingURL=version.js.map |
| {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAW,IAAI,CAAC,KAAK,CAC9C,YAAY,CAAC,IAAI,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAClE,CAAC,OAAO,CAAC"} |
@@ -19,5 +19,11 @@ /** | ||
| * pin a dead holder's lock forever. | ||
| * - A read failure is classified, not collapsed to "no lock". A GARBLED file (empty or | ||
| * non-JSON, e.g. a holder died between create and write) carries no token, so | ||
| * token-checked removal can never clear it and it is removed outright. A file we simply | ||
| * cannot READ (EACCES/EBUSY/EIO) is not evidence of a dead holder and never authorises | ||
| * a steal. | ||
| * - FAIL-OPEN: any fs error, or waiting past the cap, proceeds WITHOUT the lock | ||
| * rather than hanging a tool call. Serialisation is a throughput optimisation, | ||
| * never a correctness dependency. | ||
| * never a correctness dependency. The deadline is enforced on the steal path too — | ||
| * every path out of the acquire loop is bounded. | ||
| * | ||
@@ -24,0 +30,0 @@ * Residual: if a holder is hard-killed and several waiters race to steal in the |
@@ -19,5 +19,11 @@ /** | ||
| * pin a dead holder's lock forever. | ||
| * - A read failure is classified, not collapsed to "no lock". A GARBLED file (empty or | ||
| * non-JSON, e.g. a holder died between create and write) carries no token, so | ||
| * token-checked removal can never clear it and it is removed outright. A file we simply | ||
| * cannot READ (EACCES/EBUSY/EIO) is not evidence of a dead holder and never authorises | ||
| * a steal. | ||
| * - FAIL-OPEN: any fs error, or waiting past the cap, proceeds WITHOUT the lock | ||
| * rather than hanging a tool call. Serialisation is a throughput optimisation, | ||
| * never a correctness dependency. | ||
| * never a correctness dependency. The deadline is enforced on the steal path too — | ||
| * every path out of the acquire loop is bounded. | ||
| * | ||
@@ -43,2 +49,9 @@ * Residual: if a holder is hard-killed and several waiters race to steal in the | ||
| // Default cap on how long we'll wait before giving up and proceeding unlocked. | ||
| // | ||
| // This is DELIBERATELY below STALE_MS, and that is not a bug. shouldSteal() ages out a | ||
| // lock on `Date.now() - info.at`, i.e. the age of the LOCK, not how long the current | ||
| // caller has waited — so a caller arriving at an already-stale lock steals it on its | ||
| // first iteration and never consults this cap. Raising it above STALE_MS would only make | ||
| // callers block longer before failing open, which is the wrong direction for a module | ||
| // whose contract is that serialisation is never a correctness dependency. | ||
| const DEFAULT_MAX_WAIT_MS = 6 * 60_000; | ||
@@ -58,10 +71,28 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); | ||
| }); | ||
| function readLock() { | ||
| function readLockDetailed() { | ||
| let raw; | ||
| try { | ||
| return JSON.parse(readFileSync(LOCK_PATH, 'utf8')); | ||
| raw = readFileSync(LOCK_PATH, 'utf8'); | ||
| } | ||
| catch (e) { | ||
| return e.code === 'ENOENT' | ||
| ? { state: 'missing' } | ||
| : { state: 'unreadable' }; | ||
| } | ||
| try { | ||
| const info = JSON.parse(raw); | ||
| // A JSON scalar (`null`, `7`, `"x"`) parses fine but is not a lock record. | ||
| if (!info || typeof info !== 'object') | ||
| return { state: 'garbled' }; | ||
| return { state: 'ok', info }; | ||
| } | ||
| catch { | ||
| return null; // missing or garbled | ||
| return { state: 'garbled' }; | ||
| } | ||
| } | ||
| /** Convenience wrapper for the read-only callers that only care about a valid record. */ | ||
| function readLock() { | ||
| const r = readLockDetailed(); | ||
| return r.state === 'ok' ? r.info : null; | ||
| } | ||
| /** Should the given on-disk lock be stolen? Age first (covers PID reuse and | ||
@@ -98,2 +129,16 @@ * wedged holders), then same-host dead-PID. */ | ||
| /** | ||
| * Remove a lock file that carries no usable token. Unconditional by necessity: there is | ||
| * nothing to compare against, so `stealIfUnchanged` can never remove it. Without this the | ||
| * acquire loop retries forever against a file it will not delete. | ||
| * | ||
| * The unconditional unlink is safe precisely because it is gated on `garbled` rather than | ||
| * on any read failure — a lock we merely cannot read is left alone. | ||
| */ | ||
| function removeGarbledLock() { | ||
| try { | ||
| unlinkSync(LOCK_PATH); | ||
| } | ||
| catch { /* another waiter beat us to it */ } | ||
| } | ||
| /** | ||
| * Acquire the cross-process inference lock. Returns a release function (safe to | ||
@@ -119,3 +164,20 @@ * call more than once; only unlinks if we still own the file). `onWait` is | ||
| const fd = openSync(LOCK_PATH, 'wx'); // atomic: EEXIST if already held | ||
| writeSync(fd, JSON.stringify({ pid: process.pid, host: HOST, at: Date.now(), token })); | ||
| // Once the file exists we own the cleanup obligation. A throw from writeSync would | ||
| // otherwise leak the descriptor AND strand a zero-byte lock that no release and no | ||
| // exit handler can remove (myToken is not yet set) — which is exactly the garbled | ||
| // file that used to wedge every other process's acquire loop. | ||
| try { | ||
| writeSync(fd, JSON.stringify({ pid: process.pid, host: HOST, at: Date.now(), token })); | ||
| } | ||
| catch (writeErr) { | ||
| try { | ||
| closeSync(fd); | ||
| } | ||
| catch { /* ignore */ } | ||
| try { | ||
| unlinkSync(LOCK_PATH); | ||
| } | ||
| catch { /* ignore */ } | ||
| throw writeErr; | ||
| } | ||
| closeSync(fd); | ||
@@ -144,5 +206,19 @@ myToken = token; | ||
| } | ||
| const info = readLock(); | ||
| if (shouldSteal(info)) { | ||
| stealIfUnchanged(info?.token); | ||
| const read = readLockDetailed(); | ||
| // An unreadable file is not evidence of a dead holder, so it must not authorise a | ||
| // steal. Treat it as held and fall through to the wait/fail-open path. | ||
| const stealable = read.state === 'garbled' || | ||
| read.state === 'missing' || | ||
| (read.state === 'ok' && shouldSteal(read.info)); | ||
| if (stealable) { | ||
| if (read.state === 'garbled') | ||
| removeGarbledLock(); | ||
| else if (read.state === 'ok') | ||
| stealIfUnchanged(read.info.token); | ||
| // Bound the steal path too. It previously `continue`d straight past both the | ||
| // deadline check and the sleep, so any condition that kept re-presenting a | ||
| // stealable lock span a core forever and never failed open. | ||
| if (Date.now() - start > maxWaitMs) { | ||
| return () => { }; | ||
| } | ||
| continue; // retry acquire immediately | ||
@@ -149,0 +225,0 @@ } |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"inference-lock.js","sourceRoot":"","sources":["../src/inference-lock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC9F,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,aAAa,CAAC,CAAC;AAChD,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;AACnD,MAAM,IAAI,GAAG,QAAQ,EAAE,CAAC;AAExB,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,6BAA6B,KAAK,GAAG,CAAC;AAClE,MAAM,OAAO,GAAG,GAAG,CAAC;AACpB,+EAA+E;AAC/E,4EAA4E;AAC5E,MAAM,QAAQ,GAAG,CAAC,GAAG,MAAM,CAAC;AAC5B,+EAA+E;AAC/E,MAAM,mB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CAAC;YAC7E,IAAI,MAAM,IAAI,MAAM,GAAG,QAAQ,IAAI,IAAI,EAAE,CAAC;gBAAC,QAAQ,GAAG,MAAM,CAAC;gBAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAAC,CAAC;YAC/E,MAAM,KAAK,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;AACH,CAAC"} |
+198
-17
@@ -1,21 +0,202 @@ | ||
| MIT License | ||
| Copyright (c) 2024 Richard Baxter | ||
| Apache License | ||
| Version 2.0, January 2004 | ||
| http://www.apache.org/licenses/ | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| 1. Definitions. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. | ||
| "License" shall mean the terms and conditions for use, reproduction, | ||
| and distribution as defined by Sections 1 through 9 of this document. | ||
| "Licensor" shall mean the copyright owner or entity authorized by | ||
| the copyright owner that is granting the License. | ||
| "Legal Entity" shall mean the union of the acting entity and all | ||
| other entities that control, are controlled by, or are under common | ||
| control with that entity. For the purposes of this definition, | ||
| "control" means (i) the power, direct or indirect, to cause the | ||
| direction or management of such entity, whether by contract or | ||
| otherwise, or (ii) ownership of fifty percent (50%) or more of the | ||
| outstanding shares, or (iii) beneficial ownership of such entity. | ||
| "You" (or "Your") shall mean an individual or Legal Entity | ||
| exercising permissions granted by this License. | ||
| "Source" form shall mean the preferred form for making modifications, | ||
| including but not limited to software source code, documentation | ||
| source, and configuration files. | ||
| "Object" form shall mean any form resulting from mechanical | ||
| transformation or translation of a Source form, including but | ||
| not limited to compiled object code, generated documentation, | ||
| and conversions to other media types. | ||
| "Work" shall mean the work of authorship, whether in Source or | ||
| Object form, made available under the License, as indicated by a | ||
| copyright notice that is included in or attached to the work | ||
| (an example is provided in the Appendix below). | ||
| "Derivative Works" shall mean any work, whether in Source or Object | ||
| form, that is based on (or derived from) the Work and for which the | ||
| editorial revisions, annotations, elaborations, or other modifications | ||
| represent, as a whole, an original work of authorship. For the purposes | ||
| of this License, Derivative Works shall not include works that remain | ||
| separable from, or merely link (or bind by name) to the interfaces of, | ||
| the Work and Derivative Works thereof. | ||
| "Contribution" shall mean any work of authorship, including | ||
| the original version of the Work and any modifications or additions | ||
| to that Work or Derivative Works thereof, that is intentionally | ||
| submitted to Licensor for inclusion in the Work by the copyright owner | ||
| or by an individual or Legal Entity authorized to submit on behalf of | ||
| the copyright owner. For the purposes of this definition, "submitted" | ||
| means any form of electronic, verbal, or written communication sent | ||
| to the Licensor or its representatives, including but not limited to | ||
| communication on electronic mailing lists, source code control systems, | ||
| and issue tracking systems that are managed by, or on behalf of, the | ||
| Licensor for the purpose of discussing and improving the Work, but | ||
| excluding communication that is conspicuously marked or otherwise | ||
| designated in writing by the copyright owner as "Not a Contribution." | ||
| "Contributor" shall mean Licensor and any individual or Legal Entity | ||
| on behalf of whom a Contribution has been received by Licensor and | ||
| subsequently incorporated within the Work. | ||
| 2. Grant of Copyright License. Subject to the terms and conditions of | ||
| this License, each Contributor hereby grants to You a perpetual, | ||
| worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||
| copyright license to reproduce, prepare Derivative Works of, | ||
| publicly display, publicly perform, sublicense, and distribute the | ||
| Work and such Derivative Works in Source or Object form. | ||
| 3. Grant of Patent License. Subject to the terms and conditions of | ||
| this License, each Contributor hereby grants to You a perpetual, | ||
| worldwide, non-exclusive, no-charge, royalty-free, irrevocable | ||
| (except as stated in this section) patent license to make, have made, | ||
| use, offer to sell, sell, import, and otherwise transfer the Work, | ||
| where such license applies only to those patent claims licensable | ||
| by such Contributor that are necessarily infringed by their | ||
| Contribution(s) alone or by combination of their Contribution(s) | ||
| with the Work to which such Contribution(s) was submitted. If You | ||
| institute patent litigation against any entity (including a | ||
| cross-claim or counterclaim in a lawsuit) alleging that the Work | ||
| or a Contribution incorporated within the Work constitutes direct | ||
| or contributory patent infringement, then any patent licenses | ||
| granted to You under this License for that Work shall terminate | ||
| as of the date such litigation is filed. | ||
| 4. Redistribution. You may reproduce and distribute copies of the | ||
| Work or Derivative Works thereof in any medium, with or without | ||
| modifications, and in Source or Object form, provided that You | ||
| meet the following conditions: | ||
| (a) You must give any other recipients of the Work or | ||
| Derivative Works a copy of this License; and | ||
| (b) You must cause any modified files to carry prominent notices | ||
| stating that You changed the files; and | ||
| (c) You must retain, in the Source form of any Derivative Works | ||
| that You distribute, all copyright, patent, trademark, and | ||
| attribution notices from the Source form of the Work, | ||
| excluding those notices that do not pertain to any part of | ||
| the Derivative Works; and | ||
| (d) If the Work includes a "NOTICE" text file as part of its | ||
| distribution, then any Derivative Works that You distribute must | ||
| include a readable copy of the attribution notices contained | ||
| within such NOTICE file, excluding those notices that do not | ||
| pertain to any part of the Derivative Works, in at least one | ||
| of the following places: within a NOTICE text file distributed | ||
| as part of the Derivative Works; within the Source form or | ||
| documentation, if provided along with the Derivative Works; or, | ||
| within a display generated by the Derivative Works, if and | ||
| wherever such third-party notices normally appear. The contents | ||
| of the NOTICE file are for informational purposes only and | ||
| do not modify the License. You may add Your own attribution | ||
| notices within Derivative Works that You distribute, alongside | ||
| or as an addendum to the NOTICE text from the Work, provided | ||
| that such additional attribution notices cannot be construed | ||
| as modifying the License. | ||
| You may add Your own copyright statement to Your modifications and | ||
| may provide additional or different license terms and conditions | ||
| for use, reproduction, or distribution of Your modifications, or | ||
| for any such Derivative Works as a whole, provided Your use, | ||
| reproduction, and distribution of the Work otherwise complies with | ||
| the conditions stated in this License. | ||
| 5. Submission of Contributions. Unless You explicitly state otherwise, | ||
| any Contribution intentionally submitted for inclusion in the Work | ||
| by You to the Licensor shall be under the terms and conditions of | ||
| this License, without any additional terms or conditions. | ||
| Notwithstanding the above, nothing herein shall supersede or modify | ||
| the terms of any separate license agreement you may have executed | ||
| with Licensor regarding such Contributions. | ||
| 6. Trademarks. This License does not grant permission to use the trade | ||
| names, trademarks, service marks, or product names of the Licensor, | ||
| except as required for reasonable and customary use in describing the | ||
| origin of the Work and reproducing the content of the NOTICE file. | ||
| 7. Disclaimer of Warranty. Unless required by applicable law or | ||
| agreed to in writing, Licensor provides the Work (and each | ||
| Contributor provides its Contributions) on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
| implied, including, without limitation, any warranties or conditions | ||
| of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A | ||
| PARTICULAR PURPOSE. You are solely responsible for determining the | ||
| appropriateness of using or redistributing the Work and assume any | ||
| risks associated with Your exercise of permissions under this License. | ||
| 8. Limitation of Liability. In no event and under no legal theory, | ||
| whether in tort (including negligence), contract, or otherwise, | ||
| unless required by applicable law (such as deliberate and grossly | ||
| negligent acts) or agreed to in writing, shall any Contributor be | ||
| liable to You for damages, including any direct, indirect, special, | ||
| incidental, or consequential damages of any character arising as a | ||
| result of this License or out of the use or inability to use the | ||
| Work (including but not limited to damages for loss of goodwill, | ||
| work stoppage, computer failure or malfunction, or any and all | ||
| other commercial damages or losses), even if such Contributor | ||
| has been advised of the possibility of such damages. | ||
| 9. Accepting Warranty or Additional Liability. While redistributing | ||
| the Work or Derivative Works thereof, You may choose to offer, | ||
| and charge a fee for, acceptance of support, warranty, indemnity, | ||
| or other liability obligations and/or rights consistent with this | ||
| License. However, in accepting such obligations, You may act only | ||
| on Your own behalf and on Your sole responsibility, not on behalf | ||
| of any other Contributor, and only if You agree to indemnify, | ||
| defend, and hold each Contributor harmless for any liability | ||
| incurred by, or claims asserted against, such Contributor by reason | ||
| of your accepting any such warranty or additional liability. | ||
| END OF TERMS AND CONDITIONS | ||
| APPENDIX: How to apply the Apache License to your work. | ||
| To apply the Apache License to your work, attach the following | ||
| boilerplate notice, with the fields enclosed by brackets "[]" | ||
| replaced with your own identifying information. (Don't include | ||
| the brackets!) The text should be enclosed in the appropriate | ||
| comment syntax for the file format. We also recommend that a | ||
| file or class name and description of purpose be included on the | ||
| same "printed page" as the copyright notice for easier | ||
| identification within third-party archives. | ||
| Copyright 2024 Richard Baxter | ||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. |
+8
-5
| { | ||
| "name": "@houtini/lm", | ||
| "version": "3.2.3", | ||
| "version": "3.2.4", | ||
| "type": "module", | ||
@@ -12,7 +12,8 @@ "description": "MCP server for local LLMs — connects to LM Studio or any OpenAI-compatible endpoint", | ||
| "scripts": { | ||
| "test:vllm": "node test-vllm-thinking.mjs", | ||
| "test:overflow": "node test-context-overflow.mjs", | ||
| "build": "tsc && node add-shebang.mjs", | ||
| "test:vllm": "node scripts/test-vllm-thinking.mjs", | ||
| "test:overflow": "node scripts/test-context-overflow.mjs", | ||
| "test:lock": "node scripts/verify-inference-lock.mjs", | ||
| "build": "tsc && node scripts/add-shebang.mjs", | ||
| "dev": "tsc --watch", | ||
| "shakedown": "node shakedown.mjs", | ||
| "shakedown": "node scripts/shakedown.mjs", | ||
| "prepublishOnly": "npm run build" | ||
@@ -62,2 +63,4 @@ }, | ||
| "dist/**/*", | ||
| "assets/logo.png", | ||
| "assets/icon.png", | ||
| "server.json", | ||
@@ -64,0 +67,0 @@ "README.md", |
+25
-4
@@ -0,1 +1,5 @@ | ||
| <div align="center"> | ||
| <img src="https://raw.githubusercontent.com/houtini-ai/houtini-lm/main/assets/logo.png" width="120" height="120" alt="Houtini LM" /> | ||
| </div> | ||
| # @houtini/lm Houtini LM - Save Tokens by Offloading Tasks from Claude Code to Your Local LLM Server (LM Studio / Ollama), Openrouter or a Cloud API | ||
@@ -6,2 +10,3 @@ | ||
| [](https://opensource.org/licenses/Apache-2.0) | ||
| [](https://snyk.io/test/github/houtini-ai/houtini-lm) | ||
@@ -24,2 +29,18 @@ <p align="center"> | ||
| ## The manual | ||
| This README is the overview. The depth lives in focused pages: | ||
| | Page | What's in it | | ||
| |---|---| | ||
| | [Getting started](./docs/GETTING-STARTED.md) | Local models from zero: LM Studio or Docker, what small models are good at, which fit your VRAM | | ||
| | [The tools, in depth](./manual/tools.md) | All eight tools: the parameters that matter, reading the footer, the max_tokens floor | | ||
| | [The craft of delegation](./manual/delegation.md) | What to hand off and how to brief it - the verbatim-echo pattern, micro-chunking, reasoning-model budgets | | ||
| | [Troubleshooting](./manual/troubleshooting.md) | Symptom → cause → fix: empty responses, timeouts, context-length 400s, queuing | | ||
| | [LM Studio setup](./docs/SETUP-LMSTUDIO.md) · [Ollama setup](./docs/SETUP-OLLAMA.md) · [vLLM setup](./docs/SETUP-VLLM.md) | Backend guides, each with the traps that cause silent failures | | ||
| | [vLLM backend notes](./docs/VLLM-BACKEND.md) | The deeper operational record: router topology, thinking toggles, token budgets | | ||
| | [CLI mode](./docs/CLI-MODE.md) | Running houtini-lm as a command, not just an MCP server | | ||
| | [Shakedown test](./docs/SHAKEDOWN.md) | The canonical end-to-end check - `npm run shakedown`, or paste the prompt into Claude and watch all eight tools run | | ||
| | [Developer guide](./DEVELOPER.md) | Architecture, contributing, release process | | ||
| ## How it works | ||
@@ -48,3 +69,3 @@ | ||
| > Setting up a specific backend? Step-by-step guides, each with the traps that cause silent failures: | ||
| > **[LM Studio](./docs/SETUP-LMSTUDIO.md)** (easiest, desktop) · **[vLLM](./docs/SETUP-VLLM.md)** (throughput, tool-calling, long context). | ||
| > **[LM Studio](./docs/SETUP-LMSTUDIO.md)** (easiest, desktop) · **[Ollama](./docs/SETUP-OLLAMA.md)** (two commands, CLI) · **[vLLM](./docs/SETUP-VLLM.md)** (throughput, tool-calling, long context). | ||
@@ -373,3 +394,3 @@ ### Claude Code | ||
| This runs [`shakedown.mjs`](./shakedown.mjs) — an end-to-end test that exercises seven of the eight tools (`discover` → `list_models` → `chat` → `custom_prompt` → `code_task` → `code_task_files` → `embed`; `stats` is not covered) and prints a summary table with real TTFT, tok/s, token counts, and reasoning-token split for each call. Takes under a minute on a decent rig. | ||
| This runs [`scripts/shakedown.mjs`](./scripts/shakedown.mjs) — an end-to-end test that exercises seven of the eight tools (`discover` → `list_models` → `chat` → `custom_prompt` → `code_task` → `code_task_files` → `embed`; `stats` is not covered) and prints a summary table with real TTFT, tok/s, token counts, and reasoning-token split for each call. Takes under a minute on a decent rig. | ||
@@ -393,3 +414,3 @@ Sample output tail: | ||
| Want a human-readable quality review rather than just latency numbers? Paste [SHAKEDOWN.md](./SHAKEDOWN.md) into a Claude session that has houtini-lm attached — Claude will drive the seven steps and write you a report on output quality as well as performance. | ||
| Want a human-readable quality review rather than just latency numbers? Paste [SHAKEDOWN.md](./docs/SHAKEDOWN.md) into a Claude session that has houtini-lm attached — Claude will drive the seven steps and write you a report on output quality as well as performance. | ||
@@ -488,3 +509,3 @@ ## Think-block handling | ||
| All inference uses Server-Sent Events streaming. Tokens arrive incrementally. Since v2.9.0, houtini-lm sends MCP progress notifications on every streamed chunk — including during the thinking phase for reasoning models — which resets the SDK's 60-second client timeout. A 5-minute soft timeout acts as a safety net so a genuinely wedged connection can't hold a tool call open indefinitely; as long as tokens keep flowing, the per-chunk progress keeps the client side alive up to that ceiling. | ||
| All inference uses Server-Sent Events streaming. Tokens arrive incrementally. Since v2.9.0, houtini-lm sends MCP progress notifications on every streamed chunk — including during the thinking phase for reasoning models — which resets the SDK's 60-second client timeout. A 5-minute soft timeout acts as a safety net so a wedged connection can't hold a tool call open indefinitely; as long as tokens keep flowing, the per-chunk progress keeps the client side alive up to that ceiling. | ||
@@ -491,0 +512,0 @@ If the connection stalls (no new tokens for an extended period), you get a partial result instead of a timeout error. The footer shows `TRUNCATED` when this happens, and the quality metadata flags it so Claude knows to treat the output with appropriate caution. |
+15
-9
| { | ||
| "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", | ||
| "name": "Houtini LM", | ||
| "description": "MCP server that connects Claude to any OpenAI-compatible LLM endpoint. Offload routine analysis to a local model and preserve your Claude context window.", | ||
| "icon": "https://houtini.ai/favicon.ico", | ||
| "name": "io.github.houtini-ai/lm", | ||
| "description": "Connect Claude to any OpenAI-compatible LLM endpoint and offload routine work to a local model.", | ||
| "icons": [ | ||
| { | ||
| "src": "https://raw.githubusercontent.com/houtini-ai/houtini-lm/main/assets/logo.png", | ||
| "mimeType": "image/png", | ||
| "sizes": [ | ||
| "512x512" | ||
| ] | ||
| } | ||
| ], | ||
| "repository": { | ||
@@ -16,7 +24,5 @@ "url": "https://github.com/houtini-ai/lm", | ||
| "version": "3.2.3", | ||
| "transport": [ | ||
| { | ||
| "type": "stdio" | ||
| } | ||
| ], | ||
| "transport": { | ||
| "type": "stdio" | ||
| }, | ||
| "environmentVariables": [ | ||
@@ -27,3 +33,3 @@ { | ||
| "isRequired": false, | ||
| "format": "url" | ||
| "format": "string" | ||
| }, | ||
@@ -30,0 +36,0 @@ { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Mixed license
LicensePackage contains multiple licenses.
504035
46.17%24
26.32%0
-100%4082
2.61%536
4.08%23
4.55%