formlab-mcp 0.6.70 → 0.6.71

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "formlab-mcp",
3
- "version": "0.6.70",
3
+ "version": "0.6.71",
4
4
  "mcpName": "io.github.juliu1980/formlab-mcp",
5
5
  "description": "Read-only Model Context Protocol server for FormLab. Lets Claude and other MCP clients read and analyze your FormLab data, from a local export file or your live cloud workspace.",
6
6
  "homepage": "https://formvix.com/mcp",
package/peptide.js CHANGED
@@ -25,7 +25,16 @@ const NTERM_SMILES = {
25
25
  };
26
26
  const CTERM_SMILES = { NH2: 'N', OMe: 'OC' };
27
27
 
28
- const tokenize = (raw) => (typeof raw === 'string' && raw) ? raw.split('-').map(s => s.trim()).filter(Boolean) : [];
28
+ // The app's _seqSplit / _seqFreeEnds / _tokenizeSequence (48y): any dash, spaces dropped, /…/ mods whole, and the free
29
+ // ends written out (H-…-OH, H-…-NH2) are the amine and the acid, not His and Hyp + His.
30
+ const SEQ_DASHES = /[\u2010-\u2015\u2212]/g;
31
+ function tokenize(raw) {
32
+ if (!raw || typeof raw !== 'string') return [];
33
+ const t = (raw.replace(SEQ_DASHES, '-').match(/\/[^\/]*\/|[^\/-]+/g) || []).map(s => s.replace(/\s+/g, '')).filter(Boolean);
34
+ const n = t.length, last = t[n - 1];
35
+ const freeN = n >= 3 && t[0] === 'H' && /^(OH|NH2|OMe)$/.test(last), freeC = n >= 2 && last === 'OH';
36
+ return t.slice(freeN ? 1 : 0, freeC ? -1 : undefined);
37
+ }
29
38
  function residues(tokens) {
30
39
  const out = [];
31
40
  for (const tok of tokens) {
package/server.json CHANGED
@@ -2,13 +2,13 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.juliu1980/formlab-mcp",
4
4
  "description": "Read-only MCP server for FormLab formulation data: a local export file or your live cloud workspace.",
5
- "version": "0.6.70",
5
+ "version": "0.6.71",
6
6
  "websiteUrl": "https://formvix.com/mcp",
7
7
  "packages": [
8
8
  {
9
9
  "registryType": "npm",
10
10
  "identifier": "formlab-mcp",
11
- "version": "0.6.70",
11
+ "version": "0.6.71",
12
12
  "runtimeHint": "npx",
13
13
  "transport": {
14
14
  "type": "stdio"