@flowrelay/mcp-server 1.0.3 → 1.0.4
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 +1 -1
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,6 +3,8 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
|
3
3
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { FlowRelayAPI } from './api.js';
|
|
6
|
+
import { createRequire } from 'node:module';
|
|
7
|
+
const { version: PKG_VERSION } = createRequire(import.meta.url)('../package.json');
|
|
6
8
|
const SOURCES = [
|
|
7
9
|
'github',
|
|
8
10
|
'slack',
|
|
@@ -59,7 +61,7 @@ const api = new FlowRelayAPI(apiKey, process.env.FLOWRELAY_BASE_URL);
|
|
|
59
61
|
let activeProjectId = normalizeProjectId(process.env.FLOWRELAY_PROJECT_ID);
|
|
60
62
|
const server = new McpServer({
|
|
61
63
|
name: 'flowrelay',
|
|
62
|
-
version:
|
|
64
|
+
version: PKG_VERSION,
|
|
63
65
|
});
|
|
64
66
|
async function getTenantContext() {
|
|
65
67
|
const context = await api.listProjects();
|
|
@@ -206,7 +208,7 @@ server.tool('list_handoffs', 'List Flow Relay handoffs in the current tenant sco
|
|
|
206
208
|
return { content: [{ type: 'text', text }] };
|
|
207
209
|
});
|
|
208
210
|
// ── Tool: generate handoff ───────────────────────────────────────────
|
|
209
|
-
server.tool('generate_handoff', 'Generate a new context handoff for
|
|
211
|
+
server.tool('generate_handoff', 'Generate a new context handoff for the active project. Requires an active project or explicit project_id. Supports per-source filters.', {
|
|
210
212
|
sources: z.array(SourceEnum)
|
|
211
213
|
.optional()
|
|
212
214
|
.describe('Specific sources to include (omit for all connected sources)'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowrelay/mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Flow Relay MCP Server for Claude Desktop and Claude Code – handoffs, integrations, and context events via natural conversation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|