local-model-suitability-mcp 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +43 -0
- package/package.json +1 -1
- package/src/server.js +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -68,6 +68,49 @@ Call this BEFORE every cloud inference call. If verdict is `LOCAL`, skip the clo
|
|
|
68
68
|
|
|
69
69
|
Free tier requires no API key — tracked by IP.
|
|
70
70
|
|
|
71
|
+
## Harness Integration
|
|
72
|
+
|
|
73
|
+
### Claude Code / Claude Desktop (.mcp.json)
|
|
74
|
+
```json
|
|
75
|
+
{
|
|
76
|
+
"mcpServers": {
|
|
77
|
+
"local-model-suitability": {
|
|
78
|
+
"type": "http",
|
|
79
|
+
"url": "https://local-model-suitability-mcp-production.up.railway.app"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### LangChain (Python)
|
|
86
|
+
```python
|
|
87
|
+
from langchain_mcp_adapters.client import MultiServerMCPClient
|
|
88
|
+
client = MultiServerMCPClient({
|
|
89
|
+
"local-model-suitability": {
|
|
90
|
+
"url": "https://local-model-suitability-mcp-production.up.railway.app",
|
|
91
|
+
"transport": "http"
|
|
92
|
+
}
|
|
93
|
+
})
|
|
94
|
+
tools = await client.get_tools()
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### OpenAI Agents SDK (Python)
|
|
98
|
+
```python
|
|
99
|
+
from agents import Agent, HostedMCPTool
|
|
100
|
+
agent = Agent(
|
|
101
|
+
name="Assistant",
|
|
102
|
+
tools=[HostedMCPTool(tool_config={
|
|
103
|
+
"type": "mcp",
|
|
104
|
+
"server_label": "local-model-suitability",
|
|
105
|
+
"server_url": "https://local-model-suitability-mcp-production.up.railway.app",
|
|
106
|
+
"require_approval": "never"
|
|
107
|
+
})]
|
|
108
|
+
)
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### LangGraph
|
|
112
|
+
Same as LangChain above — langchain-mcp-adapters works with LangGraph natively.
|
|
113
|
+
|
|
71
114
|
## Legal
|
|
72
115
|
|
|
73
116
|
Results are for cost-optimisation guidance only and do not constitute technical advice. Full terms: [kordagencies.com/terms.html](https://kordagencies.com/terms.html)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-model-suitability-mcp",
|
|
3
3
|
"mcpName": "io.github.OjasKord/local-model-suitability-mcp",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.8",
|
|
5
5
|
"description": "Check whether a task can run on a local model instead of cloud. Save money on every call that does not need cloud inference.",
|
|
6
6
|
"main": "src/server.js",
|
|
7
7
|
"type": "module",
|
package/src/server.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createHmac, timingSafeEqual } from 'crypto';
|
|
|
3
3
|
import { readFileSync, writeFileSync } from 'fs';
|
|
4
4
|
import Anthropic from '@anthropic-ai/sdk';
|
|
5
5
|
|
|
6
|
-
const VERSION = '1.1.
|
|
6
|
+
const VERSION = '1.1.8';
|
|
7
7
|
const PRO_UPGRADE_URL = 'https://buy.stripe.com/cNibJ08wd7zf6NS0h2ebu0p';
|
|
8
8
|
const ENTERPRISE_UPGRADE_URL = 'https://buy.stripe.com/28E9AS27PbPvfkoe7Sebu0q';
|
|
9
9
|
const PERSIST_FILE = '/tmp/lms_stats.json';
|