@flareum/mcp 0.2.1 → 0.2.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/README.md +6 -6
- package/dist/server.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ typing literal values.
|
|
|
13
13
|
2. Copy the command it shows you. It looks like this:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
claude mcp add flareum --env FLAREUM_TOKEN=pk_… -- npx -y @flareum/mcp
|
|
16
|
+
claude mcp add flareum --env FLAREUM_TOKEN=pk_… -- npx -y -p @flareum/mcp flareum-mcp
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
3. Run it in **your project's** terminal — the repo where you write CSS/SCSS, not the Flareum repo.
|
|
@@ -29,7 +29,7 @@ The key is shown once and cannot be retrieved again. If you lose it, revoke it a
|
|
|
29
29
|
the newest:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
npx -y @flareum/mcp@latest --help
|
|
32
|
+
npx -y -p @flareum/mcp@latest flareum --help
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Naming `@latest` is what refreshes the cache. Then restart your editor session — a running MCP
|
|
@@ -39,7 +39,7 @@ Check which version you are actually on:
|
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
npm view @flareum/mcp version # the newest published
|
|
42
|
-
npx -y @flareum/mcp@latest --version
|
|
42
|
+
npx -y -p @flareum/mcp@latest flareum --version
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
If you installed it globally instead of through `npx`:
|
|
@@ -80,8 +80,8 @@ The tools tell an agent what a token is CALLED. The stylesheets that give those
|
|
|
80
80
|
from a Push, and this fetches them:
|
|
81
81
|
|
|
82
82
|
```bash
|
|
83
|
-
npx flareum pull
|
|
84
|
-
npx flareum watch
|
|
83
|
+
npx -y -p @flareum/mcp flareum pull # into src/styles/flareum
|
|
84
|
+
npx -y -p @flareum/mcp flareum watch # and again every time you Push in Flareum
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
Then import them once, in your global stylesheet:
|
|
@@ -126,7 +126,7 @@ and it prints where it wrote (or why it could not) on stderr.
|
|
|
126
126
|
|
|
127
127
|
| What you see | Cause |
|
|
128
128
|
|---|---|
|
|
129
|
-
| The server fails to connect / closes immediately | The package is not installed. Check `npx -y @flareum/mcp` resolves — if it 404s, it has not been published yet. |
|
|
129
|
+
| The server fails to connect / closes immediately | The package is not installed. Check `npx -y -p @flareum/mcp flareum-mcp` resolves — if it 404s, it has not been published yet. |
|
|
130
130
|
| A command the docs describe is not recognised | `npx` is running a cached older copy. Re-run it as `@latest` — see Updating. |
|
|
131
131
|
| The agent types literal values anyway | The skill did not land. Look for `[flareum] skill written to …` in the MCP server's stderr. |
|
|
132
132
|
| Values labelled with long ids instead of mode names | The Flareum server is older than the client. Restart it. |
|
package/dist/server.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Transport glue only. Every behaviour worth guarding lives in client.ts and tools.ts, which have
|
|
3
3
|
// no SDK dependency and are tested without one.
|
|
4
|
+
import { readFileSync } from 'node:fs';
|
|
4
5
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
5
6
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
6
7
|
import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -12,7 +13,9 @@ const client = new FlareumClient({
|
|
|
12
13
|
api: process.env.FLAREUM_API,
|
|
13
14
|
projectId: process.env.FLAREUM_PROJECT,
|
|
14
15
|
});
|
|
15
|
-
|
|
16
|
+
// Read, never restated: the hardcoded 0.1.0 kept reporting itself from a 0.2.1 package.
|
|
17
|
+
const { version } = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
18
|
+
const server = new Server({ name: 'flareum', version }, { capabilities: { tools: {} } });
|
|
16
19
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
17
20
|
tools: [
|
|
18
21
|
{
|