@filepad/mcp-server 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Filepad
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,117 @@
1
+ # @filepad/mcp-server
2
+
3
+ MCP server for Filepad Agent Access. Exposes Filepad workspaces as tools to Claude Desktop, Cursor, Windsurf, and any other MCP-compatible client.
4
+
5
+ ## What is MCP?
6
+
7
+ [Model Context Protocol (MCP)](https://modelcontextprotocol.io) is an open protocol for connecting AI assistants to external data sources and tools. This package implements an MCP server that speaks stdio JSON-RPC over Filepad Agent Access.
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ npm install -g @filepad/mcp-server
13
+ ```
14
+
15
+ Requires Node.js 18+.
16
+
17
+ ## Claude Desktop Configuration
18
+
19
+ Add to `claude_desktop_config.json`:
20
+
21
+ **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
22
+
23
+ **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
24
+
25
+ ```json
26
+ {
27
+ "mcpServers": {
28
+ "filepad": {
29
+ "command": "npx",
30
+ "args": ["-y", "@filepad/mcp-server"],
31
+ "env": {
32
+ "FILEPAD_BASE_URL": "https://app.filepad.ai/api",
33
+ "FILEPAD_WORKSPACE_ID": "ws_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
34
+ "FILEPAD_AGENT_KEY_ID": "ik_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
35
+ "FILEPAD_AGENT_SECRET": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
36
+ }
37
+ }
38
+ }
39
+ }
40
+ ```
41
+
42
+ Restart Claude Desktop. You should see Filepad tools in the tool list.
43
+
44
+ ## Environment Variables
45
+
46
+ | Variable | Required | Description |
47
+ |----------|----------|-------------|
48
+ | `FILEPAD_BASE_URL` | Yes | Filepad API base URL (e.g. `https://app.filepad.ai/api`) |
49
+ | `FILEPAD_WORKSPACE_ID` | Yes | Workspace id (e.g. `ws_...`) |
50
+ | `FILEPAD_AGENT_KEY_ID` | Yes | Agent Access key id (e.g. `ik_...`) |
51
+ | `FILEPAD_AGENT_SECRET` | Yes | Agent Access secret (shown once on creation) |
52
+
53
+ ## Available Tools
54
+
55
+ | Tool | Scope | Description |
56
+ |------|-------|-------------|
57
+ | `filepad_health` | None | Check connection and report granted scopes |
58
+ | `filepad_list_tree` | `env:read` | List workspace folders and files |
59
+ | `filepad_read_file` | `env:read` | Read a file by id |
60
+ | `filepad_search` | `env:read` | Search workspace context |
61
+ | `filepad_create_artifact` | `artifacts:write` | Create a note artifact |
62
+ | `filepad_propose_edit` | `files:propose` | Propose a reviewable edit |
63
+ | `filepad_emit_event` | `events.write` | Emit an activity event |
64
+ | `filepad_create_signal` | `signals:write` | Create a signal |
65
+ | `filepad_list_signals` | `env:read` | Query visible workspace signals |
66
+ | `filepad_get_signal` | `env:read` | Read one workspace signal by id |
67
+ | `filepad_ack_notification` | `notifications:read` | Acknowledge mailbox notifications after processing |
68
+ | `filepad_get_profile` | `env:read` | Read this integration's agent home profile files |
69
+ | `filepad_update_profile` | `env:read`, `files:propose` | Propose a reviewable update to the agent profile |
70
+
71
+ Tools are automatically filtered by your key's granted scopes. If your key only has `env:read`, you will only see read tools.
72
+
73
+ ## Resources and Prompts
74
+
75
+ The server also exposes:
76
+
77
+ - **Resources** — Workspace environment, file tree, and individual files as `filepad://` URIs
78
+ - **Mailbox** — Filepad callbacks addressed to this integration at `filepad://workspace/{workspaceId}/mailbox` when `notifications:read` is granted
79
+ - **Prompts** — Skill instructions from `skills/*.md` files in the workspace
80
+ - **Agent home** — Per-key profile files under `agents/integrations/{keyId}/` for identity, learnings, goals, and timeline
81
+
82
+ ## Programmatic Usage
83
+
84
+ You can also use the server class directly in your own code:
85
+
86
+ ```typescript
87
+ import { FilepadMcpServer } from '@filepad/mcp-server';
88
+
89
+ const server = new FilepadMcpServer({
90
+ baseUrl: process.env.FILEPAD_BASE_URL!,
91
+ workspaceId: process.env.FILEPAD_WORKSPACE_ID!,
92
+ keyId: process.env.FILEPAD_AGENT_KEY_ID!,
93
+ secret: process.env.FILEPAD_AGENT_SECRET!,
94
+ });
95
+
96
+ await server.initialize();
97
+
98
+ const response = await server.handleMessage({
99
+ jsonrpc: '2.0',
100
+ id: 1,
101
+ method: 'tools/list',
102
+ params: {},
103
+ });
104
+
105
+ console.log(response);
106
+ ```
107
+
108
+ ## Security
109
+
110
+ - Secrets are never logged
111
+ - Requests are signed with HMAC-SHA256
112
+ - Nonce replay protection is enforced by the backend
113
+ - Scope enforcement is strict — missing scopes return `403`
114
+
115
+ ## License
116
+
117
+ MIT
package/SECURITY.md ADDED
@@ -0,0 +1,24 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ Security fixes are provided for the latest published `0.x` release of `@filepad/mcp-server`.
6
+
7
+ ## Reporting a Vulnerability
8
+
9
+ Email security reports to `security@filepad.ai`.
10
+
11
+ Please include:
12
+
13
+ - package name and version
14
+ - MCP client/runtime used
15
+ - reproduction steps
16
+ - affected tools or resources
17
+ - expected impact
18
+
19
+ Do not open a public issue for vulnerabilities involving Agent Access secrets, request signing, workspace data exposure, or tool permission bypasses.
20
+
21
+ ## Secret Handling
22
+
23
+ This package reads `FILEPAD_AGENT_SECRET` from environment variables supplied by the MCP client. Many MCP clients store their configuration on disk. Treat that config as sensitive and rotate the Filepad Agent Access key if it is exposed.
24
+
package/dist/cli.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
package/dist/cli.js ADDED
@@ -0,0 +1,109 @@
1
+ #!/usr/bin/env node
2
+ // FILE MEMO: Production-hardened CLI entry point for stdio MCP server.
3
+ import { createInterface } from 'node:readline/promises';
4
+ import { FilepadMcpServer } from './server.js';
5
+ function validateConfig() {
6
+ const required = [
7
+ { name: 'FILEPAD_BASE_URL', value: process.env['FILEPAD_BASE_URL'] },
8
+ { name: 'FILEPAD_WORKSPACE_ID', value: process.env['FILEPAD_WORKSPACE_ID'] },
9
+ { name: 'FILEPAD_AGENT_KEY_ID', value: process.env['FILEPAD_AGENT_KEY_ID'] },
10
+ { name: 'FILEPAD_AGENT_SECRET', value: process.env['FILEPAD_AGENT_SECRET'] },
11
+ ];
12
+ const missing = required.filter((r) => !r.value).map((r) => r.name);
13
+ if (missing.length > 0) {
14
+ return { ok: false, missing };
15
+ }
16
+ const [baseUrl, workspaceId, keyId, secret] = required.map((r) => r.value);
17
+ if (!baseUrl || !workspaceId || !keyId || !secret) {
18
+ return { ok: false, missing: [] };
19
+ }
20
+ return { ok: true, baseUrl, workspaceId, keyId, secret };
21
+ }
22
+ function writeErrorResponse(code, message, id = null) {
23
+ process.stdout.write(JSON.stringify({
24
+ jsonrpc: '2.0',
25
+ id,
26
+ error: { code, message },
27
+ }) + '\n');
28
+ }
29
+ async function main() {
30
+ const config = validateConfig();
31
+ if (!config.ok) {
32
+ console.error('Filepad MCP Server startup failed. Missing required environment variables:\n' +
33
+ config.missing.map((v) => ` - ${v}`).join('\n') +
34
+ '\n\nSet these variables and restart.\n' +
35
+ 'Docs: https://github.com/filepad/filepad/tree/main/packages/mcp-server#readme');
36
+ process.exit(1);
37
+ }
38
+ let shuttingDown = false;
39
+ function shutdown(signal) {
40
+ if (shuttingDown)
41
+ return;
42
+ shuttingDown = true;
43
+ // Stdio transport: no persistent connections to close.
44
+ // Just exit cleanly so the MCP client sees EOF.
45
+ process.exit(0);
46
+ }
47
+ process.on('SIGTERM', () => shutdown('SIGTERM'));
48
+ process.on('SIGINT', () => shutdown('SIGINT'));
49
+ const server = new FilepadMcpServer({
50
+ baseUrl: config.baseUrl,
51
+ workspaceId: config.workspaceId,
52
+ keyId: config.keyId,
53
+ secret: config.secret,
54
+ });
55
+ try {
56
+ await server.initialize();
57
+ }
58
+ catch (initErr) {
59
+ const message = initErr instanceof Error ? initErr.message : String(initErr);
60
+ console.error(`Filepad MCP Server initialization failed: ${message}`);
61
+ console.error('Check FILEPAD_BASE_URL, FILEPAD_WORKSPACE_ID, FILEPAD_AGENT_KEY_ID, and FILEPAD_AGENT_SECRET.');
62
+ process.exit(1);
63
+ }
64
+ const input = createInterface({
65
+ input: process.stdin,
66
+ crlfDelay: Infinity,
67
+ });
68
+ input.on('close', () => {
69
+ shutdown('stdin-close');
70
+ });
71
+ for await (const line of input) {
72
+ if (shuttingDown)
73
+ break;
74
+ const trimmed = line.trim();
75
+ if (!trimmed)
76
+ continue;
77
+ let message;
78
+ try {
79
+ message = JSON.parse(trimmed);
80
+ }
81
+ catch (parseErr) {
82
+ const errText = parseErr instanceof Error ? parseErr.message : 'Invalid JSON';
83
+ writeErrorResponse(-32700, `Parse error: ${errText}`, null);
84
+ continue;
85
+ }
86
+ // Use message id for basic tracing
87
+ const msgId = typeof message === 'object' && message !== null && 'id' in message
88
+ ? message.id ?? null
89
+ : null;
90
+ try {
91
+ const response = await server.handleMessage(message);
92
+ if (!response)
93
+ continue;
94
+ const responses = Array.isArray(response) ? response : [response];
95
+ for (const res of responses) {
96
+ process.stdout.write(JSON.stringify(res) + '\n');
97
+ }
98
+ }
99
+ catch (handlerErr) {
100
+ const errText = handlerErr instanceof Error ? handlerErr.message : 'Internal error';
101
+ writeErrorResponse(-32603, errText, msgId);
102
+ }
103
+ }
104
+ }
105
+ main().catch((err) => {
106
+ console.error(err);
107
+ process.exit(1);
108
+ });
109
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,uEAAuE;AAGvE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAM/C,SAAS,cAAc;IACrB,MAAM,QAAQ,GAAG;QACf,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,EAAE;QACpE,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAAE;QAC5E,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAAE;QAC5E,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAAE;KAC7E,CAAC;IAEF,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,C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,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;QAAC,OAAO,UAAU,EAAE,CAAC;YACpB,MAAM,OAAO,GAAG,UAAU,YAAY,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC;YACpF,kBAAkB,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,65 @@
1
+ import type { FilepadAgentClient } from '@filepad/agent-access-sdk';
2
+ import type { AgentAccessScope } from '@filepad/agent-access-sdk';
3
+ export interface McpHandlerContext {
4
+ client: FilepadAgentClient;
5
+ workspaceId: string;
6
+ scopes: AgentAccessScope[];
7
+ }
8
+ export declare function handleInitialize(): Promise<{
9
+ protocolVersion: string;
10
+ capabilities: {
11
+ tools: {};
12
+ resources: {};
13
+ prompts: {};
14
+ };
15
+ serverInfo: {
16
+ name: string;
17
+ version: string;
18
+ };
19
+ }>;
20
+ export declare function handleListTools(_request: unknown, ctx: McpHandlerContext): Promise<{
21
+ tools: {
22
+ name: string;
23
+ description: string;
24
+ inputSchema: Record<string, unknown>;
25
+ }[];
26
+ }>;
27
+ export declare function handleCallTool(request: unknown, ctx: McpHandlerContext): Promise<{
28
+ content: {
29
+ type: string;
30
+ text: string;
31
+ }[];
32
+ }>;
33
+ export declare function handleListResources(_request: unknown, ctx: McpHandlerContext): Promise<{
34
+ resources: {
35
+ uri: string;
36
+ name: string;
37
+ mimeType: string;
38
+ description: string;
39
+ }[];
40
+ }>;
41
+ export declare function handleReadResource(request: unknown, ctx: McpHandlerContext): Promise<{
42
+ contents: {
43
+ uri: string;
44
+ mimeType: string;
45
+ text: string;
46
+ }[];
47
+ }>;
48
+ export declare function handleListPrompts(_request: unknown, ctx: McpHandlerContext): Promise<{
49
+ prompts: {
50
+ name: string;
51
+ description: string;
52
+ arguments: unknown[];
53
+ }[];
54
+ }>;
55
+ export declare function handleGetPrompt(request: unknown, ctx: McpHandlerContext): Promise<{
56
+ description: string;
57
+ messages: {
58
+ role: string;
59
+ content: {
60
+ type: string;
61
+ text: string;
62
+ };
63
+ }[];
64
+ }>;
65
+ //# sourceMappingURL=handlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../src/handlers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAkBlE,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B;AAuND,wBAAsB,gBAAgB;;;;;;;;;;;GAarC;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,OAAO,EACjB,GAAG,EAAE,iBAAiB;;;;;;GAUvB;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,iBAAiB;;;;;GA8JvB;AAED,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,OAAO,EACjB,GAAG,EAAE,iBAAiB;;;;;;;GA+CvB;AAED,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,iBAAiB;;;;;;GAmEvB;AAED,wBAAsB,iBAAiB,CACrC,QAAQ,EAAE,OAAO,EACjB,GAAG,EAAE,iBAAiB;;;;;;GAUvB;AAED,wBAAsB,eAAe,CACnC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,iBAAiB;;;;;;;;;GAgCvB"}