Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBlair87 committed Dec 3, 2024
2 parents 3c7e852 + ee3d60c commit 286814a
Show file tree
Hide file tree
Showing 14 changed files with 361 additions and 328 deletions.
27 changes: 27 additions & 0 deletions cookbook/python/claude-mcp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Claude MCP

1. Download the Claude Desktop App from https://claude.ai/download

2. Create a `claude_desktop_config.json` file in the root of the project with the following content. Look [here](https://github.com/modelcontextprotocol/servers/blob/main/src/filesystem/README.md) for more details:

```json
{
"mcpServers": {
"filesystem": {
"command": "node",
"args": [
"C:/Users/username/AppData/Roaming/npm/node_modules/@modelcontextprotocol/server-filesystem/dist/index.js",
"[insert-folder-path-of-your-choice-here]"
]
}
}
}
```

**Note:** The path for the @modelcontextprotocol/server-filesystem package may vary based on your operating system. Look [here](https://github.com/modelcontextprotocol/servers/blob/main/src/filesystem/README.md) for more details.

3. Restart the Claude Desktop App. You should see a plug and tool icon in the chat window:

4. You should be able to ask Claude about your data from Surfer. For example, you can ask it to read all the data in the exported folder and tell you what it found.

**Note:** Some files may be too large to read in full by Claude, so it may return an error for this. A solution is to implement a custom MCP server for Surfer that can read files in chunks or vectorize the data locally and expose that function to Claude. Check out the issue [here](https://github.com/Surfer-Org/Protocol/issues/15) for more details.
Binary file added cookbook/python/claude-mcp/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions desktop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ See the [open issues](https://github.com/Surfer-Org/Protocol/issues) for a full

## License

Distributed under the MIT License. See [`LICENSE`](https://github.com/Surfer-Org/Protocol/desktop//blob/main/LICENSE) for more information.
Distributed under the MIT License. See [`LICENSE`](https://github.com/Surfer-Org/Protocol/tree/main/desktop/blob/main/LICENSE) for more information.

## Built With

Expand All @@ -72,7 +72,7 @@ Distributed under the MIT License. See [`LICENSE`](https://github.com/Surfer-Org

[Surfer Discord Server](https://discord.gg/Tjg7pjcFNP) - [@SahilLalani0](https://x.com/SahilLalani0) - [@JackBlair87](https://x.com/JackBlair87) - [@T0M_3D](https://x.com/T0M_3D)

Project Link: [https://github.com/Surfer-Org/Protocol/desktop/](https://github.com/Surfer-Org/Protocol/desktop/)
Project Link: [https://github.com/Surfer-Org/Protocol/tree/main/desktop](https://github.com/Surfer-Org/Protocol/tree/main/desktop)

## Acknowledgements

Expand Down
9 changes: 7 additions & 2 deletions desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"hot",
"reload"
],
"homepage": "https://github.com/Surfer-Org/Protocol/desktop/",
"homepage": "https://github.com/Surfer-Org/Protocol/tree/main/desktop",
"bugs": {
"url": "https://github.com/Surfer-Org/Protocol/issues"
},
"repository": "https://github.com/Surfer-Org/Protocol/desktop/",
"repository": "https://github.com/Surfer-Org/Protocol/tree/main/desktop",
"publish": {
"provider": "github",
"releaseType": "release"
Expand Down Expand Up @@ -90,6 +90,10 @@
}
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.7.1",
"@fortawesome/free-brands-svg-icons": "^6.7.1",
"@fortawesome/free-solid-svg-icons": "^6.7.1",
"@fortawesome/react-fontawesome": "^0.2.2",
"@monaco-editor/react": "^4.6.0",
"@radix-ui/react-alert-dialog": "^1.1.1",
"@radix-ui/react-checkbox": "^1.1.1",
Expand Down Expand Up @@ -141,6 +145,7 @@
"react-dom": "^18.2.0",
"react-hook-form": "^7.52.1",
"react-icons": "^5.3.0",
"react-markdown": "^9.0.1",
"react-photo-view": "^1.2.6",
"react-resizable-panels": "^2.0.22",
"react-router-dom": "^6.26.0",
Expand Down
2 changes: 1 addition & 1 deletion desktop/release/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"gpt4",
"chatbot"
],
"repository": "https://github.com/Surfer-Org/Protocol/desktop/",
"repository": "https://github.com/Surfer-Org/Protocol/tree/main/desktop",
"publish": {
"provider": "github",
"releaseType": "release"
Expand Down
12 changes: 10 additions & 2 deletions desktop/src/main/helpers/imessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,16 @@ export async function getImessageData(
'Backup',
);

if (!fs.existsSync(defaultPath)) {
console.log('NEED TO BACKUP YOUR IMESSAGE FOLDER!');
if (
!fs.existsSync(defaultPath) ||
fs.readdirSync(defaultPath).length === 0
) {
dialog.showMessageBox({
type: 'error',
title: 'iMessages Folder Not Found',
message:
'The iMessages folder was not found. Please backup your iPhone to your PC first using the iTunes Desktop app.',
});
return null;
}

Expand Down
Loading

0 comments on commit 286814a

Please sign in to comment.