Commit Graph

86 Commits

Author SHA1 Message Date
Ola Hungerford
178281230c Update src/filesystem/package.json
Co-authored-by: Cliff Hall <cliff@futurescale.com>
2025-06-20 13:54:04 -07:00
Ola Hungerford
e9c4c9d4ba Handle unc path 2025-06-19 21:29:31 -07:00
olaservo
9dd94fd9a0 Adjust path-utils 2025-06-19 21:18:38 -07:00
Ola Hungerford
78fe5d5e47 Address PR review comments: fix UNC path handling, improve test coverage, remove problematic test files
- Fixed UNC path handling bug in normalizePath function to preserve leading double backslashes
- Added comprehensive test coverage for drive letter capitalization and UNC paths
- Removed file-operations.test.ts and core-functionality.test.ts as they were testing their own code rather than actual server functionality
- All path-utils tests now pass with 100% coverage of the actual utility functions
2025-06-18 07:29:25 -07:00
Ola Hungerford
d55afe1fa4 Add more tests 2025-06-16 17:29:44 -07:00
Ola Hungerford
098979ca2a Update SDK 2025-06-15 23:38:23 -07:00
Ola Hungerford
e84c79da2d Merge branch 'main' into add-jest-setup 2025-06-15 23:37:11 -07:00
Ola Hungerford
d2b217ac4f Merge pull request #1027 from mjherich/feat/filesystem-read-specified-lines
Add head/tail file reading and directory size listings to filesystem server
2025-06-15 23:08:15 -07:00
olaservo
8bdd270abb Add working test config for filesystem 2025-04-13 20:02:08 -07:00
Burke Holland
090b6b7c1a Move VS Code below Claude 2025-04-10 12:10:02 -05:00
Burke Holland
e6db372447 Update READMEs with instructions for VS Code installation 2025-04-03 16:37:27 -05:00
Matt Herich
f41565ce83 Normalize line endings when splitting file chunks 2025-04-03 00:31:26 -07:00
Ola Hungerford
5309e52de2 Merge pull request #589 from g-votte/update-filesystem-readme
Fix misleading edit_file functionality docs in server-filesystem README
2025-03-27 06:42:04 -07:00
Matt Herich
db24c89c5e Add file read and directory listing enhancements
- Add head/tail functionality for memory-efficient file reading
- Implement new list_directory_with_sizes command with file size info
- Add formatSize utility for human-readable file sizes
2025-03-21 19:29:45 -07:00
EthBerryAdmin
d7ea463aa5 allow ~ to be used in config
following config throws error

```
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "~"
      ]
    },
```

```
Error accessing directory ~: Error: ENOENT: no such file or directory, stat '~'
    at async Object.stat (node:internal/fs/promises:1032:18)
    at async file:///Users/USER_NAME/.npm/_npx/a3241bba59c344f5/node_modules/@modelcontextprotocol/server-filesystem/dist/index.js:33:23━━━━━━━━━━━━━━━━━
    at async Promise.all (index 0)
    at async file:///Users/USER_NAME/.npm/_npx/a3241bba59c344f5/node_modules/@modelcontextprotocol/server-filesystem/dist/index.js:31:1 {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '~'
}
```

this commit fixes error and allows to set ~ as allowed directory
2025-03-16 16:39:24 +04:00
Shotaro Sano
089b7f9abe Fix misleading edit_file functionality docs in filesystem README 2025-02-03 12:00:41 +09:00
freiit
0cf470e846 "," after last element of JSON object removed. 2025-01-17 11:09:24 +01:00
André Holzmüller
0dd9ac9ea0 fix warnings: - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
On branch erdnax123-patch-2
Changes to be committed:
	modified:   src/aws-kb-retrieval-server/Dockerfile
	modified:   src/brave-search/Dockerfile
	modified:   src/everart/Dockerfile
	modified:   src/everything/Dockerfile
	modified:   src/filesystem/Dockerfile
	modified:   src/gdrive/Dockerfile
	modified:   src/github/Dockerfile
	modified:   src/gitlab/Dockerfile
	modified:   src/google-maps/Dockerfile
	modified:   src/memory/Dockerfile
	modified:   src/postgres/Dockerfile
	modified:   src/sequentialthinking/Dockerfile
	modified:   src/slack/Dockerfile
