Skip to content

rust(feat): docs search MCP tool#640

Open
evan-sift wants to merge 2 commits into
mainfrom
mcp-docs-tool
Open

rust(feat): docs search MCP tool#640
evan-sift wants to merge 2 commits into
mainfrom
mcp-docs-tool

Conversation

@evan-sift

@evan-sift evan-sift commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Support for the docs search / docs read endpoints, behind an API token

@evan-sift evan-sift marked this pull request as draft June 15, 2026 16:29
@evan-sift evan-sift changed the title Mcp docs tool mcp docs tool Jun 15, 2026
@evan-sift evan-sift closed this Jun 18, 2026
@evan-sift evan-sift reopened this Jun 24, 2026
@evan-sift evan-sift changed the title mcp docs tool rust(feat): mcp docs tool Jun 24, 2026
@evan-sift evan-sift changed the title rust(feat): mcp docs tool rust(feat): docs search MCP tool Jun 24, 2026
Comment thread rust/crates/sift_mcp/src/lib.rs Outdated
Comment on lines +16 to +19
credentials: Credentials,
use_tls: bool,
rest_uri: String,
api_key: String,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it incorrect here to have both credentials & API key?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah everything should be inside of Credentials and then baked into the grpc channel

Comment thread rust/crates/sift_cli/src/cmd/install/agent.rs Outdated
@evan-sift evan-sift marked this pull request as ready for review June 24, 2026 22:21
Comment thread rust/crates/sift_mcp/src/lib.rs Outdated
Comment on lines +16 to +19
credentials: Credentials,
use_tls: bool,
rest_uri: String,
api_key: String,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah everything should be inside of Credentials and then baked into the grpc channel

/// supplied JSON bodies, capturing the inbound query params and auth header for
/// assertion. Returns the service pointed at it plus the captured request state.
async fn service_with_routes(
search_body: &'static str,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make these &str vs. &'static str

/// (the same payload `read_doc` returns for that path) so a hit can be read
/// without a second request. Field names tolerate both the camelCase (protojson
/// default) and snake_case forms the gateway may emit; the struct serializes
/// back out in snake_case to match `read_doc`'s output.

@Brandon-Shippy Brandon-Shippy Jun 25, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ReadDocResponse is camelCase so read_doc is returning a camelCase response

Do not think this is blocking, but maybe worth changing the wording

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants