@tpsdev-ai/flair-mcp 0.54.1 → 0.54.2
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/dist/adapter-surface.d.ts +6 -5
- package/dist/adapter-surface.js +7 -6
- package/dist/adapter-tools.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/json-schema-zod.d.ts +1 -1
- package/{node_modules/@tpsdev-ai/flair-tool-descriptors/dist → dist/tool-descriptors}/index.js +4 -0
- package/package.json +4 -8
- package/node_modules/@tpsdev-ai/flair-tool-descriptors/LICENSE +0 -19
- package/node_modules/@tpsdev-ai/flair-tool-descriptors/README.md +0 -22
- package/node_modules/@tpsdev-ai/flair-tool-descriptors/package.json +0 -46
- /package/{node_modules/@tpsdev-ai/flair-tool-descriptors/dist → dist/tool-descriptors}/index.d.ts +0 -0
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* adapter-surface.ts — the stdio adapter's derived tool set (flair#1580).
|
|
3
3
|
*
|
|
4
4
|
* `@tpsdev-ai/flair-mcp` no longer hand-wires per-tool string literals in
|
|
5
|
-
* index.ts. The advertised set is STDIO_TOOL_DESCRIPTORS from the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* index.ts. The advertised set is STDIO_TOOL_DESCRIPTORS from the descriptor
|
|
6
|
+
* module vendored at build time into `./tool-descriptors/` (flair#1683;
|
|
7
|
+
* source of truth: packages/flair-tool-descriptors/src/index.ts) — the same
|
|
8
|
+
* descriptors the server TOOLS registry binds to Harper impls. Drift is
|
|
9
|
+
* impossible by construction: a new both-surface descriptor appears here once
|
|
10
|
+
* a FlairClient handler is bound.
|
|
10
11
|
*
|
|
11
12
|
* This module remains the reviewed chokepoint for the stdio ↔ TOOLS seam:
|
|
12
13
|
*
|
package/dist/adapter-surface.js
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* adapter-surface.ts — the stdio adapter's derived tool set (flair#1580).
|
|
3
3
|
*
|
|
4
4
|
* `@tpsdev-ai/flair-mcp` no longer hand-wires per-tool string literals in
|
|
5
|
-
* index.ts. The advertised set is STDIO_TOOL_DESCRIPTORS from the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* index.ts. The advertised set is STDIO_TOOL_DESCRIPTORS from the descriptor
|
|
6
|
+
* module vendored at build time into `./tool-descriptors/` (flair#1683;
|
|
7
|
+
* source of truth: packages/flair-tool-descriptors/src/index.ts) — the same
|
|
8
|
+
* descriptors the server TOOLS registry binds to Harper impls. Drift is
|
|
9
|
+
* impossible by construction: a new both-surface descriptor appears here once
|
|
10
|
+
* a FlairClient handler is bound.
|
|
10
11
|
*
|
|
11
12
|
* This module remains the reviewed chokepoint for the stdio ↔ TOOLS seam:
|
|
12
13
|
*
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
* 3. `STDIO_ADAPTER_EXEMPTIONS` is DERIVED from descriptor surface flags
|
|
18
19
|
* (the #1578 list, now structural rather than hand-synced).
|
|
19
20
|
*/
|
|
20
|
-
import { STDIO_TOOL_DESCRIPTORS, SURFACE_EXEMPTIONS, descriptorNames, } from "
|
|
21
|
+
import { STDIO_TOOL_DESCRIPTORS, SURFACE_EXEMPTIONS, descriptorNames, } from "./tool-descriptors/index.js";
|
|
21
22
|
/** Tools registered on the stdio adapter — derived from the shared descriptor list. */
|
|
22
23
|
export const ADAPTER_TOOL_NAMES = descriptorNames(STDIO_TOOL_DESCRIPTORS);
|
|
23
24
|
/**
|
package/dist/adapter-tools.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* descriptor with no handler (or a handler with no descriptor) fails at
|
|
7
7
|
* registration, so the surfaces cannot drift by omission.
|
|
8
8
|
*/
|
|
9
|
-
import { STDIO_TOOL_DESCRIPTORS, toStdioMcpToolDef, } from "
|
|
9
|
+
import { STDIO_TOOL_DESCRIPTORS, toStdioMcpToolDef, } from "./tool-descriptors/index.js";
|
|
10
10
|
import { buildCatchupRequest, summarizeCatchup } from "./catchup.js";
|
|
11
11
|
import { classifyError } from "./errors.js";
|
|
12
12
|
import { jsonSchemaToZodShape } from "./json-schema-zod.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Flair MCP Server — persistent memory for Claude Code and any MCP client.
|
|
4
4
|
*
|
|
5
|
-
* Tools (derived from
|
|
5
|
+
* Tools (derived from the vendored descriptor module — flair#1580, flair#1683):
|
|
6
6
|
* - memory_search — semantic search across memories
|
|
7
7
|
* - memory_store — save a memory with type + durability
|
|
8
8
|
* - memory_update — update an existing memory by ID (dedup-bypassed)
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Flair MCP Server — persistent memory for Claude Code and any MCP client.
|
|
4
4
|
*
|
|
5
|
-
* Tools (derived from
|
|
5
|
+
* Tools (derived from the vendored descriptor module — flair#1580, flair#1683):
|
|
6
6
|
* - memory_search — semantic search across memories
|
|
7
7
|
* - memory_store — save a memory with type + durability
|
|
8
8
|
* - memory_update — update an existing memory by ID (dedup-bypassed)
|
|
@@ -179,7 +179,7 @@ export async function runMcp() {
|
|
|
179
179
|
}
|
|
180
180
|
// ─── MCP Server ──────────────────────────────────────────────────────────────
|
|
181
181
|
const server = new McpServer(serverInfo());
|
|
182
|
-
// ─── Tools (derived from
|
|
182
|
+
// ─── Tools (derived from the vendored tool-descriptors module) ────────────
|
|
183
183
|
//
|
|
184
184
|
// The advertised set is STDIO_TOOL_DESCRIPTORS. Handlers bind each
|
|
185
185
|
// descriptor to a FlairClient HTTP call. A new shared descriptor appears
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* keep working (the previous hand-wired Zod schemas did the same).
|
|
7
7
|
*/
|
|
8
8
|
import { type ZodTypeAny } from "zod";
|
|
9
|
-
import type { JsonSchemaObject } from "
|
|
9
|
+
import type { JsonSchemaObject } from "./tool-descriptors/index.js";
|
|
10
10
|
export declare function jsonSchemaToZodShape(schema: JsonSchemaObject): Record<string, ZodTypeAny>;
|
package/{node_modules/@tpsdev-ai/flair-tool-descriptors/dist → dist/tool-descriptors}/index.js
RENAMED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// ⚠️ GENERATED FILE — DO NOT EDIT, DO NOT COMMIT (flair#1683).
|
|
2
|
+
// Verbatim build-time copy of packages/flair-tool-descriptors/src/index.ts, the single source of truth.
|
|
3
|
+
// Regenerated by scripts/vendor-tool-descriptors.mjs (see each package's
|
|
4
|
+
// `prebuild`). Edit the source, not this copy.
|
|
1
5
|
/**
|
|
2
6
|
* Transport-agnostic MCP tool descriptors (flair#1580).
|
|
3
7
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tpsdev-ai/flair-mcp",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.2",
|
|
4
4
|
"description": "MCP server for Flair — persistent memory for Claude Code, Cursor, and any MCP client.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "tsc --noCheck",
|
|
19
|
+
"prebuild": "node ../../scripts/vendor-tool-descriptors.mjs packages/flair-mcp/src/tool-descriptors",
|
|
19
20
|
"test": "bun test",
|
|
20
|
-
"prepack": "
|
|
21
|
-
"prepublishOnly": "npm run build",
|
|
21
|
+
"prepack": "npm run build",
|
|
22
22
|
"postinstall": "node -e \"try{const{chmodSync,statSync}=require('fs');for(const p of ['dist/mcp-shim.cjs','dist/index.js','dist/session-start-hook.js','dist/continuity-capture-hook.js']){try{if(statSync(p).isFile()){chmodSync(p,0o755);console.error('@tpsdev-ai/flair-mcp: chmod +x ' + p + ' OK')}}catch(e){if(e.code!=='ENOENT')console.error('postinstall warn:',e.message)}}}catch(e){console.error('postinstall warn:',e.message)}\""
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
@@ -29,13 +29,9 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@modelcontextprotocol/sdk": "1.27.1",
|
|
32
|
-
"@tpsdev-ai/flair-client": "0.54.
|
|
33
|
-
"@tpsdev-ai/flair-tool-descriptors": "0.54.1",
|
|
32
|
+
"@tpsdev-ai/flair-client": "0.54.2",
|
|
34
33
|
"zod": "4.3.6"
|
|
35
34
|
},
|
|
36
|
-
"bundleDependencies": [
|
|
37
|
-
"@tpsdev-ai/flair-tool-descriptors"
|
|
38
|
-
],
|
|
39
35
|
"license": "Apache-2.0",
|
|
40
36
|
"repository": {
|
|
41
37
|
"type": "git",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
Copyright 2026 TPS Dev AI
|
|
8
|
-
|
|
9
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
you may not use this file except in compliance with the License.
|
|
11
|
-
You may obtain a copy of the License at
|
|
12
|
-
|
|
13
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
-
|
|
15
|
-
Unless required by applicable law or agreed to in writing, software
|
|
16
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
-
See the License for the specific language governing permissions and
|
|
19
|
-
limitations under the License.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# @tpsdev-ai/flair-tool-descriptors
|
|
2
|
-
|
|
3
|
-
Transport-agnostic MCP tool descriptors for [Flair](https://tps.dev/#flair).
|
|
4
|
-
|
|
5
|
-
This package is **pure data and types**: tool name, description, JSON Schema
|
|
6
|
-
`inputSchema`, output shape, and reviewed surface flags. It imports neither
|
|
7
|
-
Harper nor FlairClient. The Flair server binds each native descriptor to its
|
|
8
|
-
Harper implementation; `@tpsdev-ai/flair-mcp` binds each stdio descriptor to a
|
|
9
|
-
FlairClient HTTP call. Both tool sets are derived from this list, so a new
|
|
10
|
-
descriptor appears on every listed surface with zero hand-wiring (flair#1580).
|
|
11
|
-
|
|
12
|
-
## Install
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
npm install @tpsdev-ai/flair-tool-descriptors
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Surfaces
|
|
19
|
-
|
|
20
|
-
`native` and `stdio` default to true. Set either to `false` for a reviewed
|
|
21
|
-
one-sided tool (`attention` is native-only; `relationship_store` is
|
|
22
|
-
stdio-only). The #1578 exemption list is derived from those flags.
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tpsdev-ai/flair-tool-descriptors",
|
|
3
|
-
"version": "0.54.1",
|
|
4
|
-
"description": "Transport-agnostic MCP tool descriptors for Flair — name, description, inputSchema, output shape. No Harper, no FlairClient.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.js"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"dist/",
|
|
16
|
-
"LICENSE",
|
|
17
|
-
"README.md"
|
|
18
|
-
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build": "tsc --noCheck",
|
|
21
|
-
"test": "bun test",
|
|
22
|
-
"prepublishOnly": "npm run build"
|
|
23
|
-
},
|
|
24
|
-
"publishConfig": {
|
|
25
|
-
"access": "public"
|
|
26
|
-
},
|
|
27
|
-
"engines": {
|
|
28
|
-
"node": ">=18"
|
|
29
|
-
},
|
|
30
|
-
"license": "Apache-2.0",
|
|
31
|
-
"repository": {
|
|
32
|
-
"type": "git",
|
|
33
|
-
"url": "git+https://github.com/tpsdev-ai/flair.git",
|
|
34
|
-
"directory": "packages/flair-tool-descriptors"
|
|
35
|
-
},
|
|
36
|
-
"homepage": "https://tps.dev/#flair",
|
|
37
|
-
"keywords": [
|
|
38
|
-
"flair",
|
|
39
|
-
"mcp",
|
|
40
|
-
"tools",
|
|
41
|
-
"descriptors"
|
|
42
|
-
],
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"typescript": "5.9.3"
|
|
45
|
-
}
|
|
46
|
-
}
|
/package/{node_modules/@tpsdev-ai/flair-tool-descriptors/dist → dist/tool-descriptors}/index.d.ts
RENAMED
|
File without changes
|