2025-01-02 12:56:40 -03:00
colinmcneil
49044156e3 Update readmes to use new mcp namespace 2024-12-19 13:11:36 -08:00
colinmcneil
545103386f Update filesystem config for Docker 2024-12-19 13:11:35 -08:00
colinmcneil
0b36cb4b54 Revert filesystem back to original cli arg sandboxing 2024-12-19 13:11:35 -08:00
colinmcneil
c64f8de15f Config tweaks for docker
- Remove `$` interpolation for env
- Allow puppeteer to work headless in docker, headful with npx
2024-12-19 13:11:35 -08:00
colinmcneil
bb0adaafd8 Allow filesystem to accept DOCKER_ROOT_WORKSPACE 2024-12-19 13:11:35 -08:00
colinmcneil
4e8a8d270a Split production node_modules 2024-12-19 13:11:34 -08:00
colinmcneil
9ff603aef5 Update dockerfiles for npx versions, gdrive env credential paths 2024-12-19 13:11:34 -08:00
Jim Clark
368e3b23ca Add Dockerfiles for the 17 sample MCP servers
* add Dockerfiles and update README.md definitions
2024-12-19 13:11:34 -08:00
Justin Spahr-Summers
305d799bdd Merge pull request #299 from modelcontextprotocol/mahesh/fix-filesystem
Update case sensitivity handling for filesystem server
2024-12-13 09:30:30 +00:00
Justin Spahr-Summers
5b5e24c223 Merge pull request #213 from lamemind/main
[FileSystem] directory_tree base implementation
2024-12-11 12:15:44 +00:00
Mahesh Murag
1c30f54b2d Change case sensitivity for filesystem server 2024-12-10 11:53:23 -05:00
lamemind
188cd7653c directory_tree outputs JSON 2024-12-09 21:06:10 +01:00
Jeffrey Ling
da695fe05a cleanup diffs and improve glob matching 2024-12-06 17:37:39 -07:00
devin-ai-integration[bot]
4e31b9d66e fix: add server initialization call 2024-12-06 21:56:41 +00:00
devin-ai-integration[bot]
22a79571d7 fix: properly register search_files tool with schema in server setup 2024-12-06 21:53:53 +00:00
devin-ai-integration[bot]
9049f031cc fix: use correct tools capability format in server setup 2024-12-06 21:53:00 +00:00
devin-ai-integration[bot]
773fb8d205 fix: enable tools capability in server setup 2024-12-06 21:52:24 +00:00
devin-ai-integration[bot]
2c1bb4426c fix: simplify server setup and rely on handlers for tool registration 2024-12-06 21:51:49 +00:00
devin-ai-integration[bot]
15dbacdcba feat: add search_files handler in CallToolRequestSchema 2024-12-06 21:49:22 +00:00
devin-ai-integration[bot]
95e88aeb75 fix: update server setup with correct tool registration format 2024-12-06 21:48:45 +00:00
devin-ai-integration[bot]
3cf9a060cd feat: add search_files handler with excludePatterns support 2024-12-06 21:47:39 +00:00
devin-ai-integration[bot]
ffd9cb7f53 fix: correct tool registration syntax for search_files 2024-12-06 21:45:28 +00:00
devin-ai-integration[bot]
00a30ac2bb fix: add proper TypeScript types to search_files handler 2024-12-06 21:44:45 +00:00
devin-ai-integration[bot]
a1855509d1 feat: register search_files tool with excludePatterns support 2024-12-06 21:44:06 +00:00
devin-ai-integration[bot]
4e08779cb5 docs: update README with excludePatterns documentation for search_files 2024-12-06 21:42:25 +00:00
devin-ai-integration[bot]
ddb24ade66 chore: add minimatch dependency for glob pattern matching 2024-12-06 21:41:54 +00:00
devin-ai-integration[bot]
b64851723b fix: use named import for minimatch 2024-12-06 21:41:35 +00:00
devin-ai-integration[bot]
b2b8f29816 feat: add excludePatterns to search_files for filtering directories
- Add excludePatterns property to SearchFilesArgsSchema
- Modify searchFiles function to handle path exclusions
- Add minimatch import for glob pattern matching

This change allows excluding specific directories (like node_modules)
from file searches to prevent context window overflow.

Issue: modelcontextprotocol/servers#251
2024-12-06 21:40:54 +00:00
Enrico Ballardini
a6dfe1e9b6 Merge branch 'main' into main 2024-12-06 10:37:02 -03:00
Marc Goodner
b477af5c04 seriously, like aider 2024-12-05 00:33:49 -08:00
Marc Goodner
7417d4dc07 update read me for current impl 2024-12-04 20:51:39 -08:00
Marc Goodner
b04c9334bc schema def issues 2024-12-04 20:45:43 -08:00