@falconer/mcp 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/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # @falconer/mcp
2
+
3
+ MCP server for [Falconer](https://falconer.com).
4
+
5
+ ## Setup
6
+
7
+ ### 1. Install CLI and authenticate
8
+
9
+ ```bash
10
+ npm install -g @falconer/cli
11
+ falconer login
12
+ ```
13
+
14
+ ### 2. Add MCP server
15
+
16
+ **Claude Code**:
17
+ ```bash
18
+ claude mcp add falconer -- npx @falconer/mcp
19
+ ```
20
+
21
+ **Cursor** — add to `~/.cursor/mcp.json`:
22
+ ```json
23
+ {
24
+ "mcpServers": {
25
+ "falconer": {
26
+ "command": "npx",
27
+ "args": ["@falconer/mcp"]
28
+ }
29
+ }
30
+ }
31
+ ```
32
+
33
+ ### 3. Verify
34
+
35
+ - **Claude Code**: Restart and run `/mcp`
36
+ - **Cursor**: Open Command Palette → "View: Open MCP Settings"
37
+
38
+ ## Tools
39
+
40
+ | Tool | Input | Description |
41
+ |------|-------|-------------|
42
+ | `read` | `identifier` | Fetch a document by ID, slug, title, or URL |
43
+ | `search` | `query` | Search for documents |
44
+ | `create` | `content` | Create a new document from markdown |
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execFileSync } = require('child_process')
4
+ const os = require('os')
5
+
6
+ const PLATFORMS = {
7
+ 'darwin arm64': {
8
+ package: '@falconer/mcp-darwin-arm64',
9
+ binary: 'falconer-mcp',
10
+ },
11
+ 'darwin x64': {
12
+ package: '@falconer/mcp-darwin-x64',
13
+ binary: 'falconer-mcp',
14
+ },
15
+ 'linux x64': {
16
+ package: '@falconer/mcp-linux-x64',
17
+ binary: 'falconer-mcp',
18
+ },
19
+ 'linux arm64': {
20
+ package: '@falconer/mcp-linux-arm64',
21
+ binary: 'falconer-mcp',
22
+ },
23
+ 'win32 x64': {
24
+ package: '@falconer/mcp-windows-x64',
25
+ binary: 'falconer-mcp.exe',
26
+ },
27
+ }
28
+
29
+ function getBinaryPath() {
30
+ const platformKey = `${process.platform} ${os.arch()}`
31
+ const platform = PLATFORMS[platformKey]
32
+
33
+ if (!platform) {
34
+ throw new Error(
35
+ `Unsupported platform: ${platformKey}\n` +
36
+ `Falconer MCP supports: ${Object.keys(PLATFORMS).join(', ')}`
37
+ )
38
+ }
39
+
40
+ try {
41
+ return require.resolve(`${platform.package}/${platform.binary}`)
42
+ } catch (e) {
43
+ throw new Error(
44
+ `The package "${platform.package}" could not be found.\n\n` +
45
+ `If you installed with npm, make sure you didn't use "--no-optional" or "--omit=optional".\n` +
46
+ `The "optionalDependencies" feature is used to install the correct binary for your platform.`
47
+ )
48
+ }
49
+ }
50
+
51
+ const binaryPath = getBinaryPath()
52
+ const args = process.argv.slice(2)
53
+
54
+ try {
55
+ execFileSync(binaryPath, args, { stdio: 'inherit' })
56
+ } catch (e) {
57
+ if (e.status !== undefined) {
58
+ process.exit(e.status)
59
+ }
60
+ throw e
61
+ }
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@falconer/mcp",
3
+ "version": "0.1.0",
4
+ "description": "Falconer MCP Server - access your Falconer documents from Claude",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/FalconerAI/falconer.git"
8
+ },
9
+ "license": "MIT",
10
+ "bin": {
11
+ "falconer-mcp": "bin/falconer-mcp"
12
+ },
13
+ "optionalDependencies": {
14
+ "@falconer/mcp-darwin-arm64": "0.1.0",
15
+ "@falconer/mcp-darwin-x64": "0.1.0",
16
+ "@falconer/mcp-linux-x64": "0.1.0",
17
+ "@falconer/mcp-linux-arm64": "0.1.0",
18
+ "@falconer/mcp-windows-x64": "0.1.0"
19
+ }
20
+ }