GraphQL API (ReasonKit MCP (Pro))
ReasonKit MCP (Pro) provides a flexible GraphQL endpoint for complex data fetching and real-time reasoning trace subscriptions.
Endpoint
https://api.reasonkit.sh/v1/graphql
Schema Overview
Queries
thinkingChain(id: ID!): ReasoningChain
Retrieve a specific reasoning chain by its unique ID.
profiles: [Profile!]!
List all available reasoning profiles.
Mutations
executeReasoning(input: ThinkInput!): ReasoningChain!
Trigger a new reasoning session.
Types
ReasoningChain
| Field | Type | Description |
|---|---|---|
id | ID! | Unique session identifier. |
timestamp | String! | Start time (ISO8601). |
status | ChainStatus! | PENDING, RUNNING, COMPLETED, FAILED. |
result | String | The final synthesized answer. |
steps | [ReasoningStep!]! | The list of discrete reasoning steps. |
metrics | Metrics! | Usage and performance data. |
ReasoningStep
| Field | Type | Description |
|---|---|---|
stepId | Int! | Sequence number. |
module | String! | ThinkTool module name. |
phase | String! | Internal phase identifier. |
content | String! | The reasoning content. |
confidence | Float | 0.0 - 1.0 certainty score. |
Example Query
query GetChainDetails($id: ID!) {
thinkingChain(id: $id) {
status
result
steps {
stepId
module
content
confidence
}
metrics {
totalDurationMs
totalTokens
}
}
}
Subscriptions (Real-time)
ReasonKit MCP (Pro) supports GraphQL Subscriptions over WebSockets for live reasoning traces.
subscription OnStepGenerated($chainId: ID!) {
stepGenerated(chainId: $chainId) {
stepId
module
content
}
}