Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/avahowell/offeryn
/ functions
Functions
62 in github.com/avahowell/offeryn
⨍
Functions
62
◇
Types & classes
31
↓ 13 callers
Method
get
Get the current count
crates/offeryn-derive/tests/schema/03-stateful.rs:14
↓ 10 callers
Method
handle_request
( &self, request: JsonRpcRequest, )
crates/offeryn-core/src/server/mod.rs:61
↓ 7 callers
Method
input_schema
(&self)
crates/offeryn-core/tests/server_tests.rs:22
↓ 5 callers
Method
name
(&self)
crates/offeryn-core/tests/server_tests.rs:14
↓ 4 callers
Method
execute
(&self, args: Value)
crates/offeryn-core/tests/server_tests.rs:33
↓ 4 callers
Method
register_tools
(&self, provider: T)
crates/offeryn-core/src/server/mod.rs:49
↓ 3 callers
Method
register_tool
(&self, tool: T)
crates/offeryn-core/src/server/mod.rs:43
↓ 2 callers
Method
run
(self)
crates/offeryn-core/src/transport/stdio.rs:74
↓ 1 callers
Method
description
(&self)
crates/offeryn-core/tests/server_tests.rs:18
↓ 1 callers
Function
extract_doc_string
(attrs: &[Attribute])
crates/offeryn-derive/src/lib.rs:8
↓ 1 callers
Function
extract_param_doc
(docs: &str, param_name: &str)
crates/offeryn-derive/src/lib.rs:51
↓ 1 callers
Function
generate_param_deserialization
(param_name: &str, is_optional: bool)
crates/offeryn-derive/src/lib.rs:108
↓ 1 callers
Function
generate_param_schema
( param_type: &Type, param_name: &str, param_doc: &str, is_optional: bool, )
crates/offeryn-derive/src/lib.rs:78
↓ 1 callers
Function
get_type_schema
(ty: &Type)
crates/offeryn-derive/src/lib.rs:26
↓ 1 callers
Function
is_optional_type
(ty: &Type)
crates/offeryn-derive/src/lib.rs:46
Method
add
Add two numbers
examples/calculator/src/main.rs:14
Method
add
Add two numbers
examples/stdio-calculator/src/main.rs:12
Method
add
(&self, a: i64, b: i64)
crates/offeryn-core/src/transport/stdio.rs:165
Method
add
Add two numbers
crates/offeryn-core/src/transport/sse.rs:236
Method
add
Add two numbers # Parameters `a` - First operand `b` - Second operand
crates/offeryn-derive/tests/schema/01-basic.rs:15
Method
another_method
# Parameters `x` - First value `y` - Second value
crates/offeryn-derive/tests/schema/02-doc-comments.rs:24
Method
create_router
(server: Arc<McpServer>)
crates/offeryn-core/src/transport/sse.rs:33
Method
divide
Divide two numbers
examples/calculator/src/main.rs:28
Method
divide
Divide two numbers
examples/stdio-calculator/src/main.rs:27
Method
divide
Divide two numbers
crates/offeryn-core/src/transport/sse.rs:251
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
crates/offeryn-core/src/error.rs:13
Method
from
(_: serde_json::Error)
crates/offeryn-core/src/error.rs:24
Method
handle_notification
( &mut self, method: &str, _params: Option<serde_json::Value>, )
crates/offeryn-core/src/server/mod.rs:258
Method
increment
Increment the counter by a value # Parameters `by` - Amount to increment by
crates/offeryn-derive/tests/schema/03-stateful.rs:22
Function
main
()
examples/calculator/src/main.rs:38
Function
main
()
examples/stdio-calculator/src/main.rs:37
Function
main
()
crates/offeryn-derive/tests/schema/03-stateful.rs:29
Function
main
()
crates/offeryn-derive/tests/schema/02-doc-comments.rs:30
Function
main
()
crates/offeryn-derive/tests/schema/01-basic.rs:30
Method
message_handler
( session_id: String, state: Arc<Mutex<SseServerTransport>>, server: Arc<McpServer>,
crates/offeryn-core/src/transport/sse.rs:139
Method
multiply
Multiply two numbers
examples/calculator/src/main.rs:23
Method
multiply
Multiply two numbers
examples/stdio-calculator/src/main.rs:22
Method
multiply
Multiply two numbers
crates/offeryn-core/src/transport/sse.rs:246
Method
multiply
Multiply two numbers # Parameters `a` - First number `b` - Second number
crates/offeryn-derive/tests/schema/01-basic.rs:24
Method
new
(server: Arc<McpServer>)
crates/offeryn-core/src/transport/stdio.rs:52
Method
new
()
crates/offeryn-core/src/transport/sse.rs:26
Method
new
(name: &str, version: &str)
crates/offeryn-core/src/server/mod.rs:18
Method
read_message
(reader: &mut BufReader<R>)
crates/offeryn-core/src/transport/stdio.rs:18
Method
sse_handler
( state: Arc<Mutex<SseServerTransport>>, )
crates/offeryn-core/src/transport/sse.rs:83
Method
subtract
(&self, a: i64, b: i64)
examples/calculator/src/main.rs:18
Method
subtract
Subtract two numbers
examples/stdio-calculator/src/main.rs:17
Method
subtract
Subtract two numbers
crates/offeryn-core/src/transport/sse.rs:241
Function
test_calculator
()
crates/offeryn-core/src/transport/sse.rs:261
Function
test_calculator_add
()
crates/offeryn-core/src/transport/stdio.rs:171
Function
test_initialize
()
crates/offeryn-core/tests/server_tests.rs:156
Function
test_invalid_method
()
crates/offeryn-core/tests/server_tests.rs:131
Method
test_method
This is a test method # Parameters `value` - A test parameter
crates/offeryn-derive/tests/schema/02-doc-comments.rs:14
Function
test_schema
()
crates/offeryn-derive/tests/schema.rs:2
Function
test_sse_transport
()
crates/offeryn-core/src/transport/sse.rs:359
Function
test_tool_execution
()
crates/offeryn-core/tests/server_tests.rs:72
Function
test_tools_list
()
crates/offeryn-core/tests/server_tests.rs:46
Function
test_unknown_tool
()
crates/offeryn-core/tests/server_tests.rs:111
Function
tool
(_attr: TokenStream, item: TokenStream)
crates/offeryn-derive/src/lib.rs:129
Method
with_streams
(server: Arc<McpServer>, stdin: R, stdout: W)
crates/offeryn-core/src/transport/stdio.rs:66
Method
with_tool
(&self, tool: impl McpTool + 'static)
crates/offeryn-core/src/server/mod.rs:26
Method
with_tools
(&self, tools: Vec<Box<dyn McpTool>>)
crates/offeryn-core/src/server/mod.rs:33
Method
write_message
( writer: &mut BufWriter<W>, message: &[u8], )
crates/offeryn-core/src/transport/stdio.rs:30