Commit graph

32 commits

Author SHA1 Message Date
8fe3cda271 feat(meta): update mainProgram to "cratedocs"
Some checks failed
Rust / build (push) Failing after 14s
- Replaced `mainProgram` reference from `cargoFile.name` to `"cratedocs"`.
2025-05-27 20:14:32 +02:00
0de57e61eb feat(config): enhance CrateDocs MCP server configuration
Some checks failed
Rust / build (push) Failing after 14s
- Changed `ExecStart` to bind the server to `127.0.0.1` and added explicit `http` scheme.
- Removed unnecessary trailing whitespace across the file for cleaner formatting.
2025-05-27 17:40:52 +02:00
8440fc1c9a feat(nixos): add CrateDocs MCP service module
Some checks failed
Rust / build (push) Failing after 15s
- Introduced a NixOS module for configuring the CrateDocs MCP server.
- Added options for enabling the service, setting the port, user, and group.
- Configured a hardened systemd service with security restrictions.
2025-05-27 17:28:53 +02:00
ec38ec5e96 refactor(flake): update namespace and improve overlay structure
Some checks failed
Rust / build (push) Failing after 14s
- Renamed namespace from "hello" to "cratedocs" for better clarity.
- Optimized overlay definitions and improved package structure resolution.
- Added `cratedocs-mcp` to overlays for streamlined integration.
2025-05-27 17:09:46 +02:00
0dbbc6a778 add flakes
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2025-05-02 13:08:41 +02:00
d6e
dca96d2f2e
Merge pull request #2 from lnay/patch-1
Correct the repo url in installation instructions
2025-03-17 10:05:26 +09:00
Luke Naylor
80e01ca437
Correct the repo url in installation instructions 2025-03-16 16:43:08 +00:00
d6e
ec7ac7b695
Create rust.yml 2025-03-13 01:55:05 -07:00
Danielle Jenkins
9bdd25e4a5 Add support for the crate name in the item-path 2025-03-13 17:53:41 +09:00
Danielle Jenkins
704c7333b6 Add output formatting as a cli option 2025-03-13 11:34:26 +09:00
Danielle Jenkins
f50ac58a24 Improve tools
1. Fixed the lookup_item command to properly handle item paths by:
    - Trying different item types (struct, enum, trait, fn, macro)
    - Using the proper URL structure for docs.rs items
    - Adding User-Agent headers to avoid 404 errors
  2. Fixed the search_crates command to:
    - Include proper User-Agent headers to avoid 403 Forbidden errors
    - Return JSON data in a consistent format
  3. Made general improvements:
    - Better CLI help text with examples
    - Better error messages with specific examples
    - More comprehensive documentation of usage patterns
2025-03-13 11:23:50 +09:00
Danielle Jenkins
ebede724ad Implement manual cli tools option 2025-03-13 11:20:08 +09:00
Danielle Jenkins
85b4116262 Add comprehensive test coverage for HTTP/SSE server and docs tools
- HTTP/SSE server: Add tests for app initialization and session management
- Docs tools: Add tests for cache functionality, error handling, and network errors
- Make components more testable by exposing necessary fields
- Add mockito for HTTP testing support
- Improve robust error handling in network tests
- Add Tower util feature for ServiceExt support
2025-03-12 18:50:53 -07:00
Danielle Jenkins
2ab71b7667 Fix warnings 2025-03-12 18:32:38 -07:00
Danielle Jenkins
9b52f76cf5 Fix imports 2025-03-12 18:28:54 -07:00
Danielle Jenkins
161758786a Remove old binaries 2025-03-12 18:15:05 -07:00
Danielle Jenkins
1173958880 Refactor 2025-03-12 18:11:50 -07:00
Danielle Jenkins
d3bd555c58 Clippy fixes 2025-03-12 17:53:28 -07:00
Danielle Jenkins
19c35abc43 Remove unused imports 2025-03-12 17:52:59 -07:00
Danielle Jenkins
5eab86417d Refactor 2025-03-12 17:51:36 -07:00
Danielle Jenkins
4171c923e6 Refactor 2025-03-12 15:15:34 -07:00
Danielle Jenkins
5fe28f7fe7 Refactor 2025-03-12 15:12:37 -07:00
Danielle Jenkins
d9daa5fab7 Refactor 2025-03-12 15:05:27 -07:00
Danielle Jenkins
03cb33ba7b Rename doc server to stdio server 2025-03-12 14:52:36 -07:00
Danielle Jenkins
12b077b7be Rename server module 2025-03-11 12:21:40 -07:00
Danielle Jenkins
dc4bb7f567 Add tests 2025-03-11 12:12:13 -07:00
Danielle Jenkins
37e50029cb Combine into one single binary 2025-03-06 23:15:54 -08:00
Danielle Jenkins
06514ed935 Fix compile errors 2025-03-06 23:00:13 -08:00
Danielle Jenkins
67a48cd6f8 Set the dependencies to github 2025-03-06 22:59:47 -08:00
Danielle Jenkins
9e2120e45e Add claude doc 2025-03-06 22:52:22 -08:00
Danielle Jenkins
86d835cab2 Update project name 2025-03-06 22:51:01 -08:00
Danielle Jenkins
dcf78edfca Init 2025-03-06 22:49:18 -08:00